Cover image
Try Now
2025-04-10

MCP-CENSYS是一款MCP服务器,可在Censys搜索API中进行实时域,IP和FQDN侦察

3 years

Works with Finder

1

Github Watches

0

Github Forks

1

Github Stars

mcp-censys

mcp-censys is a MCP server that taps into the Censys Search API for real-time domain, IP, and FQDN reconnaissance, now with enhanced MCP Prompt Templates.

[!CAUTION] This is intended solely as a demonstration and is not production-ready. It is not an officially supported product.

Overview

mcp-censys turns natural language prompts into targeted Censys queries — surfacing host, DNS, cert, and service information in real-time. It's designed to work with Claude Desktop or any other Model Context Protocol (MCP) client.

Built on the official Censys Python SDK, this lightweight container exposes precise reconnaissance tools through Claude-friendly functions.

[!NEW] MCP Prompt Templates

This version introduces MCP Prompt Templates - predefined instruction sets that guide Claude's analysis of domain data. These templates provide structured guidance on how to organize and present the findings, ensuring consistent, high-quality outputs. Learn more about MCP Prompts.

Features

  • Conversational Queries: Natural language access to Censys intel
  • Domain and IP Lookup: Get DNS names, ASN, services, and TLS context
  • New FQDN Discovery: Find recently seen subdomains from DNS and cert data
  • MCP-Compatible Tools: Use directly from Claude Desktop
  • MCP Prompt Templates: ✨ Built-in structured guidance templates that instruct Claude exactly how to analyze and present domain data (learn more about MCP Prompts)
  • Dockerized with .env support: Secure, repeatable usage
  • Lightweight API Client: Based on Censys Python SDK

Tools

  • lookup_domain - Get comprehensive IPs, DNS names, services, and ASN info for a domain (aggregates data across all results) with built-in MCP prompts that guide Claude to organize findings into meaningful sections
  • lookup_domain_detailed - Return a sample of 3 individual host records with services, ASN, geo, and TLS data, along with information about total available records and structured MCP prompts for comprehensive infrastructure analysis
  • lookup_ip - Enrich an IP with DNS, ASN, service info, and TLS metadata
  • new_fqdns - Find recently observed FQDNs for a domain (via DNS and certs)
  • host_services - List open ports and service banners for a given domain or IP

Quick Start Guide

1. Domain Lookup (lookup_domain)

Returns complete information by aggregating all IPs, DNS names, service banners, and ASN info tied to a specific domain. Useful for understanding what infrastructure a domain resolves to.

Example:

User: What's behind mailchimp.com?

AI: mailchimp.com resolves to multiple IPs operated by The Rocket Science Group (AS2635). The domain exposes ports 80 and 443 with HTTP services, and reverse DNS shows aliases like smtp.mailchimp.com and us1.admin.mailchimp.com. Several servers respond with the banner 'mailchimp-nginx'.

2. Detailed Domain Lookup (lookup_domain_detailed)

Provides a sample of actual host records (limited to 3) matching a domain query, plus information about how many total records exist.

Example:

User: Show me detailed records for mailchimp.com

AI: I found 42 host records for mailchimp.com. Here's a sample of 3:

IP: 205.201.131.98 - Located in Atlanta, GA (The Rocket Science Group)
Services: HTTP/80, HTTPS/443, SMTP/25
OS: Ubuntu 18.04
IP: 205.201.132.24 - Located in Atlanta, GA (The Rocket Science Group)
Services: HTTP/80, HTTPS/443
TLS: TLSv1.2, RSA 2048-bit
IP: 198.2.131.20 - Located in Atlanta, GA (The Rocket Science Group)
Services: SMTP/25, SMTP/587
TLS: TLSv1.2, DH 2048-bit
There are 39 additional records not displayed.

3. IP Lookup (lookup_ip)

Provides full context for an IP including DNS names, ASN, TLS certs, services, and location data.

Example:

User: Tell me about 184.29.22.16

AI: 184.29.22.16 is associated with Akamai (AS20940). It has two services exposed: HTTP on port 80 and HTTPS on 443. It's hosted in the United States and uses a TLS certificate issued by Let's Encrypt.

4. New FQDN Discovery (new_fqdns)

Find recently observed FQDNs for a domain from both DNS records and certificate transparency logs.

Example:

User: What new fqdns has microsoft.com had in the last 3 days?
AI: In the last 3 days, 17 FQDNs were observed for microsoft.com, including:

login.microsoft.com (seen in DNS and certs)
api.microsoft.com (seen in certs only)
graph.microsoft.com (seen in DNS only)
teams.microsoft.com (seen in DNS and certs)

5. Host Services (host_services)

Quickly identifies what ports are open on a given IP and what services are running.

Examples:

User: What ports are open on example.com?

AI: example.com (93.184.216.34) has the following services:

HTTP on port 80 (last seen 2 hours ago)
HTTPS on port 443 (last seen 2 hours ago)

Installation

# Clone the repository
git clone https://github.com/yourusername/mcp-censys.git
cd mcp-censys

# Build the Docker image
docker build -t mcp/censys .

# .env should contain:
CENSYS_API_ID=your_censys_api_id
CENSYS_API_SECRET=your_censys_api_secret

MCP Configuration

Add this to your Claude Desktop config:

"censys": {
  "command": "docker",
  "args": [
    "run",
    "--rm",
    "-i",
    "--env-file", "/Users/yourname/.env.censys",
    "mcp/censys"
  ]
}

Screenshot

mcp-censys in action via Claude Desktop, using the lookup_domain, lookup_domain_detailed and lookup_ip tools:

mcp-censys Screenshot - Domain/FQDN lookup

This example shows a domain lookup request on mailchimp.com, returning IPs, ASN, subdomains, services and infrastructure — all from a natural language query.

mcp-censys Screenshot - Detailed Domai lookup

This example shows a detailed domain lookup request on mailchimp.com, returning IPs, ASN, subdomains, BGP, TLS, information, services and infrastructure.

mcp-censys Screenshot - IP lookup

This example demonstrates an IP lookup on 23.204.1.14, returning coordinates, forward and reverse DNS and services.

Troubleshooting

No Results Returned:

  • Make sure the target is publicly visible
  • Check your API key and rate limits
  • DNS-based results rely on recent Censys observations

Performance Tips:

  • Scan a single domain or IP at a time for faster results
  • Use lookup_domain or lookup_ip for focused data

API Response Issues:

  • If you experience errors with result formatting, ensure you're using the latest version
  • The tools handle pagination automatically - lookup_domain collects all available results, while lookup_domain_detailed shows a limited sample
  • For domains with many results, queries may take longer to complete due to multiple API requests

Limitations

  • new_fqdns does not represent true "first seen" FQDNs; it filters by last observed timestamps
  • This tool is intended for conversational, single-target analysis (not batch scans)
  • lookup_domain_detailed only shows 3 records to keep responses manageable, even when more are available

License

MIT License

Acknowledgments

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

    Reviews

    4 (1)
    Avatar
    user_pk6osk6C
    2025-04-17

    I've been using mcp-censys for a while now, and it's truly an impressive tool! The simplicity and efficiency with which it operates make it a must-have for anyone in need of this kind of service. Kudos to the author, nickpending, for creating such a fantastic application. Highly recommended for all! Check it out on GitHub!