Skip to main content
Glama
Shodan MCP Server

Shodan MCP Server

Shodan MCP サーバー

Shodan API 機能へのアクセスを提供し、AI アシスタントがインターネットに接続されたデバイスやサービスに関する情報を照会できるようにするモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • ホスト情報: 特定のIPアドレスに関する詳細情報を取得します

  • 検索機能: Shodanのデータベースでデバイスとサービスを検索

  • ネットワークスキャン: デバイスのネットワーク範囲(CIDR表記)をスキャンします

  • SSL証明書情報:ドメインのSSL証明書の詳細を取得します

  • IoTデバイス検索: 特定の種類のIoTデバイスを検索

Related MCP server: sec-shodan-mcp

インストール

  1. リポジトリをクローンします。

    git clone https://github.com/Cyreslab-AI/shodan-mcp-server.git
    cd shodan-mcp-server
  2. 依存関係をインストールします:

    npm install
  3. サーバーを構築します。

    npm run build
  4. Shodan API キーを設定します。

    export SHODAN_API_KEY="your-api-key-here"
  5. サーバーを起動します。

    npm start

MCP統合

このサーバーは、Claude やその他の MCP 対応 AI アシスタントと統合できます。Claude Desktop または Claude.app に追加するには、以下の手順に従ってください。

  1. MCP 設定にサーバーを追加します。

    {
      "mcpServers": {
        "shodan": {
          "command": "node",
          "args": ["/path/to/shodan-mcp-server/build/index.js"],
          "env": {
            "SHODAN_API_KEY": "your-api-key-here"
          }
        }
      }
    }
  2. 新しい MCP サーバーをロードするには、Claude を再起動します。

利用可能なツール

ホスト情報を取得する

特定の IP アドレスに関する詳細情報を取得します。

パラメータ:

  • ip (必須): 検索するIPアドレス

  • max_items (オプション): 配列に含めるアイテムの最大数 (デフォルト: 5)

  • fields (オプション): 結果に含めるフィールドのリスト (例: ['ip_str', 'ports', 'location.country_name'])

検索_shodan

Shodan のデータベースでデバイスとサービスを検索します。

パラメータ:

  • query (必須): Shodan 検索クエリ(例: 'apache country:US')

  • page (オプション): 結果のページ番号 (デフォルト: 1)

  • facets (オプション):検索結果に含めるファセットのリスト(例:['country', 'org'])

  • max_items (オプション): 配列に含めるアイテムの最大数 (デフォルト: 5)

  • fields (オプション): 結果に含めるフィールドのリスト (例: ['ip_str', 'ports', 'location.country_name'])

  • summarize (オプション):完全なデータではなく結果の要約を返すかどうか(デフォルト:false)

スキャンネットワーク範囲

デバイスのネットワーク範囲 (CIDR 表記) をスキャンします。

パラメータ:

  • cidr (必須): CIDR表記のネットワーク範囲 (例: 192.168.1.0/24)

  • max_items (オプション):結果に含めるアイテムの最大数(デフォルト:5)

  • fields (オプション): 結果に含めるフィールドのリスト (例: ['ip_str', 'ports', 'location.country_name'])

取得SSL情報

ドメインの SSL 証明書情報を取得します。

パラメータ:

  • domain (必須): SSL証明書を検索するドメイン名(例:example.com)

IoTデバイス検索

特定の種類の IoT デバイスを検索します。

パラメータ:

  • device_type (必須): 検索する IoT デバイスの種類 (例: 「ウェブカメラ」、「ルーター」、「スマートテレビ」)

  • country (オプション): 検索を限定するための国コード(例:'US'、'DE')

  • max_items (オプション):結果に含めるアイテムの最大数(デフォルト:5)

利用可能なリソース

  • shodan://host/{ip} : 特定のIPアドレスに関する情報

APIの制限

一部のShodan APIエンドポイントは有料メンバーシップが必要です。以下の機能は有料のShodan APIキーでのみご利用いただけます。

  • 検索機能

  • ネットワークスキャン

  • SSL証明書の検索

  • IoTデバイス検索

ライセンス

マサチューセッツ工科大学

開発者

Cyreslab.ai

Available Tools

23 tools
dns_lookupB

Resolve hostnames to IP addresses using DNS lookup

Inputs: hostnames (required).

get_account_profileB

Get account profile information including membership status and credits

Inputs: no named parameters.

get_api_infoB

Get information about your API plan including credits and limits

Inputs: no named parameters.

get_cpesC

Get Common Platform Enumeration (CPE) information for products

Inputs: product, vendor, version, limit, +1 more.

get_cve_infoC

Get detailed information about a specific CVE

Inputs: cve_id (required).

get_cves_by_epssC

Get CVEs sorted by EPSS score (Exploit Prediction Scoring System)

Inputs: limit.

get_domain_infoC

Get comprehensive domain information including subdomains and DNS records

Inputs: domain (required), history, type, page.

get_host_countA

Get the count of hosts matching a search query without consuming query credits

Inputs: query (required), facets.

get_host_infoC

Get detailed information about a specific IP address

Inputs: ip (required), max_items, fields.

get_kev_cvesB

Get Known Exploited Vulnerabilities (KEV) from CISA

Inputs: limit.

get_my_ipA

Get your current IP address as seen from the Internet

Inputs: no named parameters.

get_newest_cvesB

Get the newest vulnerabilities from the CVE database

Inputs: limit.

get_ssl_infoC

Get SSL certificate information for a domain

Inputs: domain (required).

list_portsB

List all ports that Shodan crawls on the Internet

Inputs: no named parameters.

list_protocolsA

List all protocols that can be used when performing on-demand Internet scans

Inputs: no named parameters.

list_search_facetsA

List all available search facets that can be used with Shodan queries

Inputs: no named parameters.

list_search_filtersB

List all available search filters that can be used in Shodan queries

Inputs: no named parameters.

parse_search_tokensC

Parse a search query to understand which filters and parameters are being used

Inputs: query (required).

reverse_dns_lookupC

Get hostnames for IP addresses using reverse DNS lookup

Inputs: ips (required).

scan_network_rangeC

Scan a network range (CIDR notation) for devices

Inputs: cidr (required), max_items, fields.

search_cvesC

Search for vulnerabilities with various filters

Inputs: cpe23, product, is_kev, sort_by_epss, +4 more.

search_iot_devicesC

Search for specific types of IoT devices

Inputs: device_type (required), country, max_items.

search_shodanC

Search Shodan's database for devices and services

Inputs: query (required), page, facets, max_items, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 23 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between search tools (search_shodan, search_iot_devices, search_cves) and informational tools (get_cves_by_epss, get_newest_cves, get_kev_cves) that could cause confusion. Descriptions help clarify, but the boundaries between general and specific search/query tools are not perfectly clear.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, such as get_account_profile, list_ports, search_shodan, and parse_search_tokens. There are no deviations in naming conventions, making the set predictable and easy to understand.

    Tool Count3/5

    With 23 tools, the count is borderline high for a Shodan server, which might feel heavy for agents to navigate efficiently. While it covers many aspects of Shodan's functionality, some tools could potentially be consolidated or omitted without losing core capabilities.

    Completeness5/5

    The tool set provides comprehensive coverage for Shodan's domain, including account management, host and domain lookups, vulnerability searches, network scanning, and query parsing. There are no obvious gaps; it supports full CRUD-like operations and lifecycle management for security research tasks.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers