Mcp Shodan

io.github.daedalus由 GitHub 账号 daedalus 发布v0.1.0更新于 Oct 27, 2026

MCP server exposing all Shodan API functionality

概览

AI 生成的概览

本地 MCP 服务器,封装 Shodan 互联网设备搜索 API,让助手查询主机、执行搜索、管理告警并发起扫描。

可以做什么
  • 查询主机与搜索:获取 IP 的详细信息、搜索 Shodan 数据库、游标迭代、统计结果数量、查看查询分词信息
  • 管理告警:列出、创建和删除 Shodan 告警
  • 执行扫描:扫描网段、按端口扫描互联网、查询扫描状态
  • 浏览已保存查询:列出共享查询、搜索查询、获取热门标签
  • 检索漏洞利用库并统计漏洞数量
  • 读取 API 工具信息:密钥信息、抓取端口、支持的协议与服务
适用场景
适合安全研究、暴露面评估和侦察场景:需要助手查询 IP、服务与漏洞利用相关的 Shodan 数据,或在对话中管理 Shodan 告警与扫描时使用。
运行要求
以本地进程方式运行,通过 pip 从 PyPI 安装,需要 Python 环境。需要 Shodan API 密钥,通过环境变量 SHODAN_API_KEY 提供,并需能访问 Shodan API 的网络。仅支持桌面端。
安装前请注意
API 密钥以明文形式通过 SHODAN_API_KEY 传入,可访问你的 Shodan 账户并受套餐额度限制。工具可创建和删除告警、发起网段或互联网扫描,会改变账户状态,并可能消耗付费查询或扫描额度。查询内容和目标地址会发送到 Shodan 服务器。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Shodan,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-shodan

MCP server exposing Shodan API functionality via the Model Context Protocol.

[PyPI] [Python] [Coverage] [Ruff]

Install

bash
pip install mcp-shodan

Usage

bash
export SHODAN_API_KEY=your_api_keymcp-shodan

Or add to your MCP configuration:

json
{  "mcpServers": {    "shodan": {      "command": "mcp-shodan",      "env": {        "SHODAN_API_KEY": "your_api_key"      }    }  }}

Available Tools

Host Information

  • shodan_host - Get all available information on an IP address

Search

  • shodan_search - Search the Shodan database
  • shodan_search_cursor - Search and return an iterator
  • shodan_count - Get total number of search results
  • shodan_search_tokens - Get information about a search query

Alerts

  • shodan_alerts - List all active alerts
  • shodan_create_alert - Create a new alert
  • shodan_delete_alert - Delete an alert

Scanning

  • shodan_scan - Scan a network
  • shodan_scan_internet - Scan the internet on a port
  • shodan_scan_status - Get scan status

Saved Queries

  • shodan_queries - List shared search queries
  • shodan_queries_search - Search saved queries
  • shodan_queries_tags - Get popular query tags

Exploits

  • shodan_exploits_search - Search the Shodan Exploits archive
  • shodan_exploits_count - Get total exploit count

Utilities

  • shodan_info - Get API key information
  • shodan_ports - Get list of ports Shodan crawls
  • shodan_protocols - Get supported protocols
  • shodan_services - Get list of services

Example

python
# Get information about a hostshodan_host("1.1.1.1")
# Search for specific servicesshodan_search("apache", limit=10)
# Count results for a queryshodan_count("nginx")
# Check your API planshodan_info()

mcp-name: io.github.daedalus/mcp-shodan

来源:README.md,提交 f276d75

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分