Shodan

v1.0.0Securitystable

Enables comprehensive security reconnaissance, vulnerability assessment, and threat intelligence gathering by integrating Shodan's API. It provides tools for searching internet-connected devices, performing DNS operations, and querying the Shodan exp

cyreslabmcpmcp-serversecurity-tools
Share:
41
Stars
0
Downloads
0
Weekly
0/5

What is Shodan?

Shodan is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables comprehensive security reconnaissance, vulnerability assessment, and threat intelligence gathering by integrating shodan's api. it provides tools for searching internet-connected devices, perf...

Enables comprehensive security reconnaissance, vulnerability assessment, and threat intelligence gathering by integrating Shodan's API. It provides tools for searching internet-connected devices, performing DNS operations, and querying the Shodan exp

This server falls under the Security category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables comprehensive security reconnaissance, vulnerability

Use Cases

Search for internet-connected devices using Shodan API.
Perform DNS operations for security reconnaissance.
Gather threat intelligence and assess vulnerabilities.
Cyreslab-AI

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedApr 14, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx shodan-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Shodan

The Shodan MCP Server integrates Shodan's powerful internet-scanning API directly into your AI assistant, enabling security reconnaissance, vulnerability assessment, and threat intelligence from natural language queries. It exposes tools for searching internet-connected devices, performing DNS resolution and reverse lookups, retrieving SSL certificate data, querying CVE details with EPSS exploit prediction scores, and checking Known Exploited Vulnerabilities (KEV). Security researchers and penetration testers can use it to rapidly enumerate exposed services, identify vulnerable hosts by CVE, and audit their own network footprint without leaving the chat interface.

Prerequisites

  • Node.js 18 or later installed on your system
  • A Shodan account with a valid API key (paid membership required for most search and scanning features; CVE queries are free)
  • Git to clone the repository
  • An MCP-compatible client such as Claude Desktop
1

Clone the repository

Clone the Shodan MCP Server source code from GitHub to your local machine.

git clone https://github.com/Cyreslab-AI/shodan-mcp-server.git
cd shodan-mcp-server
2

Install dependencies and build

Install Node.js dependencies and compile the TypeScript source to JavaScript.

npm install
npm run build
3

Obtain your Shodan API key

Log in to your Shodan account at https://account.shodan.io and copy your API key. Most search and scanning tools require a paid Shodan membership; CVE lookups are available on free accounts.

4

Configure your MCP client

Add the Shodan MCP Server to your Claude Desktop (or other MCP client) configuration file, providing the absolute path to the built index.js and your API key as an environment variable.

{
  "mcpServers": {
    "shodan": {
      "command": "node",
      "args": ["/absolute/path/to/shodan-mcp-server/build/index.js"],
      "env": {
        "SHODAN_API_KEY": "your-shodan-api-key-here"
      }
    }
  }
}
5

Restart your MCP client

Fully quit and relaunch Claude Desktop (or your MCP client) so it picks up the new server configuration. You should see the Shodan tools available in the tool list.

Shodan Examples

Client configuration

Complete claude_desktop_config.json entry for the Shodan MCP Server using node to run the built output.

{
  "mcpServers": {
    "shodan": {
      "command": "node",
      "args": ["/absolute/path/to/shodan-mcp-server/build/index.js"],
      "env": {
        "SHODAN_API_KEY": "your-shodan-api-key-here"
      }
    }
  }
}

Prompts to try

Example natural language queries to use with the Shodan MCP Server once it is connected.

- "Search Shodan for Apache servers exposing port 8080 in Germany"
- "Look up the open ports and services for IP address 8.8.8.8"
- "Get the CVE details for CVE-2024-21413 including its EPSS score"
- "Find all devices in the 192.168.1.0/24 range indexed by Shodan"
- "What is my current public IP address according to Shodan?"
- "Check my Shodan API credit balance"

Troubleshooting Shodan

Search queries return an error about insufficient permissions or credits

Most Shodan search and network-scanning tools require a paid Shodan membership. CVE lookups (search_cve, get_cve) work on free accounts. Upgrade your plan at https://account.shodan.io or restrict usage to CVE-related queries.

Server fails to start with 'Cannot find module' or build errors

Ensure you have run both 'npm install' and 'npm run build' inside the cloned repository directory before pointing the MCP config to the build/index.js file. Verify the path in 'args' is an absolute path.

SHODAN_API_KEY is not recognized and all calls fail with authentication errors

Confirm the environment variable is spelled exactly as SHODAN_API_KEY (all caps) inside the 'env' block of your MCP config. Verify the key value at https://account.shodan.io and restart your MCP client after saving the config.

Frequently Asked Questions about Shodan

What is Shodan?

Shodan is a Model Context Protocol (MCP) server that enables comprehensive security reconnaissance, vulnerability assessment, and threat intelligence gathering by integrating shodan's api. it provides tools for searching internet-connected devices, performing dns operations, and querying the shodan exp It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Shodan?

Follow the installation instructions on the Shodan GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Shodan?

Shodan works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Shodan free to use?

Yes, Shodan is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Shodan Alternatives — Similar Security Servers

Looking for alternatives to Shodan? Here are other popular security servers you can use with Claude, Cursor, and VS Code.

Casdoor

13.6k

An open-source Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Google Workspace, Azure AD

ghidraMCP

9.0k

An Model Context Protocol server that enables LLMs to autonomously reverse engineer applications by exposing Ghidra's decompilation and analysis tools. It allows AI agents to list code structures, rename methods, and analyze binaries directly through

HexStrike AI

8.9k

HexStrike AI MCP Agents is an advanced MCP server that lets AI agents (Claude, GPT, Copilot, etc.) autonomously run 150+ cybersecurity tools for automated pentesting, vulnerability discovery, bug bounty automation, and security research. Seamlessly b

IDA Pro MCP

8.7k

Enables AI-assisted reverse engineering in IDA Pro by providing tools to analyze binaries, decompile functions, manage comments, search patterns, and interact with the IDA database through natural language.

Anthropic Cybersecurity Skills

6.6k

754 structured cybersecurity skills for AI agents · Mapped to 5 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND & NIST AI RMF · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platform

Hooker

5.1k

🔥🔥 hooker is a Frida-based reverse engineering toolkit for Android. It offers a user-friendly CLI, universal scripts, auto hook generation, memory roaming to detect activities/services, one-click SOCKS5 proxy setup, Frida JustTrustMe, and BoringSSL u

Browse More Security MCP Servers

Explore all security servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "shodan-mcp-server": { "command": "npx", "args": ["-y", "shodan-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Shodan?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides