# Shodan MCP Server

> Query Shodan network and vulnerability intelligence through MCP.

- **URL**: https://followmcp.com/en/servers/mcp-shodan
- **Category**: Other
- **Origin**: Community
- **Stars**: 195
- **FMRS Score**: 61/100 (Grade C)
- **Source**: https://github.com/w0h1v/mcp-shodan
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Node.js 20+
- **Auth**: API key / credential required

## 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.

## 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
- 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.

## Client config (JSON)
```json
{
  "command": "npx",
  "args": [
    "-y",
    "@burtthecoder/mcp-shodan"
  ],
  "env": {
    "SHODAN_API_KEY": "your-key"
  }
}
```

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