mcp-shodan
by BurtTheCoder·★ 127·Score 50
MCP server for Shodan API providing IP reconnaissance, DNS lookups, and vulnerability intelligence.
Overview
The mcp-shodan server is a comprehensive implementation that bridges the Model Context Protocol with Shodan's extensive network intelligence database. It allows AI models to access real-time information about internet-connected devices, including IP details, DNS data, and vulnerability intelligence from Shodan's CVEDB. The server offers multiple tools including IP lookups, device searches, CVE and CPE lookups, and DNS operations, all returning structured, formatted output suitable for AI analysis and decision-making.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need AI access to Shodan's network intelligence for security research, reconnaissance, or vulnerability intelligence gathering within your workflow.
When NOT to choose this
Don't use this if you don't have a Shodan API key, as it requires paid credits for most operations beyond basic lookups.
Tools this server exposes
7 tools extracted from the READMEip_lookupRetrieve comprehensive information about an IP address
shodan_searchSearch Shodan's database of internet-connected devices
cve_lookupQuery detailed vulnerability information from Shodan's CVEDB
dns_lookupResolve domain names to IP addresses using Shodan's DNS service
reverse_dns_lookupPerform reverse DNS lookups to find hostnames associated with IP addresses
cpe_lookupSearch for Common Platform Enumeration (CPE) entries by product name
cves_by_productSearch for vulnerabilities affecting specific products or CPEs
Comparable tools
Installation
Installation
Claude Desktop
Add to your Claude Desktop configuration file:
{
"mcpServers": {
"shodan": {
"command": "mcp-shodan",
"env": {
"SHODAN_API_KEY": "your-shodan-api-key"
}
}
}
}Via Claude Code
claude mcp add --transport stdio --env SHODAN_API_KEY=your-shodan-api-key shodan -- npx -y @burtthecoder/mcp-shodanVia Codex CLI
codex mcp add shodan --env SHODAN_API_KEY=your-shodan-api-key -- npx -y @burtthecoder/mcp-shodanVia Gemini CLI
gemini mcp add -e SHODAN_API_KEY=your-shodan-api-key shodan npx -y @burtthecoder/mcp-shodanManual Install
npm install -g @burtthecoder/mcp-shodanFAQ
- What API key do I need for mcp-shodan?
- You need a valid API key from Shodan. You can obtain one by creating an account at https://account.shodan.io/.
- What error code indicates I'm out of API credits?
- HTTP status code 402 'Payment Required' means you've run out of query credits on your Shodan account.
- How do I test if my MCP server is working correctly?
- Try a simple DNS lookup for a well-known domain like 'google.com' using the dns_lookup tool. If it returns IP addresses, your server is working properly.
Compare mcp-shodan with
Last updated · Auto-generated from public README + GitHub signals.