Shodan logo

Shodan

Query Shodan host profiles, search internet-facing assets, and count matches with facet breakdowns through MCP.

Install Shodan

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "shodan": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-shodan"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 3 tools correctly (5d ago).

Overview

Shodan MCP server exposes selected Shodan REST API operations through MCP for host inspection and internet-wide asset searches. Its three tools retrieve an IP profile, search with Shodan query syntax, or count matches with optional facet aggregations. Connect through the hosted Pipeworx MCP endpoint or run the npm stdio bridge, supplying a Shodan API key per tool call. Reach for it when an agent needs structured Shodan exposure, service, location, organization, or vulnerability data.

Use cases

  • Inspect an IP address for exposed services and known vulnerabilities
  • Search for internet-facing hosts matching organization, port, product, or country criteria
  • Count matching hosts and group results by country, organization, or port
  • Ask an agent to select the appropriate Shodan operation from a natural-language question

Key features

  • Shodan host profile lookups
  • Shodan query searches
  • Host counts with facet aggregations
  • MCP over hosted HTTP
  • Local npm stdio bridge
  • Optional Pipeworx gateway meta-tools

Tools3

What Shodan lets your agent do. Expand a tool for its parameters.

Verified live~620 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

11/11 checks healthy over the last 61d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Makes network requests · 3Read-only tools · 3
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age124 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · @pipeworx/mcp-shodan (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads322Package downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Shodan works

What Shodan does

Shodan provides MCP access to Shodan data for examining exposed internet-facing hosts and discovering assets that match a query. The integration focuses on three operations: retrieving a host profile by IP address, searching hosts with Shodan search syntax, and counting matching hosts with optional facet breakdowns.

A host lookup can include open ports, services, hostnames, organization and ISP information, geolocation, operating system details, known vulnerabilities, and a sample banner for each service. Search results can include the matching IP, port, organization, hostnames, product, and location.

How it works

The hosted connection is available at https://gateway.pipeworx.io/shodan/mcp. It uses the Pipeworx gateway to reach the Shodan REST API, and the Shodan API key is passed in the tool request as _apiKey. The same gateway also exposes shared Pipeworx meta-tools on the hosted pack endpoint, including ask_pipeworx, discover_tools, search_within, and memory-related tools.

A local npm bridge runs over stdio and forwards calls to the hosted gateway. It still needs network access; it does not provide an offline implementation. The gateway can also be connected at its full endpoint when an application needs direct access to all available packs.

Setup and configuration

For an HTTP-capable MCP client, add the hosted endpoint to the client configuration:

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

The local stdio option uses the npm package:

config.json
{
  "mcpServers": {
    "shodan": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-shodan"]
    }
  }
}

Add PIPEWORX_API_KEY under the stdio server's env object to authenticate with Pipeworx. The Shodan credential itself is supplied to calls as _apiKey. Anonymous stdio use is limited to 50 calls per day, while a free Pipeworx account raises the limit to 200 calls per day.

Set PIPEWORX_META_TOOLS=1 if the local bridge should also list the gateway-wide meta-tools. Proxy users may need NODE_USE_ENV_PROXY=1, because Node's built-in fetch does not read HTTPS_PROXY by default.

Tools and capabilities

  • shodan_host: Retrieve a host profile for an IP, including ports, services, banners, ownership, geography, operating system data, and known CVEs.
  • shodan_host_search: Search using Shodan syntax such as apache country:US or port:22 org:"Google".
  • shodan_host_count: Count matches and request facet aggregations such as countries, organizations, or ports. This endpoint does not consume query credits.
  • ask_pipeworx: Ask a natural-language question through the gateway, which selects and fills the relevant tool arguments.

Limitations and notes

This is an independent, unofficial integration and is not affiliated with Shodan. The hosted pack endpoint lists its three Shodan tools alongside shared gateway tools, so the total tool count is larger than the pack-specific list. Tool scope can change, and the connection's initialize response is authoritative for the tools exposed at connection time.

Calls require network access and an API key for Shodan operations. The integration does not front a Shodan key for HTTP examples, and anonymous local use has a daily call cap. Query searches use Shodan's own search syntax and return the fields supplied by Shodan.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Shodan

Shodan is an MCP server that connects AI agents to the Shodan REST API through Pipeworx. Its main tools retrieve host profiles, search hosts with Shodan query syntax, and count matching hosts with optional facets. Host results can include ports, services, banners, locations, organizations, operating systems, and known vulnerabilities.

Install it by adding the hosted MCP URL or running the npm stdio bridge. Use `https://gateway.pipeworx.io/shodan/mcp` for an HTTP connection, or configure `npx -y @pipeworx/mcp-shodan` as the command. The local bridge needs network access and can receive `PIPEWORX_API_KEY` through its environment.

Yes, Shodan works with Cursor through the hosted MCP endpoint. Add `https://gateway.pipeworx.io/shodan/mcp` to Cursor's MCP configuration, then pass the Shodan API key as `_apiKey` when invoking the Shodan tools.

Use `shodan_host_search` with a Shodan search query and the `_apiKey` argument. Queries can include syntax such as `apache country:US` or `port:22 org:"Google"`; results contain matching IPs, ports, organizations, hostnames, products, and locations.

Use `shodan_host_count`, which counts matching hosts without consuming query credits. Supply a Shodan query and optionally a facets string such as `country:10` to receive aggregations for countries, organizations, ports, or other supported dimensions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewShodan AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/shodan?style=directory)](https://allmcps.com/mcp/shodan)
HTML Embed
<a href="https://allmcps.com/mcp/shodan"><img src="https://allmcps.com/api/badge/shodan?style=directory" alt="Shodan on AllMCPs" /></a>