Shodan MCP Server
shodan-mcp-server
これは、Shodan APIへのアクセスを提供するモデルコンテキストプロトコル(MCP)サーバーです。デバイスや脆弱性などの情報をプログラムでShodanに照会できます。
目次
Related MCP server: Shodan-MCP-Server
導入
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": "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ライセンス
マサチューセッツ工科大学
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 gradedqualityDmaintenanceThis 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.2
- 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
- FlicenseNot gradedqualityBmaintenancePassive reconnaissance MCP server powered by Shodan, enabling host lookups, search, and DNS queries gated against HackerOne scope snapshots.
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 Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
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'
If you have feedback or need assistance with the MCP directory API, please join our Discord server