WM

w0h1v/mcp-shodan

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

193 stars 31 forks 质量 77 趋势 21MIT

w0h1v/mcp-shodan 是从 https://github.com/w0h1v/mcp-shodan. 导入的 MCP 服务器候选

概览

w0h1v/mcp-shodan 是从 https://github.com/w0h1v/mcp-shodan. 导入的 MCP 服务器候选

概述(AI 翻译)

快速入门 · 工具 · HTTP · 安全· 排查 · 文档

mcp-shodan 是一个MCP服务器,为AI代理提供Shodan API和Shodan CVEDB的访问权限。给你的代理一个IP、主机名、搜索查询、产品或CVE,就能得到分析师会看的内容:开放端口和横幅、TLS证书、DNS,以及带有EPSS和KEV状态的漏洞严重性。

[!注] 独立项目,与Shodan无关。你需要自己的Shodan API密钥。

精彩片段

  • 主机侦察。 开放端口、产品和版本、已知CVE、TLS证书详情(指纹、JARM、JA3S)、云提供商及任何IPv4或IPv6地址的横幅历史。
  • 设备搜索。 Shodan查询语法,带有分页和面分解(国家、组织、港口、风险等),并提供免费的仅计数模式用于查询大小调整。
  • 漏洞情报。 CVE详情包括CVSS v4/v3/v2、EPSS和KEV;按产品或CPE分类CVE,可按EPSS排序。CVEDB免费且不消耗查询积分。
  • DNS. 域的子域和DNS记录,以及一次通话中对多个名称或IP的正向和反向查找。
  • **信用意识。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Quickstart · Tools · HTTP · Security · Troubleshooting · Docs

mcp-shodan is an MCP server that gives AI agents access to the Shodan API and Shodan CVEDB. Hand your agent an IP, hostname, search query, product or CVE and get back what an analyst would look at: open ports and banners, TLS certificates, DNS, and vulnerability severity with EPSS and KEV status.

[!NOTE] Independent project, not affiliated with Shodan. You need your own Shodan API key.

Highlights

  • Host reconnaissance. Open ports, products and versions, known CVEs, TLS certificate details (fingerprint, JARM, JA3S), cloud provider and banner history for any IPv4 or IPv6 address.
  • Device search. Shodan query syntax with paging and facet breakdowns (country, org, port, vuln and more), plus a free count-only mode for sizing a query.
  • Vulnerability intelligence. CVE details with CVSS v4/v3/v2, EPSS and KEV; CVEs by product or CPE, sortable by EPSS. CVEDB is free and doesn’t spend query credits.
  • DNS. Subdomains and DNS records for a domain, and forward and reverse lookups for many names or IPs in one call.
  • Credit-aware. Free tools are marked as free, and api_info shows the credits left on your plan.
  • Two transports. stdio for desktop clients, HTTP streaming for a shared service.
  • Tested. Unit tests with a mocked Shodan API run in CI on Node 20, 22 and 24.

How it works

flowchart LR
    A["AI agent(Claude, Codex, Gemini, VS Code)"] -->|"MCP over stdio or HTTP"| S["mcp-shodan"]
    S -->|"validate input,HTTPS + API key"| SH["Shodan REST API"]
    S -->|"HTTPS, no key"| C["Shodan CVEDB"]
    SH -->|"JSON"| S
    C -->|"JSON"| S
    S -->|"structured JSON text"| A

Quickstart

在 GitHub 查看完整 README

安装

docker run -p 127.0.0.1:3000:3000 -e SHODAN_API_KEY=your-key -e MCP_TRANSPORT=httpStream mcp-shodan
新手?先看 mcpskill.org 教程 →