Shodan MCP Server
Shodan MCP 服务器
模型上下文协议 (MCP) 服务器提供对 Shodan API 功能的访问,允许 AI 助手查询有关互联网连接设备和服务的信息。
特征
主机信息:获取特定 IP 地址的详细信息
搜索功能:在 Shodan 数据库中搜索设备和服务
网络扫描:扫描设备的网络范围(CIDR 表示法)
SSL 证书信息:获取域名的 SSL 证书详细信息
物联网设备搜索:查找特定类型的物联网设备
Related MCP server: sec-shodan-mcp
安装
克隆存储库:
git clone https://github.com/Cyreslab-AI/shodan-mcp-server.git cd shodan-mcp-server安装依赖项:
npm install构建服务器:
npm run build设置您的 Shodan API 密钥:
export SHODAN_API_KEY="your-api-key-here"启动服务器:
npm start
MCP 集成
该服务器可以与 Claude 或其他兼容 MCP 的 AI 助手集成。要将其添加到 Claude Desktop 或 Claude.app,请执行以下操作:
将服务器添加到您的 MCP 设置:
{ "mcpServers": { "shodan": { "command": "node", "args": ["/path/to/shodan-mcp-server/build/index.js"], "env": { "SHODAN_API_KEY": "your-api-key-here" } } } }重新启动 Claude 以加载新的 MCP 服务器。
可用工具
获取主机信息
获取有关特定 IP 地址的详细信息。
参数:
ip(必填):要查找的 IP 地址max_items(可选):数组中包含的最大项目数(默认值:5)fields(可选):结果中包含的字段列表(例如,['ip_str'、'ports'、'location.country_name'])
search_shodan
在 Shodan 数据库中搜索设备和服务。
参数:
query(必填):Shodan 搜索查询(例如,'apache country:US')page(可选):结果分页的页码(默认值:1)facets(可选):要包含在搜索结果中的方面列表(例如,['country','org'])max_items(可选):数组中包含的最大项目数(默认值:5)fields(可选):结果中包含的字段列表(例如,['ip_str'、'ports'、'location.country_name'])summarize(可选):是否返回结果摘要而不是完整数据(默认值:false)
扫描网络范围
扫描设备的网络范围(CIDR 表示法)。
参数:
cidr(必需):CIDR 表示法的网络范围(例如 192.168.1.0/24)max_items(可选):结果中包含的最大项目数(默认值:5)fields(可选):结果中包含的字段列表(例如,['ip_str'、'ports'、'location.country_name'])
获取 SSL 信息
获取域的 SSL 证书信息。
参数:
domain(必需):查找 SSL 证书的域名(例如,example.com)
搜索物联网设备
搜索特定类型的物联网设备。
参数:
device_type(必需):要搜索的物联网设备类型(例如“网络摄像头”、“路由器”、“智能电视”)country(可选):可选国家代码以限制搜索(例如“美国”、“德国”)max_items(可选):结果中包含的最大项目数(默认值:5)
可用资源
shodan://host/{ip}:有关特定 IP 地址的信息
API 限制
部分 Shodan API 端点需要付费会员资格。以下功能仅需付费 Shodan API 密钥即可使用:
搜索功能
网络扫描
SSL 证书查找
物联网设备搜索
执照
麻省理工学院
开发者
Available Tools
23 toolsdns_lookupB
Resolve hostnames to IP addresses using DNS lookup
Inputs: hostnames (required).
get_account_profileB
Get account profile information including membership status and credits
Inputs: no named parameters.
get_api_infoB
Get information about your API plan including credits and limits
Inputs: no named parameters.
get_cpesC
Get Common Platform Enumeration (CPE) information for products
Inputs: product, vendor, version, limit, +1 more.
get_cve_infoC
Get detailed information about a specific CVE
Inputs: cve_id (required).
get_cves_by_epssC
Get CVEs sorted by EPSS score (Exploit Prediction Scoring System)
Inputs: limit.
get_domain_infoC
Get comprehensive domain information including subdomains and DNS records
Inputs: domain (required), history, type, page.
get_host_countA
Get the count of hosts matching a search query without consuming query credits
Inputs: query (required), facets.
get_host_infoC
Get detailed information about a specific IP address
Inputs: ip (required), max_items, fields.
get_kev_cvesB
Get Known Exploited Vulnerabilities (KEV) from CISA
Inputs: limit.
get_my_ipA
Get your current IP address as seen from the Internet
Inputs: no named parameters.
get_newest_cvesB
Get the newest vulnerabilities from the CVE database
Inputs: limit.
get_ssl_infoC
Get SSL certificate information for a domain
Inputs: domain (required).
list_portsB
List all ports that Shodan crawls on the Internet
Inputs: no named parameters.
list_protocolsA
List all protocols that can be used when performing on-demand Internet scans
Inputs: no named parameters.
list_search_facetsA
List all available search facets that can be used with Shodan queries
Inputs: no named parameters.
list_search_filtersB
List all available search filters that can be used in Shodan queries
Inputs: no named parameters.
parse_search_tokensC
Parse a search query to understand which filters and parameters are being used
Inputs: query (required).
reverse_dns_lookupC
Get hostnames for IP addresses using reverse DNS lookup
Inputs: ips (required).
scan_network_rangeC
Scan a network range (CIDR notation) for devices
Inputs: cidr (required), max_items, fields.
search_cvesC
Search for vulnerabilities with various filters
Inputs: cpe23, product, is_kev, sort_by_epss, +4 more.
search_iot_devicesC
Search for specific types of IoT devices
Inputs: device_type (required), country, max_items.
search_shodanC
Search Shodan's database for devices and services
Inputs: query (required), page, facets, max_items, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Most tools have distinct purposes, but there is some overlap between search tools (search_shodan, search_iot_devices, search_cves) and informational tools (get_cves_by_epss, get_newest_cves, get_kev_cves) that could cause confusion. Descriptions help clarify, but the boundaries between general and specific search/query tools are not perfectly clear.
Tool names follow a highly consistent verb_noun pattern throughout, such as get_account_profile, list_ports, search_shodan, and parse_search_tokens. There are no deviations in naming conventions, making the set predictable and easy to understand.
With 23 tools, the count is borderline high for a Shodan server, which might feel heavy for agents to navigate efficiently. While it covers many aspects of Shodan's functionality, some tools could potentially be consolidated or omitted without losing core capabilities.
The tool set provides comprehensive coverage for Shodan's domain, including account management, host and domain lookups, vulnerability searches, network scanning, and query parsing. There are no obvious gaps; it supports full CRUD-like operations and lifecycle management for security research tasks.
Maintenance
Related MCP Connectors
Defensive Shodan search and host intelligence MCP using customer-provided SHODAN_API_KEY for
Unofficial Shodan InternetDB MCP — wraps Shodan InternetDB (internetdb.shodan.io)
Unofficial Shodan MCP — wraps the full Shodan REST API (api.shodan.io)
Agentic cybersecurity tool: URL phishing/malware scanning and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables comprehensive security reconnaissance, vulnerability assessment, and threat intelligence gathering by integrating Shodan's API. It provides tools for searching internet-connected devices, performing DNS operations, and querying the Shodan exploit database.11Apache 2.0
- AlicenseBqualityFmaintenanceProvides access to Shodan's IoT search engine API for device search, host intelligence, exploit database, network scanning, and security analysis through natural language.32MIT
- AlicenseNot gradedqualityCmaintenanceEnables to search and analyze internet-connected devices using the Shodan API, with tools for host search, DNS, scanning, exploits, alerts, and more.MIT
- AlicenseNot gradedqualityCmaintenanceWraps the full Shodan REST API to allow AI agents to search and retrieve Shodan data through natural language.140 npmMIT