LocalFree server, account needed

Shodan MCP server

BurtTheCoder/mcp-shodan

Query the Shodan API and Shodan CVEDB: IP lookups, device searches, DNS lookups, vulnerability queries and CPE lookups.

Install Shodan in Claude Code

Claude Code
claude mcp add shodan -e SHODAN_API_KEY=... -- npx -y @burtthecoder/mcp-shodan
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "shodan": {
      "command": "npx",
      "args": [
        "-y",
        "@burtthecoder/mcp-shodan"
      ],
      "env": {
        "SHODAN_API_KEY": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the Shodan MCP server do?

Query the Shodan API and Shodan CVEDB: IP lookups, device searches, DNS lookups, vulnerability queries and CPE lookups.

Is the Shodan MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does Shodan run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Shodan to Claude Code?

Run: claude mcp add shodan -e SHODAN_API_KEY=... -- npx -y @burtthecoder/mcp-shodan

More security & identity MCP servers

View all