shodan-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shodan-mcpLook up host 45.33.32.156 and list any known vulnerabilities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
shodan-mcp
A minimal Model Context Protocol server for Shodan. It exposes only the endpoints needed for two things: checking what your own infrastructure exposes to the internet, and searching Shodan's data for general reconnaissance. One file, no extra dependencies beyond the official MCP SDK.
Quick start
git clone https://github.com/aethrox/shodan-mcp.git
cd shodan-mcp
npm installRegister it with Claude Code:
claude mcp add shodan -s user -e SHODAN_API_KEY=your-key-here -- node /absolute/path/to/index.jsOr run it standalone (it speaks MCP over stdio):
SHODAN_API_KEY=your-key-here node index.jsA Shodan API key is required either way. Instead
of exporting SHODAN_API_KEY yourself, you can copy .env.example to .env
and put the key there; the server loads it automatically on startup. .env
is gitignored, so it never gets committed.
cp .env.example .env
# then edit .env and set SHODAN_API_KEYRelated MCP server: Shodan MCP Server
Tools
Tool | What it does |
| Public IP Shodan sees this API key's requests coming from. Starting point for scanning your own infrastructure. |
| Full Shodan record for one IP: open ports, banners, detected products/versions, known vulnerabilities. |
| Search Shodan's device database using Shodan search syntax ( |
| CVE details from Shodan's CVEDB: CVSS score, affected CPEs, how many exposed hosts Shodan currently sees. |
| CVEs affecting a given CPE (product + version). |
| Count hosts matching a search query without spending query credits. |
| List the search filters Shodan supports (country, port, net, vuln, ...). |
| Subdomains and DNS entries Shodan has seen for a domain. |
| Resolve hostnames to IP addresses. |
| Reverse-resolve IP addresses to hostnames. |
| This API key's plan and remaining query/scan credits. |
Requirements
Node.js 20+
A Shodan API key with the plan tier needed for the endpoints you use (host lookup and search require more than the free tier)
Limitations
No caching or rate-limit handling: requests go straight to the Shodan API, so hitting your plan's rate limit surfaces as a raw API error.
No pagination helper for
shodan_search; multi-page results need repeated calls with thepageargument.The API key is passed as a plain environment variable to the MCP process, same as any other stdio MCP server. Don't commit it, and be mindful of where your MCP client config file (e.g.
claude mcp addoutput) ends up stored.
License
MIT
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceMCP server for querying the Shodan API and Shodan CVEDB. This server provides tools for IP lookups, device searches, DNS lookups, vulnerability queries, CPE lookups, and more.7304149MIT
- Flicense-qualityDmaintenanceA WebSocket server that provides MCP interface for searching and retrieving information about internet-connected devices, IP addresses, DNS data, and CVE vulnerabilities through the Shodan API.3
- Flicense-qualityDmaintenanceThis is a Model Context Protocol (MCP) server that provides access to the Shodan API. It allows you to programmatically query Shodan for information about devices, vulnerabilities, and more.2
- Flicense-qualityBmaintenancePassive reconnaissance MCP server powered by Shodan, enabling host lookups, search, and DNS queries gated against HackerOne scope snapshots.
Related MCP Connectors
Shodan InternetDB MCP — wraps Shodan InternetDB (internetdb.shodan.io)
Shodan MCP — wraps the full Shodan REST API (api.shodan.io)
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aethrox/shodan-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server