shodan

v1.0.41
io.github.w0h1v/shodan Checked 1 hour ago Published 13 days ago

MCP server for Shodan API — device search, IP and domain recon, DNS, and CVE/CPE queries.

Values you need

VariableWhat it is
SHODAN_API_KEYrequired secret Your Shodan API key

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add shodan -e 'SHODAN_API_KEY=<SHODAN_API_KEY>' -- npx -y @burtthecoder/mcp-shodan@1.0.41
Add to claude_desktop_config.json
{
  "mcpServers": {
    "shodan": {
      "args": [
        "-y",
        "@burtthecoder/mcp-shodan@1.0.41"
      ],
      "command": "npx",
      "env": {
        "SHODAN_API_KEY": "<SHODAN_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "shodan": {
      "args": [
        "-y",
        "@burtthecoder/mcp-shodan@1.0.41"
      ],
      "command": "npx",
      "env": {
        "SHODAN_API_KEY": "<SHODAN_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SHODAN_API_KEY",
      "id": "shodan-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "shodan": {
      "args": [
        "-y",
        "@burtthecoder/mcp-shodan@1.0.41"
      ],
      "command": "npx",
      "env": {
        "SHODAN_API_KEY": "${input:shodan-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.shodan]
command = "npx"
args = ["-y", "@burtthecoder/mcp-shodan@1.0.41"]
env = { "SHODAN_API_KEY" = "<SHODAN_API_KEY>" }

For AI agents

  1. Ask the user for: SHODAN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: ip_lookup, shodan_search, cve_lookup, dns_lookup, reverse_dns_lookup, cpe_lookup, cves_by_product, shodan_count, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json