← Back to directory
S

Shodan MCP Server

Community
Query Shodan network and vulnerability intelligence through MCP.
Category
Other #68 of 678
Stars
★ 195 Very popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js 20+
Credentials
API key / credential required
License
MIT
Last commit
Tools
11
61FMRS · C

This is an independent Shodan MCP integration with device search, IP and DNS lookup, and CVE/CPE intelligence tools. The manifest declares stdio and requires a Shodan API key; the README also documents HTTP streaming and states that it has no authentication.

Strongest · Documentation 15/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
13/20
Maintenance
10/20
Documentation
15/20
Setup experience
13/20
Why each score
Reliability 10/20
The README claims CI and unit tests using a mocked Shodan API, and lists 11 read-only tools with their intended behavior. The supplied material contains no workflow, test files, or implementation, so the MCP handshake, tool behavior, error handling, and dependency control cannot be verified. This supports a middling static-review score.
Security and permissions 13/20
The material says the API key comes from an environment variable and is sent only to Shodan, while CVEDB requests carry no key. It describes the tools as read-only, warns that HTTP transport has no authentication and can consume query credits, and discloses that lookups are sent to Shodan. Points are deducted because access control for exposed HTTP deployments depends on operator configuration and the implementation is unavailable to verify data boundaries. No red-line evidence is present.
Maintenance 10/20
The material identifies an MIT license, npm version 1.0.41, and a private vulnerability-reporting channel. It provides no commit history, release history, dependency update record, or issue-response evidence. The supplied 193 stars and 1 open issue are not used to score maintenance.
Documentation 15/20
The README covers the tool groups, costs and credits, authentication, transports, security limitations, and troubleshooting, and links to more detailed tool and client documentation. Points are deducted because those linked documents are not included, so tool parameters, platform differences, and actual behavior cannot be verified in this review.
Setup experience 13/20
The README specifies Node.js 20+, gives setup examples for Claude Code, Codex CLI, and Gemini CLI, and mentions Claude Desktop, VS Code, and HTTP usage. Points are deducted because the client configuration documentation is absent and no verifiable CI workflow or committed tests are supplied to establish that installation and connection steps are reproducible.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the network

Best for

  • Analysts who need network reconnaissance, DNS lookups, or vulnerability intelligence through an AI client.
  • Users with a Shodan API key who understand its credit and query limits.

Not for

  • Users who do not need Shodan data or vulnerability intelligence queries.
  • Deployments that require an authenticated HTTP service; the project states its HTTP transport has no authentication.

Required permissions

  • Requires the SHODAN_API_KEY environment variable; the key is sent to api.shodan.io.
  • Lookup queries are sent to Shodan; CVEDB requests carry no API key.
  • Requires Node.js 20 or newer.

Risks and side effects

  • The HTTP transport has no authentication. Anyone who can reach it may spend query credits; the project advises binding to localhost or placing it behind an authenticated reverse proxy.
  • Filtered shodan_search queries and domain_info consume query credits, and plan limits may constrain use.
  • Shodan allows about one request per second, so faster requests may receive 429 responses.

Setup

Before you start

Runtime:Node.js 20+

SHODAN_API_KEY requiredsecret Required Shodan API key; get it from your Shodan account.
Other optional settings (4)
MCP_TRANSPORT optional Transport mode, set to `stdio` or `httpStream`; defaults to `stdio`.
MCP_HOST optional Bind address for HTTP streaming; defaults to `localhost`.
MCP_PORT optional HTTP streaming service port; defaults to `3000`.
MCP_ENDPOINT optional HTTP MCP endpoint path; defaults to `/mcp`.

Requires Node.js 20 or newer and a Shodan API key. Claude Code example: claude mcp add --transport stdio --env SHODAN_API_KEY=your-key shodan -- npx -y @burtthecoder/mcp-shodan. The README also provides add commands for Codex CLI and Gemini CLI; see the project's client guide for Claude Desktop, VS Code, and running from source.

.mcp.json
{
  "command": "npx",
  "args": [
    "-y",
    "@burtthecoder/mcp-shodan"
  ],
  "env": {
    "SHODAN_API_KEY": "your-key"
  }
}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

Check that it works

Confirm `shodan_search` and `api_info` appear in your client’s MCP tool list. Call `api_info` and check that it returns your API plan or credit information.

Troubleshooting

  1. For a 401, check for extra spaces or quotes around the API key and restart the client.
  2. For a 403 from shodan_search, check whether the plan supports search filters and use api_info to review the plan and credits.
  3. For a 429, retry later; Shodan allows about one request per second.

Things to try

Once connected, you can ask your AI assistant things like:

  • Check which ports and services are exposed on 8.8.8.8.
  • Search for internet-connected devices running Apache and break down the results by country.
  • Look up CVE-2021-44228 and report its CVSS, EPSS, and KEV status.
  • Find the subdomains and DNS records for example.com.

Tools 11

shodan_search read-only
Search Shodan's database of internet-connected devices with advanced filters.
ip_lookup read-only
Retrieve IP information including geolocation, open ports, and services.
dns_lookup read-only
Resolve domain names to IP addresses using Shodan's DNS service.
reverse_dns_lookup read-only
Find hostnames associated with IP addresses through reverse DNS.
cve_lookup read-only
Query CVE details including CVSS scores, EPSS, and KEV status.
cpe_lookup read-only
Search for Common Platform Enumeration (CPE) entries by product name.
cves_by_product read-only
Search for vulnerabilities affecting a product or CPE identifier.
shodan_count read-only
Get total result counts and facet breakdowns without using query credits.
Show 3 more tools
domain_info read-only
List subdomains and DNS records for a domain; each call costs one query credit.
api_info read-only
Show the API plan, query and scan credits, and usage limits.
search_filters read-only
List available Shodan search filters and facets.

Use cases

Inspect an IP's open ports, products, services, TLS details, and location.
Search internet-connected devices with Shodan query syntax and review facet counts.
Look up domain DNS records and subdomains, or run forward and reverse DNS lookups.
Review CVSS, EPSS, and KEV details for a CVE, or find vulnerabilities by product or CPE.

Supported clients

Claude Code
Codex
Gemini CLI
Claude DesktopPartial support
VS CodePartial support

Listed from the project's documentation, not tested by this site.

Overview

Shodan MCP Server gives AI clients access to the Shodan API and Shodan CVEDB for searching internet-connected devices, looking up IP and domain information, resolving DNS, and querying CVE/CPE intelligence. It is an independent project and is not affiliated with Shodan.

Similar servers

Source revision 6a1cbb7a6a4b Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcp-shodan.svg)](https://followmcp.com/en/servers/mcp-shodan)