shodan-mcp-server
これは、Shodan APIへのアクセスを提供するモデルコンテキストプロトコル(MCP)サーバーです。デバイスや脆弱性などの情報をプログラムでShodanに照会できます。
目次
導入
shodan-mcp-serverモデルコンテキストプロトコル(MCP)を使用して、Shodan のインテリジェンスをアプリケーションに簡単に統合する方法を提供します。Shodan に対して様々な種類の情報をクエリできるツールがいくつか用意されています。
特徴
ホスト情報: IP アドレスに関する詳細情報を取得します。検索: Shodan のデータベースを検索構文を使用してクエリします。DNS ルックアップ: ドメイン名を解決します。CVE 情報: 特定の CVE 脆弱性に関する詳細を取得します。
インストール
リポジトリをクローンします。
git clone https://github.com/X3r0K/Shodan-MCP-Server.git cd shodan-mcp-server依存関係をインストールします。
npm installプロジェクトをビルドします。
npm run build
構成
Shodanから Shodan API キーを取得します。
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-servershodan-mcp-server ディレクトリへの実際のパスに置き換えます。
Node.jsでの使用
@modelcontextprotocol/sdkパッケージを使用して、Node.js で MCP サーバーを使用できます。
MCP SDK をインストールします。
npm install @modelcontextprotocol/sdkツールを呼び出すには、
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 アドレスに関する情報を含む JSON オブジェクト。
dns_lookup
指定されたドメインの DNS ルックアップを実行します。
入力:
出力:
解決された IP アドレスを含む JSON オブジェクト。
get_vulnerabilities
特定の IP アドレスに関連付けられた脆弱性を追跡します。
入力:
出力:
IP アドレスに関連付けられた脆弱性のリストを含む JSON オブジェクト。
cve_info
特定の CVE ID に関する情報を取得します。
入力:
出力:
CVE ID に関する情報を含む JSON オブジェクト。
検索
クエリに一致するデバイスを Shodan で検索します。
入力:
出力:
クエリに一致するデバイスのリストを含む JSON オブジェクト。
プロジェクト構造
ライセンス
マサチューセッツ工科大学
This server cannot be installed
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityMCP 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 -711283MIT License
- AsecurityAlicenseAquality一个用于联网搜索的MCP服务器,基于博查搜索API A MCP server for internet search, based on the Bocha Search APILast updated -1MIT License
- -securityFlicense-qualityThis 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.Last updated -1
- -securityFlicense-qualityA minimal WebSocket-based MCP server implementation that enables modern tool integrations with VSCode, Claude, and other applications.Last updated -1