Shodan MCP Server

Shodan MCP Server

用于查询Shodan API的MCP服务器。

Shodan MCP 服务器快速上手指南

smithery 徽章

这是一个提供 Shodan API 和 Shodan CVEDB 查询功能的 MCP 服务器,支持 IP 侦察、DNS 操作、漏洞跟踪和设备发现。

安装方式

方式 1:通过 Smithery 自动安装(推荐)

npx -y @smithery/cli install @burtthecoder/mcp-shodan --client claude

方式 2:手动安装

  1. 全局安装服务器:

    npm install -g @burtthecoder/mcp-shodan
    
  2. 添加到 Claude Desktop 配置文件:

    {
      "mcpServers": {
        "shodan": {
          "command": "mcp-shodan",
          "env": {
            "SHODAN_API_KEY": "your-shodan-api-key"
          }
        }
      }
    }
    

    配置文件位置:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. 重启 Claude Desktop

可用工具

  1. ip_lookup - 获取 IP 详细信息(地理位置、端口、服务等)
  2. shodan_search - 搜索 Shodan 连接设备数据库
  3. cve_lookup - 查询漏洞信息
  4. dns_lookup - 将域名解析为 IP 地址
  5. reverse_dns_lookup - 查找 IP 关联的主机名
  6. cpe_lookup - 搜索通用平台枚举条目
  7. cves_by_product - 搜索影响特定产品的漏洞

使用要求

示例用法

在 Claude 中,可以使用以下格式调用工具:

使用 ip_lookup 工具查看 IP 信息:
{
  "ip": "8.8.8.8"
}

使用 shodan_search 搜索设备:
{
  "query": "webcam country:US",
  "max_results": 5
}

使用 cve_lookup 查找漏洞详情:
{
  "cve": "CVE-2021-44228"
}

详细工具参数和返回值请参考工具说明文档。