Shodan MCP server
MCP server for Shodan API — device search, IP lookup, DNS, and CVE/CPE queries.
173 stars
Reviews
Write oneNobody has reviewed Shodan yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Shodan tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan11 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 19 days ago15/15
- Maintainer identityregistry namespace matches repository owner6/10
Install Shodan in Claude Code, Cursor or VS Code
Runs npx -y @burtthecoder/mcp-shodan on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add shodan -- npx -y @burtthecoder/mcp-shodan
What the publisher says
From the Shodan repository's README, as published. We do not edit it. Read it on GitHub
Shodan MCP Server
A Model Context Protocol (MCP) server for querying the Shodan API and Shodan CVEDB. This server provides comprehensive access to Shodan's network intelligence and security services, including IP reconnaissance, DNS operations, vulnerability tracking, and device discovery. All tools provide structured, formatted output for easy analysis and integration.
Quick Start (Recommended)
Installing via Claude Code
claude mcp add --transport stdio --env SHODAN_API_KEY=your-shodan-api-key shodan -- npx -y @burtthecoder/mcp-shodanInstalling via Codex CLI
codex mcp add shodan --env SHODAN_API_KEY=your-shodan-api-key -- npx -y @burtthecoder/mcp-shodanInstalling via Gemini CLI
gemini mcp add -e SHODAN_API_KEY=your-shodan-api-key shodan npx -y @burtthecoder/mcp-shodanInstalling via Smithery
To install Shodan Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @burtthecoder/mcp-shodan --client claudeInstalling Manually
- Install the server globally via npm:
npm install -g @burtthecoder/mcp-shodan- Add to your Claude Desktop configuration file:
{
"mcpServers": {
"shodan": {
"command": "mcp-shodan",
"env": {
"SHODAN_API_KEY": "your-shodan-api-key"
}
}
}
}Configuration file location:
- macOS: ~/Library/Application Support/Claude/claudedesktopconfig.json
- Windows: %APPDATA%\Claude\claudedesktopconfig.json
- Restart Claude Desktop
Alternative Setup (From Source)
If you prefer to run from source or need to modify the code:
- Clone and build:
git clone https://github.com/w0h1v/mcp-shodan.git
cd mcp-shodan
npm install
npm run build- Add to your Claude Desktop configuration:
{
"mcpServers": {
"shodan": {
"command": "node",
"args": ["/absolute/path/to/mcp-shodan/build/index.js"],
"env": {
"SHODAN_API_KEY": "your-shodan-api-key"
}
}
}
}Features
- Network Reconnaissance: Query detailed information about IP addresses, including open ports, services, and vulnerabilities
- DNS Operations: Forward and reverse DNS lookups for domains and IP addresses
- Vulnerability Intelligence: Access to Shodan's CVEDB for detailed vulnerability information, CPE lookups, and product-specific CVE tracking
- Device Discovery: Search Shodan's database of internet-connected devices with advanced filtering
Tools
1. IP Lookup Tool
- Name: ip_lookup
- Description: Retrieve comprehensive information about an IP address, including geolocation, open ports, running services, SSL certificates, hostnames, and cloud provider details if available
- Parameters:
- ip (required): IP address to lookup
- Returns:
- IP Information (address, organization, ISP, ASN)
- Location (country, city, coordinates)
- Services (ports, protocols, banners)
- SSL/TLS details per service (certificate subject/issuer CN, serial, SHA-256 fingerprint, validity, TLS versions, cipher, JARM, JA3S) — certificate SAN hostnames appear in the top-level Hostnames/Domains
- Cloud Provider details (if available)
- Associated hostnames and domains
- Tags
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Shodan: common questions
- Is Shodan MCP server safe?
- Mostly: it is graded B (80/100). Read the Shodan safety report
- How do I install Shodan?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Shodan need an API key?
- Yes. The registry entry asks for
SHODAN_API_KEY. - Is Shodan maintained?
- The last commit was 20 days ago (2026-09-08). The latest release is v1.0.22.
- What can I use instead of Shodan?
- Servers from other publishers that do the same job: Shodan MCP server and DomainKits MCP server.
Alternatives to Shodan
Same job from other publishers: the closest match first, then the best rated.
- ShodanMCP server for Shodan API — device search, IP lookup, DNS, and CVE/CPE queries.not reviewedEstablishedB
- DomainKitsSearch newly registered, expired, aged, active, deleted and for-sale domains, plus WHOIS and DNS.not reviewedGrowingA