Token导航 LogoToken导航TokenDH.com
Sec Shodan MCP logo
安全风控未说明官方级别未说明来源级核验

Sec Shodan MCP

MCP Server

一个提供全面访问Shodan物联网搜索引擎API的Model Context Protocol (MCP)服务器,支持网络侦察、漏洞研究和安全分析。

工具数

26

提示词数

0

GitHub Stars

0

资源数

0
安全TypeScriptClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

schwarztim

提供方

schwarztim

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Shodan MCP服务器

A. 模型上下文协议(MCP) 提供对 肖丹 物联网搜索引擎API。这使得AI助手能够使用Shodan强大的搜索功能进行网络侦察、漏洞研究和安全分析。

特性

  • 设备搜索:使用强大的查询语法在Shodan数据库中搜索连接互联网的设备
  • 主机智能:获取有关特定IP地址的详细信息,包括开放端口、服务和漏洞
  • 利用数据库:搜索Shodan的漏洞数据库,包括CVE、漏洞数据库和Metasploit
  • 网络扫描:请求按需扫描IP地址和网络范围
  • 网络监控:创建警报以监控IP范围的变化
  • DNS操作:执行正向和反向DNS查找,枚举子域
  • 蜜罐检测:使用Shodan的honeyscore算法识别潜在的蜜罐

先决条件

  • Node.js 18或更高版本
  • 一个Shodan API密钥(在 永远。)

安装

# Clone the repository
git clone https://github.com/schwarztim/sec-shodan-mcp.git
cd sec-shodan-mcp

# Install dependencies
npm install

# Build the project
npm run build

配置

克劳德桌面版

添加到您的Claude Desktop配置文件中:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json 视窗: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/claude/claude_desktop_config.json

{
  "mcpServers": {
    "shodan": {
      "command": "node",
      "args": ["/path/to/sec-shodan-mcp/dist/index.js"],
      "env": {
        "SHODAN_API_KEY": "your-api-key-here"
      }
    }
  }
}

克劳德代码

添加到 ~/.claude/user-mcps.json:

{
  "mcpServers": {
    "shodan": {
      "command": "node",
      "args": ["/path/to/sec-shodan-mcp/dist/index.js"],
      "env": {
        "SHODAN_API_KEY": "your-api-key-here"
      }
    }
  }
}

可用工具

搜索与发现

工具说明
shodan_search使用以下过滤器在Shodan中搜索与查询匹配的设备 port:, country:, org:, product:, vuln:
shodan_host获取有关特定IP的所有信息,包括端口、服务、横幅、漏洞和SSL证书
shodan_count统计搜索结果而不消耗查询积分

利用数据库

工具说明
shodan_exploits_search按CVE、作者、平台、类型或端口搜索漏洞
shodan_exploits_count统计匹配漏洞,不返回单个结果

网络扫描

工具说明
shodan_scan请求按需扫描IP地址或CIDR范围
shodan_scan_status检查以前提交的扫描的状态
shodan_list_scans列出所有活动的按需扫描

网络警报

工具说明
shodan_alert_create为IP范围创建监控警报
shodan_alert_list列出所有活动的网络警报
shodan_alert_get获取特定警报的详细信息
shodan_alert_delete删除网络警报
shodan_alert_triggers列出可用的警报触发类型

DNS操作

工具说明
shodan_dns_resolve将主机名解析为IP地址(转发DNS)
shodan_dns_reverse查找IP地址的主机名(反向DNS)
shodan_dns_domain获取包括子域在内的域的DNS信息

安全分析

工具说明
shodan_honeyscore计算IP是蜜罐的概率(0.0到1.0)

效用

工具说明
shodan_ports列出Shodan抓取的所有端口
shodan_protocols列出可用于按需扫描的协议
shodan_filters列出Shodan中可用的所有搜索筛选器
shodan_facets列出可用于搜索结果细分的方面
shodan_api_info获取API计划信息,包括查询和扫描信用
shodan_account_profile获取API密钥的帐户信息
shodan_myip获取您当前的公共IP地址

查询库

工具说明
shodan_saved_queries浏览已保存搜索查询的目录
shodan_search_queries搜索已保存的查询目录

使用示例

搜索设备

# Find Apache servers in the United States
shodan_search: query="apache country:US"

# Find open SSH servers
shodan_search: query="port:22 product:openssh"

# Find devices vulnerable to Log4Shell
shodan_search: query="vuln:CVE-2021-44228"

# Find webcams with screenshots
shodan_search: query="webcam has_screenshot:true"

# Find industrial control systems
shodan_search: query="tag:ics"

# Find devices by organization
shodan_search: query="org:\"Google LLC\""

获取主机信息

# Get details about a specific IP
shodan_host: ip="8.8.8.8"

# Include historical data
shodan_host: ip="8.8.8.8" history=true

搜索漏洞

# Search for Log4j exploits
shodan_exploits_search: query="log4j"

# Find exploits by CVE
shodan_exploits_search: query="cve:CVE-2021-44228"

# Find Metasploit modules
shodan_exploits_search: query="source:metasploit"

DNS操作

# Resolve hostnames
shodan_dns_resolve: hostnames="google.com,github.com"

# Reverse DNS lookup
shodan_dns_reverse: ips="8.8.8.8,1.1.1.1"

# Get domain information
shodan_dns_domain: domain="example.com"

API学分

不同的Shodan API计划有不同的信用额度:

  • 免费帐户:每月搜索查询次数有限
  • 按页码搜索:消耗查询积分
  • shodan_count:不消耗积分(用于范围界定)
  • 按需扫描:消耗扫描积分(每个IP 1个积分)
  • 一些过滤器 (比如 vuln:)要求付费计划

通过以下方式查看您当前的积分 shodan_api_info.

发展

# Run in development mode
npm run dev

# Build for production
npm run build

# Start the server
npm start

安全通知

该工具旨在用于合法的安全研究、渗透测试(经授权)和网络防御目的。在扫描或探测您不拥有的系统之前,始终确保您有适当的授权。

资源

许可证

MIT许可证-请参阅 许可证 了解详情。

贡献

欢迎投稿!请随时提交拉取请求。

目录标签

目录标签

安全TypeScriptClaude物联网搜索本地部署网络安全漏洞研究网络侦察DNS操作

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

26

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP