Shodan MCP
Lets your AI agent search internet-connected devices, look up IPs and domains, and check CVE details through Shodan.
187 stars on GitHubby w0h1vLicense MITUpdated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add shodan -e SHODAN_API_KEY="<your value>" -- npx -y @burtthecoder/mcp-shodan
What to fill in
| Name | What it is | Required |
|---|---|---|
SHODAN_API_KEY | Your Shodan API key | Yes |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
What is exposed on 8.8.8.8, and is CVE-2021-44228 in the KEV catalog?
List the subdomains of example.com and resolve them to IP addresses.
What it is
This server gives your AI agent access to the Shodan API and the Shodan CVE database. You can look up what is open on an IP address, search for devices, list subdomains and DNS records, and check how severe a vulnerability is. It has eleven read-only tools.
What it can do
ip_lookup: ports, products, CVEs, TLS and location for an IPshodan_search: search devices with Shodan query syntaxshodan_count: count matches for a query without resultsdomain_info: subdomains and DNS recordsdns_lookupandreverse_dns_lookup: resolve names and IPs in batchcve_lookup: CVSS, EPSS and KEV details for a CVEcves_by_product: CVEs for a product or CPEapi_info: your plan and remaining credits
When to use
- βΊWhen you check what an IP address or server exposes to the internet
- βΊWhen you size or run a Shodan search for devices running a certain product
- βΊWhen you need to know how severe a CVE is and whether it is in the KEV catalog
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
shodan-reconnaissanceHelps your agent search Shodan for internet-exposed devices, open ports and services during authorized reconnaissance.shodan-reconnaissanceLets your agent use Shodan to gather information in security tests. It's useful for understanding systems before attacks.passive-reconHelps your agent learn about a company's internet setup, such as domains, DNS records and subdomains, without contacting its systems directly.Frequently asked questions
Is it free and open source?
The server is MIT licensed. You need your own Shodan API key, and some features need a paid Shodan plan.
Which tools cost credits?
Filtered shodan_search queries cost one query credit and domain_info costs one per call. Counts, IP lookup, DNS tools, helpers and the CVE tools are free.
Is it made by Shodan?
No. The readme says it is an independent project, not affiliated with Shodan.
Does it change anything?
No. All eleven tools are read-only.
Can I run it as a shared service?
Yes, with HTTP streaming. That mode has no authentication, so keep it on localhost or behind an authenticating proxy.
Is my lookup data private?
What you look up is sent to Shodan. The API key is sent only to api.shodan.io.
If it does not work
- βΊOn a 401 error, check for spaces or quotes around the key and restart the client.
- βΊA 403 on shodan_search means search filters need a membership or paid plan. Run api_info to see your plan.
- βΊA 429 means Shodan allows about one request per second, so retry after a moment.
5 new skills a week. 1 minute to read.