Skip to main content
Glama
X3r0K

Shodan-MCP-Server

by X3r0K

Shodan MCP サーバー

標準化されたインターフェースを通じて Shodan のインターネット スキャン機能へのアクセスを提供するモデル コンテキスト プロトコル (MCP) サーバー。

概要

このサーバーは、Shodanの強力なインターネットスキャンおよび偵察機能を公開するために、モデルコンテキストプロトコルを実装しています。インターネットに接続されたデバイス、サービス、および脆弱性に関するShodanのデータベースにクエリを実行するための標準化されたインターフェースを提供します。

Related MCP server: ADEO CTI MCP Server

特徴

  • 検索機能: 高度な検索フィルターを使用してShodanのデータベースを照会します

  • DNSルックアップ:ドメイン名を解決し、詳細なDNS情報を取得します

  • CVE情報: 共通脆弱性識別子(CVE)に関する詳細情報を取得します

  • 脆弱性情報を取得: IPアドレスに関連する脆弱性の詳細情報を取得します

  • 標準化されたインターフェース: 一貫した通信のためにMCPプロトコルを使用

  • 環境変数のサポート: 環境変数による安全な API キー管理

前提条件

  • Node.js (v14以上)

  • npm (v6以上)

  • Shodan APIキー

インストール

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

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

    npm install
  3. ルート ディレクトリに.env.localファイルを作成し、Shodan API キーを追加します。

    SHODAN_API_KEY=your_api_key_here

使用法

サーバーの起動

  1. サーバーを構築します。

    npm run build
  2. サーバーを起動します。

    node build/index.js

利用可能なツール

  1. 検索ツール

    • クエリ: Shodanの検索構文を使用してデバイスとサービスを検索します

    • 例: log4j country:US city:Atlanta

    • 戻り値: 詳細情報を含む一致するデバイスのリスト

  2. DNSルックアップツール

    • クエリ: 解決するドメイン名

    • 例: example.com

    • 返されるもの: DNSレコードと関連情報

  3. CVE情報ツール

    • クエリ: CVE識別子

    • 例: CVE-2021-44228

    • 戻り値: 詳細な脆弱性情報

クエリの例

// Search for Log4j vulnerable systems in the US
{
  "query": "log4j country:US"
}

// DNS lookup for a domain
{
  "query": "example.com"
}

// Get CVE information
{
  "query": "CVE-2021-44228"
}

MCPインスペクターの使用

画像

MCP インスペクターを使用すると、サーバーと直接対話することができます。

  1. MCP インスペクターをインストールします。

npm install -g @modelcontextprotocol/inspector
  1. サーバーでインスペクターを実行します。

npx @modelcontextprotocol/inspector build/index.js

インスペクターは、次の操作を行うための対話型インターフェースを提供します。

  • 利用可能なすべてのツールをテストする

  • ツールのドキュメントを見る

  • サーバーの応答をデバッグする

  • サーバーの状態を監視する

環境変数

  • SHODAN_API_KEY : Shodan APIキー(必須)

  • PORT : サーバーポート(オプション、デフォルトは3000)

  • LOG_LEVEL : ログレベル(オプション、デフォルトは「info」)

エラー処理

サーバーは、以下に対する包括的なエラー処理を実装します。

  • 無効なAPIキー

  • レート制限

  • ネットワークの問題

  • 無効なクエリ

  • サーバーエラー

セキュリティに関する考慮事項

  1. APIキーの保護:

    • APIキーをバージョン管理にコミットしない

    • 機密データには環境変数を使用する

    • APIキーを定期的にローテーションする

  2. レート制限:

    • ShodanのAPIレート制限を尊重する

    • クライアント側のレート制限を実装する

  3. データプライバシー:

    • 回答から機密情報をフィルタリングする

    • 必要に応じてアクセス制御を実装する

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

謝辞

  • APIを提供してくれたShodan

  • MCP仕様のモデルコンテキストプロトコルチーム

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    F
    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
    295
    156
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    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.
    23
  • 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
    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

View all related MCP servers

Related MCP Connectors

  • Shodan InternetDB MCP — wraps Shodan InternetDB (internetdb.shodan.io)

  • Shodan MCP — wraps the full Shodan REST API (api.shodan.io)

  • MCP server for Google search results via SERP API

View all MCP Connectors

Latest Blog Posts

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-Inspector'

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