Shodan MCP Server
Enables to search and analyze internet-connected devices using the Shodan API, with tools for host search, DNS, scanning, exploits, alerts, and more.
README
Shodan MCP Server
An MCP (Model Context Protocol) server that exposes the Shodan API as MCP tools. Built with FastMCP and the official shodan-python library.
Setup
cp .env.example .env # add your SHODAN_API_KEY
pip install -r requirements.txt
python server.py
Tools
30 tools across 9 categories:
Core Search
| Tool | Description |
|---|---|
shodan_search |
Search Shodan hosts (query, page, limit, offset, facets, fields) |
shodan_host |
Get all info on an IP address |
shodan_count |
Get result count for a query |
shodan_search_filters |
List available search filters |
shodan_search_tokens |
Parse and analyze a search query |
shodan_search_facets |
List available search facets |
shodan_ports |
List ports Shodan crawls |
shodan_protocols |
List on-demand scan protocols |
shodan_services |
List service name to port mappings |
shodan_api_info |
Get API key info and credits |
DNS
| Tool | Description |
|---|---|
shodan_domain_info |
Get DNS records for a domain |
IP Tools
| Tool | Description |
|---|---|
shodan_my_ip |
Get your current public IP |
shodan_honeyscore |
Honeypot probability (0.0–1.0) |
Community Queries
| Tool | Description |
|---|---|
shodan_queries |
List shared community queries |
shodan_queries_search |
Search community queries |
shodan_queries_tags |
List query tags |
Scanning
| Tool | Description |
|---|---|
shodan_scan |
Submit IPs/netblocks for scanning |
shodan_scan_status |
Check scan status |
shodan_scans |
List previous scans |
shodan_scan_internet |
Scan the internet for a port/protocol |
Alerts / Monitoring
| Tool | Description |
|---|---|
shodan_create_alert |
Create a network alert |
shodan_list_alerts |
List or get alert details |
shodan_delete_alert |
Delete an alert |
shodan_alert_triggers |
List available alert triggers |
Exploits
| Tool | Description |
|---|---|
shodan_exploit_search |
Search the exploit archive |
shodan_exploit_count |
Count exploit results |
Bulk Data
| Tool | Description |
|---|---|
shodan_datasets |
List available datasets |
shodan_dataset_files |
List files in a dataset |
Notifiers
| Tool | Description |
|---|---|
shodan_notifiers |
List configured notifiers |
shodan_notifier_providers |
List supported providers |
Error Handling
All tools catch shodan.APIError and return {"error": "<message>"} instead of raising.
Docker
docker compose up -d --build
Project Structure
├── server.py # Entry point — creates FastMCP app, wires up tools
├── tools/
│ └── shodan.py # All 30 tool implementations + Shodan client wrapper
├── AGENTS.md # Context for AI coding assistants
├── requirements.txt
├── .env.example
├── Dockerfile
└── docker-compose.yml
Agent Context
See AGENTS.md for conventions, architecture, and tool registration patterns used in this project.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。