Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keySecurity

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

NameWhat it isRequired
SHODAN_API_KEYYour Shodan API keyYes

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 IP
  • shodan_search: search devices with Shodan query syntax
  • shodan_count: count matches for a query without results
  • domain_info: subdomains and DNS records
  • dns_lookup and reverse_dns_lookup: resolve names and IPs in batch
  • cve_lookup: CVSS, EPSS and KEV details for a CVE
  • cves_by_product: CVEs for a product or CPE
  • api_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

A Shodan API key and Node.js 20 or newer. Some tools need a paid Shodan plan or spend query credits.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.