Skip to main content
Glama
w0h1v

mcp-shodan

by w0h1v

Shodan MCP サーバー

鍛冶屋のバッジ

Shodan APIShodan CVEDBへのクエリを実行するためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーは、IP偵察、DNS操作、脆弱性追跡、デバイス検出など、Shodanのネットワークインテリジェンスおよびセキュリティサービスへの包括的なアクセスを提供します。すべてのツールは、構造化されフォーマットされた出力を提供し、分析と統合を容易にします。

クイックスタート(推奨)

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Shodan Server を自動的にインストールするには:

npx -y @smithery/cli install @burtthecoder/mcp-shodan --client claude

手動でインストールする

  1. npm 経由でサーバーをグローバルにインストールします。

npm install -g @burtthecoder/mcp-shodan
  1. Claude Desktop 構成ファイルに以下を追加します:

{
  "mcpServers": {
    "shodan": {
      "command": "mcp-shodan",
      "env": {
        "SHODAN_API_KEY": "your-shodan-api-key"
      }
    }
  }
}

構成ファイルの場所:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  1. Claudeデスクトップを再起動します

Related MCP server: Shodan-MCP-Server

代替セットアップ(ソースから)

ソースから実行したい場合、またはコードを変更する必要がある場合:

  1. クローンとビルド:

git clone https://github.com/BurtTheCoder/mcp-shodan.git
cd mcp-shodan
npm install
npm run build
  1. Claude Desktop 構成に追加:

{
  "mcpServers": {
    "shodan": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-shodan/build/index.js"],
      "env": {
        "SHODAN_API_KEY": "your-shodan-api-key"
      }
    }
  }
}

特徴

  • ネットワーク偵察: 開いているポート、サービス、脆弱性など、IP アドレスに関する詳細情報を照会します。

  • DNS操作: ドメインとIPアドレスのDNSの順方向および逆方向の参照

  • 脆弱性インテリジェンス: 詳細な脆弱性情報、CPE検索、製品固有のCVE追跡のためのShodanのCVEDBへのアクセス

  • デバイス検出: 高度なフィルタリングを使用して、Shodan のインターネット接続デバイスのデータベースを検索します。

ツール

1. IP検索ツール

  • 名前: ip_lookup

  • 説明: IP アドレスに関する包括的な情報を取得します。これには、地理位置情報、開いているポート、実行中のサービス、SSL 証明書、ホスト名、およびクラウド プロバイダーの詳細 (利用可能な場合) が含まれます。

  • パラメータ:

    • ip (必須): 検索するIPアドレス

  • 戻り値:

    • IP 情報 (アドレス、組織、ISP、ASN)

    • 場所(国、都市、座標)

    • サービス(ポート、プロトコル、バナー)

    • クラウドプロバイダーの詳細(利用可能な場合)

    • 関連するホスト名とドメイン

    • タグ

2. Shodan検索ツール

  • 名前: shodan_search

  • 説明: Shodanのインターネット接続デバイスのデータベースを検索します

  • パラメータ:

    • query (必須): Shodan検索クエリ

    • max_results (オプション、デフォルト:10):返される結果の数

  • 戻り値:

    • 合計結果を含む検索概要

    • 国別分布統計

    • 詳細なデバイス情報には以下が含まれます:

      • 基本情報(IP、組織、ISP)

      • 位置データ

      • サービス詳細

      • Webサーバー情報

      • 関連するホスト名とドメイン

3. CVE検索ツール

  • 名前: cve_lookup

  • 説明: ShodanのCVEDBから詳細な脆弱性情報を照会します

  • パラメータ:

    • cve (必須): CVE-YYYY-NNNNN 形式の CVE 識別子 (例: CVE-2021-44228)

  • 戻り値:

    • 基本情報(ID、公開日、概要)

    • 重症度スコア:

      • CVSS v2およびv3の重大度レベル

      • EPSSの確率と順位

    • 影響評価:

      • KEVステータス

      • 提案された緩和策

      • ランサムウェアの関連性

    • 影響を受ける製品(CPE)

    • 参考文献

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

  • 名前: dns_lookup

  • 説明: Shodan の DNS サービスを使用してドメイン名を IP アドレスに解決します

  • パラメータ:

    • hostnames (必須): 解決するホスト名の配列

  • 戻り値:

    • ホスト名をIPにマッピングするDNS解決

    • 合計検索数とクエリされたホスト名の概要

5. 逆DNSルックアップツール

  • 名前: reverse_dns_lookup

  • 説明: 逆DNSルックアップを実行して、IPアドレスに関連付けられたホスト名を見つけます

  • パラメータ:

    • ips (必須): 検索するIPアドレスの配列

  • 戻り値:

    • IPをホスト名にマッピングする逆DNS解決

    • 合計検索と結果の概要

6. CPE検索ツール

  • 名前: cpe_lookup

  • 説明: 製品名で共通プラットフォーム列挙 (CPE) エントリを検索します

  • パラメータ:

    • product (必須): 検索する製品の名前

    • count (オプション、デフォルト:false):trueの場合、一致するCPEの数のみを返します。

    • skip (オプション、デフォルト:0):スキップするCPEの数(ページ区切り用)

    • limit (オプション、デフォルト:1000):返されるCPEの最大数

  • 戻り値:

    • countがtrueの場合: 一致するCPEの合計数

    • count が false の場合: ページ区切りの詳細を含む CPE のリスト

7. 製品ツール別のCVE

  • 名前: cves_by_product

  • 説明: 特定の製品またはCPEに影響を与える脆弱性を検索します

  • パラメータ:

    • cpe23 (オプション): CPE 2.3 識別子 (形式: cpe:2.3:part:vendor:product:version)

    • product (オプション): CVEを検索する製品の名前

    • count (オプション、デフォルト:false):trueの場合、一致するCVEの数のみを返します。

    • is_kev (オプション、デフォルト: false): true の場合、KEV フラグが設定された CVE のみを返します。

    • sort_by_epss (オプション、デフォルト: false): true の場合、CVE を EPSS スコアで並べ替えます。

    • skip (オプション、デフォルト: 0): スキップする CVE の数 (ページ区切り用)

    • limit (オプション、デフォルト: 1000): 返される CVE の最大数

    • start_date (オプション): CVE のフィルタリングの開始日 (形式: YYYY-MM-DDTHH:MM:SS)

    • end_date (オプション): CVE のフィルタリングの終了日 (形式: YYYY-MM-DDTHH:MM:SS)

  • 注記:

    • cpe23 または製品のいずれかを提供する必要がありますが、両方を提供することはできません。

    • 日付フィルタリングはCVEの公開時刻を使用します

  • 戻り値:

    • クエリ情報

    • ページ区切りの詳細を含む結果の概要

    • 詳細な脆弱性情報には以下が含まれます:

      • 基本情報

      • 重症度スコア

      • 影響評価

      • 参考文献

要件

トラブルシューティング

APIキーの問題

API キー関連のエラー (例: 「ステータス コード 401 でリクエストが失敗しました」) が表示される場合:

  1. API キーを確認してください:

    • アカウント設定から有効なShodan APIキーを取得する必要があります

    • キーに操作に必要なクレジット/権限があることを確認する

    • 設定内のキーの前後に余分なスペースや引用符がないか確認してください

    • SHODAN_API_KEY環境変数にキーが正しく設定されていることを確認します。

  2. 一般的なエラーコード:

    • 401 不正: APIキーが無効か認証がありません

    • 402 お支払いが必要です: クエリクレジットが不足しています

    • 429 リクエストが多すぎます: レート制限を超えました

  3. 設定手順: a. ShodanアカウントからAPIキーを取得します b. それを設定ファイルに追加します:

    {
      "mcpServers": {
        "shodan": {
          "command": "mcp-shodan",
          "env": {
            "SHODAN_API_KEY": "your-actual-api-key-here"
          }
        }
      }
    }

    c. 設定ファイルを保存する d. Claude Desktopを再起動する

  4. キーのテスト:

    • まずは簡単なクエリを試してください(例:"google.com" の dns_lookup)

    • Shodanアカウントダッシュボードでクレジットステータスを確認してください

    • curl を使用してキーが直接機能することを確認します。

      curl "https://api.shodan.io/dns/resolve?hostnames=google.com&key=your-api-key"

モジュールの読み込みの問題

モジュールの読み込みエラーが表示される場合:

  1. グローバルインストールの場合: クイックスタートに示されているシンプルな構成を使用します

  2. ソースインストールの場合: Node.js v18以降を使用していることを確認してください

発達

ホットリロードを使用して開発モードで実行するには:

npm run dev

エラー処理

サーバーには、次の包括的なエラー処理が含まれています。

  • 無効なAPIキー

  • レート制限

  • ネットワークエラー

  • 無効な入力パラメータ

  • 無効なCVE形式

  • 無効なCPEルックアップパラメータ

  • 無効な日付形式

  • 相互排他パラメータ検証

バージョン履歴

  • v1.0.12: 逆DNSルックアップを追加し、出力フォーマットを改善しました

  • v1.0.7: 製品別CVE検索機能を追加し、脆弱性ツールの名前をcve_lookupに変更しました。

  • v1.0.6: CVE検索とCPE検索機能を強化するためにCVEDB統合を追加しました

  • v1.0.0: コア機能を備えた初期リリース

貢献

  1. リポジトリをフォークする

  2. 機能ブランチを作成する ( git checkout -b feature/amazing-feature )

  3. 変更をコミットします( git commit -m 'Add amazing feature'

  4. ブランチにプッシュする ( git push origin feature/amazing-feature )

  5. プルリクエストを開く

ライセンス

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

Available Tools

7 tools
cpe_lookupA
Read-only

Search for Common Platform Enumeration (CPE) entries by product name in Shodan's CVEDB. Supports pagination and can return either full CPE details or just the total count. Useful for identifying specific versions and configurations of software and hardware.

ParametersJSON Schema
NameRequiredDescriptionDefault
skipNoNumber of CPEs to skip (for pagination).
countNoIf true, returns only the count of matching CPEs.
limitNoMaximum number of CPEs to return (max 1000).
productYesThe name of the product to search for CPEs.

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds pagination support and the option to return only a count. These are behavioral traits beyond what annotations provide, with no contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the core purpose, followed by key capabilities. Every sentence earns its place with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only lookup with fully documented parameters and no output schema, the description covers the main behavioral options (pagination, count mode) and a clear use case. It doesn't detail return format, but given the simplicity and annotation coverage, this is adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters are documented in the schema. The description mentions pagination and count, but these are already covered in the schema descriptions, so it adds minimal semantic value beyond what is structured.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific verb 'Search' and resource 'CPE entries' within 'Shodan's CVEDB'. It distinguishes from the sibling cves_by_product by focusing on CPEs rather than CVEs, and the name reinforces this.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a clear use case: 'identifying specific versions and configurations of software and hardware.' However, it does not explicitly mention alternatives or exclusion criteria. The sibling cves_by_product likely covers CVEs, so the contrast is implied but not stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

cve_lookupA
Read-only

Query detailed vulnerability information from Shodan's CVEDB. Returns comprehensive CVE details including CVSS scores (v2/v3), EPSS probability and ranking, KEV status, proposed mitigations, ransomware associations, and affected products (CPEs).

ParametersJSON Schema
NameRequiredDescriptionDefault
cveYesThe CVE identifier to query (format: CVE-YYYY-NNNNN).

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and openWorldHint, covering safety and openness. The description adds substantial behavioral context by listing the specific fields returned (CVSS v2/v3, EPSS, KEV status, mitigations, ransomware associations, CPEs), which goes beyond the annotations and helps the agent set expectations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences with zero fluff. The first sentence front-loads the core purpose, and the second enumerates the key return fields. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter lookup tool with no output schema, the description adequately covers the return content by listing the major fields. It does not mention error handling or pagination, but given the simplicity and the openWorldHint annotation, the essential information is present. Minor gaps prevent a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema fully describes the parameter (pattern and description), so schema coverage is 100%. The description does not add new parameter semantics beyond what the schema already provides; it merely reinforces that a CVE ID is needed. With full schema coverage, baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Query') and resource ('detailed vulnerability information from Shodan's CVEDB'), and enumerates the concrete data returned (CVSS, EPSS, KEV, mitigations, ransomware, CPEs). This clearly distinguishes it from siblings like cves_by_product, which likely searches by product.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when you have a CVE identifier (the required parameter), but it does not explicitly mention when not to use it or recommend alternatives like cves_by_product for product-based queries. Guidance is implicit rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

cves_by_productA
Read-only

Search for vulnerabilities affecting specific products or CPEs. Supports filtering by KEV status, sorting by EPSS score, date ranges, and pagination. Can search by product name or CPE 2.3 identifier. Returns detailed vulnerability information including severity scores and impact assessments.

ParametersJSON Schema
NameRequiredDescriptionDefault
skipNoNumber of CVEs to skip (for pagination).
countNoIf true, returns only the count of matching CVEs.
cpe23NoThe CPE version 2.3 identifier (format: cpe:2.3:part:vendor:product:version).
limitNoMaximum number of CVEs to return (max 1000).
is_kevNoIf true, returns only CVEs with the KEV flag set.
productNoThe name of the product to search for CVEs.
end_dateNoEnd date for filtering CVEs (format: YYYY-MM-DDTHH:MM:SS).
start_dateNoStart date for filtering CVEs (format: YYYY-MM-DDTHH:MM:SS).
sort_by_epssNoIf true, sorts CVEs by EPSS score in descending order.

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=true, so the tool is known to be a read-only, broad-scope operation. The description adds value by disclosing the return content ('detailed vulnerability information including severity scores and impact assessments') and mentions pagination support, which goes beyond the annotations. It does not contradict any annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, with the primary purpose front-loaded and the supporting capabilities summarized in the second sentence. It is not overly verbose, though the second sentence packs multiple features into one clause. No extraneous information is present, and the structure is logical.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (9 parameters, all with schema descriptions) and the absence of an output schema, the description provides a sufficient overview, including the two search modes (product name vs. CPE identifier) and the return of severity/impact info. It could be more explicit about the relationship between product and cpe23 (e.g., whether they can be combined), but overall it covers the key usage context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each parameter is already documented in the schema (e.g., skip, count, cpe23, limit, is_kev, product, dates, sort_by_epss). The description adds only a high-level summary (supports filtering by KEV, sorting by EPSS, date ranges, pagination) without adding new semantic detail. This aligns with the baseline of 3 for fully covered schemas.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Search') and a precise resource ('vulnerabilities affecting specific products or CPEs'), and lists the supported filtering/sorting capabilities. This clearly distinguishes it from sibling tools like cve_lookup (individual CVE lookup) and cpe_lookup (CPE details), making its purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly conveys that this tool is for product/CPE-based vulnerability searches and mentions the search options (by product name or CPE 2.3). However, it does not explicitly state when to prefer this over sibling tools, such as using cve_lookup for a specific CVE or cpe_lookup for CPE metadata. The guidance is implied rather than explicit, so it earns a 3.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

dns_lookupA
Read-only

Resolve domain names to IP addresses using Shodan's DNS service. Supports batch resolution of multiple hostnames in a single query. Returns IP addresses mapped to their corresponding hostnames.

ParametersJSON Schema
NameRequiredDescriptionDefault
hostnamesYesList of hostnames to resolve.

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, so the description isn't required to state safety. It adds the batch resolution feature and the mapping behavior, which is useful context. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, no waste, key purpose first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read-only tool with no output schema, the description covers purpose, behavior, and return format adequately. No gaps for an agent to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers the parameter fully (100%). Description adds the 'batch' nuance but essentially repeats the schema's 'list' semantics. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Resolve), resource (domain names to IP addresses), and names the service (Shodan's DNS). Implicitly differentiates from reverse_dns_lookup by direction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implied usage: if you need to resolve domain names to IPs, this is the tool. But no explicit when-not-to-use or alternatives mentioned. Batch capability is mentioned but not as a selection criterion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

ip_lookupA
Read-only

Retrieve comprehensive information about an IP address, including geolocation, open ports, running services, SSL certificates, hostnames, and cloud provider details if available. Returns service banners and HTTP server information when present.

ParametersJSON Schema
NameRequiredDescriptionDefault
ipYesThe IP address to query.

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description accurately reflects a read-only lookup operation and adds helpful qualifiers like 'if available' and 'when present.' It does not contradict the readOnlyHint annotation, though it omits potential error or rate-limit behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, free of fluff, and front-loads the core purpose before listing specific return categories.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema provided, the description usefully enumerates expected return data. It lacks error/edge-case details, but the listed outputs give sufficient context for typical use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents the ip parameter as 'The IP address to query,' and the description repeats this without adding format constraints, IPv4/IPv6 guidance, or examples. Schema coverage is effectively complete, so baseline score applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the tool retrieves comprehensive information about an IP address and enumerates the types of data returned (geolocation, open ports, services, SSL certificates, hostnames, cloud details). This distinguishes it from sibling tools like dns_lookup or cve_lookup.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes the tool's scope clear but does not explicitly state when to use it over alternatives such as shodan_search or dns_lookup. Usage guidance is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

reverse_dns_lookupA
Read-only

Perform reverse DNS lookups to find hostnames associated with IP addresses. Supports batch lookups of multiple IP addresses in a single query. Returns all known hostnames for each IP address, with clear indication when no hostnames are found.

ParametersJSON Schema
NameRequiredDescriptionDefault
ipsYesList of IP addresses to perform reverse DNS lookup on.

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds behavioral context beyond annotations: it supports batch queries, returns all known hostnames per IP, and provides clear indication when none are found. This is useful operational detail that the schema and annotations do not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler. The first sentence states the core purpose, the second adds batch and return details. Information is front-loaded and every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a simple one-parameter tool with a clear return description. The description explains what the tool does, how it handles multiple IPs, and what it returns (hostnames and a not-found indication). Annotations cover read-only and open-world aspects. Nothing essential for correct invocation is missing, even without an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the ips parameter clearly documented as a list of IP addresses. The description adds no new semantic meaning—'batch lookups' is implied by the array type. Per the baseline rule for high coverage, a 3 is appropriate; the description does not compensate or add value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action (perform reverse DNS lookups), a clear resource (IP addresses), and the expected output (hostnames). It also distinguishes itself from forward DNS lookups by the term 'reverse,' which is reinforced by the sibling dns_lookup. This is unambiguous and not a tautology.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for IP-to-hostname resolution but does not explicitly contrast with alternatives like dns_lookup or ip_lookup. It mentions batch support, which is a feature, but offers no when-to-use/when-not-to-use guidance. Usage is inferred from the tool name and context rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 7 tool updatesv1.0.0
    • Changedcpe_lookup2 fields changed
      • addedInput schema / $schema
        Added value: +"http://json-schema.org/draft-07/schema#"
      • addedInput schema / additionalProperties
        Added value: +false
    • Changedcve_lookup2 fields changed
      • addedInput schema / $schema
        Added value: +"http://json-schema.org/draft-07/schema#"
      • addedInput schema / additionalProperties
        Added value: +false
    • Changedcves_by_product2 fields changed
      • addedInput schema / $schema
        Added value: +"http://json-schema.org/draft-07/schema#"
      • addedInput schema / additionalProperties
        Added value: +false
    • Changeddns_lookup2 fields changed
      • addedInput schema / $schema
        Added value: +"http://json-schema.org/draft-07/schema#"
      • addedInput schema / additionalProperties
        Added value: +false
    • Changedip_lookup2 fields changed
      • addedInput schema / $schema
        Added value: +"http://json-schema.org/draft-07/schema#"
      • addedInput schema / additionalProperties
        Added value: +false
    • Changedreverse_dns_lookup2 fields changed
      • addedInput schema / $schema
        Added value: +"http://json-schema.org/draft-07/schema#"
      • addedInput schema / additionalProperties
        Added value: +false
    • Changedshodan_search2 fields changed
      • addedInput schema / $schema
        Added value: +"http://json-schema.org/draft-07/schema#"
      • addedInput schema / additionalProperties
        Added value: +false
  2. 7 tool updates
    • First observedcpe_lookup
    • First observedcve_lookup
    • First observedcves_by_product
    • First observeddns_lookup
    • First observedip_lookup
    • First observedreverse_dns_lookup
    • First observedshodan_search

TDQS

A3.9/5.0

Scored across 7 tools

Disambiguation4/5

Most tools are clearly distinct: ip_lookup, shodan_search, dns_lookup, and reverse_dns_lookup each target a different resource. However, cve_lookup and cves_by_product both return vulnerability information, which could cause some confusion despite their different query approaches.

Naming Consistency4/5

Tool names mostly follow a consistent noun-based pattern (ip_lookup, dns_lookup, cve_lookup, cpe_lookup) with descriptive compound names for searches. The mix of 'lookup' and 'search' verbs is a minor inconsistency, but the pattern is still predictable and readable.

Tool Count5/5

Seven tools is well-scoped for a Shodan-focused server, covering IP intelligence, device search, DNS, and vulnerability data without unnecessary bloat. Each tool serves a distinct purpose within the security research domain.

Completeness4/5

The tool set covers core Shodan functionality: IP lookup, device search, DNS resolution, and CVE/CPE vulnerability research. Minor gaps exist such as account/API info or network/port-specific queries, but the primary workflows for security research are well covered.

Maintenance

ActivityMaintained
ResponsivenessSlow

Related MCP Connectors

Related MCP Servers

  • 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
    This 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
    -
  • 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
    -