MCP Server

Shodan MCP — wraps the full Shodan REST API (api.shodan.io)

Local serverstdio

What is the MCP MCP server?

MCP MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Shodan MCP — wraps the full Shodan REST API (api.shodan.io).

What you get

Part of Pipeworx — an MCP gateway connecting AI agents to 1394+ live data sources.

What the assistant can call

Once MCP is connected, these are the calls the assistant has available:

  • shodan_host — What's exposed on IP — open ports, services, and CVEs. Returns the full Shodan host profile: ports, hostnames, org/ISP, geolocation, OS, known
  • shodan_host_search — Search Shodan for hosts matching using Shodan search syntax (e.g. "apache country:US", "port:22 org:"Google""). Returns matching hosts with
  • shodan_host_count — Count hosts matching with facet breakdown (free — this endpoint does not consume query credits). Returns the total match count plus optional

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP's toolset — shodan_host, shodan_host_search, shodan_host_count — is a fair guide to whether it matches your workflow. It is maintained by mojibake-ai; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp mcp server does with a few real requests.

Available tools

ToolWhat it does
shodan_hostWhat's exposed on IP <ip> — open ports, services, and CVEs. Returns the full Shodan host profile: ports, hostnames, org/ISP, geolocation, OS, known vulnerabilities, and a per-service banner sample. Example: shodan_host({
shodan_host_searchSearch Shodan for hosts matching <query> using Shodan search syntax (e.g. "apache country:US", "port:22 org:\"Google\""). Returns matching hosts with IP, port, org, hostnames, product, and location. Example: shodan_host_
shodan_host_countCount hosts matching <query> with facet breakdown (free — this endpoint does not consume query credits). Returns the total match count plus optional facet aggregations (e.g. top countries, orgs, ports). Example: shodan_h

How to install the MCP MCP server

{
  "mcpServers": {
    "shodan": {
      "url": "https://gateway.pipeworx.io/shodan/mcp"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use MCP to shodan host.
  • Use MCP to shodan host search.
  • Use MCP to shodan host count.

Frequently asked questions

It connects MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (shodan_host, shodan_host_search, shodan_host_count) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP directly.