Skip to main content
Glama

Shodan MCP Server

shodan-mcp-server

これは、Shodan APIへのアクセスを提供するモデルコンテキストプロトコル(MCP)サーバーです。デバイスや脆弱性などの情報をプログラムでShodanに照会できます。

目次

導入

shodan-mcp-serverモデルコンテキストプロトコル(MCP)を使用して、Shodan のインテリジェンスをアプリケーションに簡単に統合する方法を提供します。Shodan に対して様々な種類の情報をクエリできるツールがいくつか用意されています。

特徴

ホスト情報: IP アドレスに関する詳細情報を取得します。検索: Shodan のデータベースを検索構文を使用してクエリします。DNS ルックアップ: ドメイン名を解決します。CVE 情報: 特定の CVE 脆弱性に関する詳細を取得します。

インストール

  1. リポジトリをクローンします。
    git clone https://github.com/X3r0K/Shodan-MCP-Server.git cd shodan-mcp-server
  2. 依存関係をインストールします。
    npm install
  3. プロジェクトをビルドします。
    npm run build

構成

  1. Shodanから Shodan API キーを取得します。
  2. MCP 設定ファイル (例: ~/.config/mcp/settings.json ) で MCP サーバーを構成します。
    { "mcpServers": { "shodan": { "command": "node", "args": ["/path/to/shodan-mcp-server/build/index.js"], "env": { "SHODAN_API_KEY": "<your_shodan_api_key>" }, "disabled": false, "autoApprove": [] } } }
    <your_shodan_api_key>を実際の Shodan API キーに置き換え、 /path/to/shodan-mcp-server shodan-mcp-server ディレクトリへの実際のパスに置き換えます。

Node.jsでの使用

@modelcontextprotocol/sdkパッケージを使用して、Node.js で MCP サーバーを使用できます。

  1. MCP SDK をインストールします。
    npm install @modelcontextprotocol/sdk
  2. ツールを呼び出すには、 use_mcp_tool関数を使用します。
    import { use_mcp_tool } from '@modelcontextprotocol/sdk'; async function getIpInfo(ip) { const result = await use_mcp_tool('shodan', 'get_ip_info', { ip }); console.log(result); } getIpInfo('8.8.8.8');

APIドキュメント

取得IP情報

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

入力:

{ "ip": "string" // The IP address to query }

出力:

IP アドレスに関する情報を含む JSON オブジェクト。

dns_lookup

指定されたドメインの DNS ルックアップを実行します。

入力:

{ "hostname": "string" // The hostname to resolve }

出力:

解決された IP アドレスを含む JSON オブジェクト。

get_vulnerabilities

特定の IP アドレスに関連付けられた脆弱性を追跡します。

入力:

{ "ip": "string" // The IP address to query for vulnerabilities }

出力:

IP アドレスに関連付けられた脆弱性のリストを含む JSON オブジェクト。

cve_info

特定の CVE ID に関する情報を取得します。

入力:

{ "cve": "string" // The CVE ID to query }

出力:

CVE ID に関する情報を含む JSON オブジェクト。

検索

クエリに一致するデバイスを Shodan で検索します。

入力:

{ "query": "string" // The search query }

出力:

クエリに一致するデバイスのリストを含む JSON オブジェクト。

プロジェクト構造

shodan-mcp-server/ ├── .gitignore ├── package.json ├── README.md ├── tsconfig.json └── src/ ├── index.ts └── index.mts

ライセンス

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

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Shodan API を介してインターネットに接続されたデバイス、IP アドレス、DNS データ、および CVE 脆弱性に関する情報を検索および取得するための MCP インターフェイスを提供する WebSocket サーバー。

  1. 目次
    1. 導入
      1. 特徴
        1. インストール
          1. 構成
            1. Node.jsでの使用
              1. APIドキュメント
                1. 取得IP情報
                2. dns\_lookup
                3. get\_vulnerabilities
                4. cve\_info
                5. 検索
              2. プロジェクト構造
                1. ライセンス

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    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.
                    Last updated -
                    7
                    663
                    18
                    JavaScript
                    MIT License
                    • Apple
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A Model Context Protocol server that integrates with Cursor IDE, providing real-time communication, modern web dashboards, and extensible tools via SSE and WebSocket connections.
                    Last updated -
                    645
                    1
                    Python
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A Model Context Protocol server that provides access to Shodan and VirusTotal APIs for cybersecurity analysis, enabling analysts to perform network intelligence operations including host lookups, vulnerability analysis, and threat intelligence gathering.
                    Last updated -
                    1
                    TypeScript
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A modified JetBrains MCP Server that adds WebSocket monitoring capabilities, allowing users to monitor MCP tool calls in real-time while maintaining compatibility with the original implementation.
                    Last updated -
                    JavaScript
                    Apache 2.0
                    • Apple

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/X3r0K/shodan-mcp-server'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server