Skip to main content
Glama
io.github.daedalus/mcp-shodan

io.github.daedalus/mcp-shodan

by daedalus

mcp-shodan

MCP server exposing Shodan API functionality via the Model Context Protocol.

PyPI Python Coverage Ruff

Install

pip install mcp-shodan

Related MCP server: Shodan MCP Server

Usage

export SHODAN_API_KEY=your_api_key
mcp-shodan

Or add to your MCP configuration:

{
  "mcpServers": {
    "shodan": {
      "command": "mcp-shodan",
      "env": {
        "SHODAN_API_KEY": "your_api_key"
      }
    }
  }
}

Available Tools

Host Information

  • shodan_host - Get all available information on an IP address

  • shodan_search - Search the Shodan database

  • shodan_search_cursor - Search and return an iterator

  • shodan_count - Get total number of search results

  • shodan_search_tokens - Get information about a search query

Alerts

  • shodan_alerts - List all active alerts

  • shodan_create_alert - Create a new alert

  • shodan_delete_alert - Delete an alert

Scanning

  • shodan_scan - Scan a network

  • shodan_scan_internet - Scan the internet on a port

  • shodan_scan_status - Get scan status

Saved Queries

  • shodan_queries - List shared search queries

  • shodan_queries_search - Search saved queries

  • shodan_queries_tags - Get popular query tags

Exploits

  • shodan_exploits_search - Search the Shodan Exploits archive

  • shodan_exploits_count - Get total exploit count

Utilities

  • shodan_info - Get API key information

  • shodan_ports - Get list of ports Shodan crawls

  • shodan_protocols - Get supported protocols

  • shodan_services - Get list of services

Example

# Get information about a host
shodan_host("1.1.1.1")

# Search for specific services
shodan_search("apache", limit=10)

# Count results for a query
shodan_count("nginx")

# Check your API plan
shodan_info()

mcp-name: io.github.daedalus/mcp-shodan

Available Tools

20 tools
shodan_alertsB

List all of the active alerts that the user created.

Inputs: aid, include_expired. Returns: object

shodan_countB

Returns the total number of search results for the query.

Inputs: query (required), facets. Returns: object

shodan_create_alertC

Create a new alert.

Inputs: name (required), ip (required), expires. Returns: object

shodan_delete_alertB

Delete the alert with the given ID.

Inputs: aid (required). Returns: object

shodan_exploits_countA

Search the Shodan Exploits archive and return total count.

Inputs: query (required), facets. Returns: object

shodan_hostB

Get all available information on an IP.

Inputs: ip (required), history, minify. Returns: object

shodan_infoA

Returns information about the current API key.

Returns: A dictionary with API key information.

Example: >>> shodan_info() {"plan": "developer", "credits": 100}

Inputs: no named parameters. Returns: object

shodan_portsA

Get a list of ports that Shodan crawls.

Returns: An array containing the ports that Shodan crawls for.

Example: >>> shodan_ports() [22, 80, 443, ...]

Inputs: no named parameters. Returns: result

shodan_protocolsA

Get a list of protocols that the Shodan on-demand scanning API supports.

Returns: A dictionary containing protocol name and description.

Example: >>> shodan_protocols() {"http": "HTTP", "ssh": "SSH"}

Inputs: no named parameters. Returns: object

shodan_queriesC

List the search queries that have been shared by other users.

Inputs: page, sort, order. Returns: object

shodan_queries_tagsC

Get popular query tags.

Inputs: size. Returns: object

shodan_scanC

Scan a network using Shodan.

Inputs: ips (required), force. Returns: object

shodan_scan_internetC

Scan the internet using Shodan.

Inputs: port (required), protocol (required). Returns: object

shodan_scan_statusA

Get the status information about a previously submitted scan.

Inputs: scan_id (required). Returns: object

shodan_search_cursorC

Search the SHODAN database and return an iterator.

Inputs: query (required), minify, retries. Returns: result

shodan_search_tokensC

Returns information about the search query itself.

Inputs: query (required). Returns: object

shodan_servicesB

Get a list of services that Shodan crawls.

Returns: A dictionary containing ports and service names.

Example: >>> shodan_services() {"80": "http", "443": "https"}

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 20 tools

    Disambiguation4/5

    Tools are generally distinct, but shodan_queries and shodan_queries_search overlap in purpose slightly. Most tools target unique actions and resources.

    Naming Consistency4/5

    All tools use 'shodan_' prefix with snake_case. While some are nouns and some verbs, patterns are consistent within groups (e.g., alerts: list, create, delete). Minor mixing of styles.

    Tool Count5/5

    20 tools is well-scoped for the Shodan API, covering search, host, scans, alerts, exploits, and metadata without being overweight.

    Completeness4/5

    Covers major Shodan features, but lacks tools for account management or DNS lookups. Core workflows (search, host, scan, alerts) are complete.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server for querying the Shodan API and Shodan CVEDB. This server provides tools for IP lookups, device searches, DNS lookups, vulnerability queries, CPE lookups, and more.
      7
      192
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A WebSocket server that provides MCP interface for searching and retrieving information about internet-connected devices, IP addresses, DNS data, and CVE vulnerabilities through the Shodan API.
      3
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      This is a Model Context Protocol (MCP) server that provides access to the Shodan API. It allows you to programmatically query Shodan for information about devices, vulnerabilities, and more.
      2
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Integrates Shodan search capabilities into MCP-compatible applications for discovering internet-connected devices. Enables domain searches, IP lookups, and advanced queries to identify exposed services, infrastructure mapping, and security analysis.
      3
      -