Shodan-MCP-Server
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キー
インストール
リポジトリをクローンします。
git clone https://github.com/X3r0K/Shodan-MCP-Server-Inspector.git cd shodan-mcp-server-Inspector依存関係をインストールします:
npm installルート ディレクトリに
.env.localファイルを作成し、Shodan API キーを追加します。SHODAN_API_KEY=your_api_key_here
使用法
サーバーの起動
サーバーを構築します。
npm run buildサーバーを起動します。
node build/index.js
利用可能なツール
検索ツール
クエリ: Shodanの検索構文を使用してデバイスとサービスを検索します
例:
log4j country:US city:Atlanta戻り値: 詳細情報を含む一致するデバイスのリスト
DNSルックアップツール
クエリ: 解決するドメイン名
例:
example.com返されるもの: DNSレコードと関連情報
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 インスペクターを使用すると、サーバーと直接対話することができます。
MCP インスペクターをインストールします。
npm install -g @modelcontextprotocol/inspectorサーバーでインスペクターを実行します。
npx @modelcontextprotocol/inspector build/index.jsインスペクターは、次の操作を行うための対話型インターフェースを提供します。
利用可能なすべてのツールをテストする
ツールのドキュメントを見る
サーバーの応答をデバッグする
サーバーの状態を監視する
環境変数
SHODAN_API_KEY: Shodan APIキー(必須)PORT: サーバーポート(オプション、デフォルトは3000)LOG_LEVEL: ログレベル(オプション、デフォルトは「info」)
エラー処理
サーバーは、以下に対する包括的なエラー処理を実装します。
無効なAPIキー
レート制限
ネットワークの問題
無効なクエリ
サーバーエラー
セキュリティに関する考慮事項
APIキーの保護:
APIキーをバージョン管理にコミットしない
機密データには環境変数を使用する
APIキーを定期的にローテーションする
レート制限:
ShodanのAPIレート制限を尊重する
クライアント側のレート制限を実装する
データプライバシー:
回答から機密情報をフィルタリングする
必要に応じてアクセス制御を実装する
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。
謝辞
APIを提供してくれたShodan
MCP仕様のモデルコンテキストプロトコルチーム
This server cannot be installed
Maintenance
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
- AlicenseAqualityFmaintenanceMCP 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.7295156MIT
- FlicenseNot gradedqualityDmaintenanceA 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
- FlicenseNot gradedqualityDmaintenanceA 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
- FlicenseNot gradedqualityDmaintenanceIntegrates 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
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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