mcp-shodan
The mcp-shodan server enables querying and analysis of Shodan's network intelligence and security services:
Perform IP reconnaissance to retrieve geolocation, open ports, services, SSL certificates, hostnames, and cloud provider details
Search Shodan's database for internet-connected devices with advanced filters and result limiting
Query detailed vulnerability information from Shodan's CVEDB including CVSS scores and EPSS rankings
Resolve domain names to IP addresses (supports batch queries)
Perform reverse DNS lookups to find hostnames associated with IP addresses (supports batch queries)
Search for Common Platform Enumeration (CPE) entries by product name with pagination options
Find vulnerabilities affecting specific products or CPEs with filtering by KEV status, sorting by EPSS, date ranges, and pagination
Requires Node.js v18 or later as a runtime environment for the MCP server.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-shodanlook up CVE-2021-44228 details"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Shodan MCP Server
A Model Context Protocol (MCP) server for querying the Shodan API and Shodan CVEDB. This server provides comprehensive access to Shodan's network intelligence and security services, including IP reconnaissance, DNS operations, vulnerability tracking, and device discovery. All tools provide structured, formatted output for easy analysis and integration.
Quick Start (Recommended)
Installing via Claude Code
claude mcp add --transport stdio --env SHODAN_API_KEY=your-shodan-api-key shodan -- npx -y @burtthecoder/mcp-shodanInstalling via Codex CLI
codex mcp add shodan --env SHODAN_API_KEY=your-shodan-api-key -- npx -y @burtthecoder/mcp-shodanInstalling via Gemini CLI
gemini mcp add -e SHODAN_API_KEY=your-shodan-api-key shodan npx -y @burtthecoder/mcp-shodanInstalling via Smithery
To install Shodan Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @burtthecoder/mcp-shodan --client claudeInstalling Manually
Install the server globally via npm:
npm install -g @burtthecoder/mcp-shodanAdd to your Claude Desktop configuration file:
{
"mcpServers": {
"shodan": {
"command": "mcp-shodan",
"env": {
"SHODAN_API_KEY": "your-shodan-api-key"
}
}
}
}Configuration file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop
Related MCP server: Shodan-MCP-Server
Alternative Setup (From Source)
If you prefer to run from source or need to modify the code:
Clone and build:
git clone https://github.com/BurtTheCoder/mcp-shodan.git
cd mcp-shodan
npm install
npm run buildAdd to your Claude Desktop configuration:
{
"mcpServers": {
"shodan": {
"command": "node",
"args": ["/absolute/path/to/mcp-shodan/build/index.js"],
"env": {
"SHODAN_API_KEY": "your-shodan-api-key"
}
}
}
}Features
Network Reconnaissance: Query detailed information about IP addresses, including open ports, services, and vulnerabilities
DNS Operations: Forward and reverse DNS lookups for domains and IP addresses
Vulnerability Intelligence: Access to Shodan's CVEDB for detailed vulnerability information, CPE lookups, and product-specific CVE tracking
Device Discovery: Search Shodan's database of internet-connected devices with advanced filtering
Tools
1. IP Lookup Tool
Name:
ip_lookupDescription: Retrieve comprehensive information about an IP address, including geolocation, open ports, running services, SSL certificates, hostnames, and cloud provider details if available
Parameters:
ip(required): IP address to lookup
Returns:
IP Information (address, organization, ISP, ASN)
Location (country, city, coordinates)
Services (ports, protocols, banners)
Cloud Provider details (if available)
Associated hostnames and domains
Tags
2. Shodan Search Tool
Name:
shodan_searchDescription: Search Shodan's database of internet-connected devices
Parameters:
query(required): Shodan search querymax_results(optional, default: 10): Number of results to return
Returns:
Search summary with total results
Country-based distribution statistics
Detailed device information including:
Basic information (IP, organization, ISP)
Location data
Service details
Web server information
Associated hostnames and domains
3. CVE Lookup Tool
Name:
cve_lookupDescription: Query detailed vulnerability information from Shodan's CVEDB
Parameters:
cve(required): CVE identifier in format CVE-YYYY-NNNNN (e.g., CVE-2021-44228)
Returns:
Basic Information (ID, published date, summary)
Severity Scores:
CVSS v2 and v3 with severity levels
EPSS probability and ranking
Impact Assessment:
KEV status
Proposed mitigations
Ransomware associations
Affected products (CPEs)
References
4. DNS Lookup Tool
Name:
dns_lookupDescription: Resolve domain names to IP addresses using Shodan's DNS service
Parameters:
hostnames(required): Array of hostnames to resolve
Returns:
DNS resolutions mapping hostnames to IPs
Summary of total lookups and queried hostnames
5. Reverse DNS Lookup Tool
Name:
reverse_dns_lookupDescription: Perform reverse DNS lookups to find hostnames associated with IP addresses
Parameters:
ips(required): Array of IP addresses to lookup
Returns:
Reverse DNS resolutions mapping IPs to hostnames
Summary of total lookups and results
6. CPE Lookup Tool
Name:
cpe_lookupDescription: Search for Common Platform Enumeration (CPE) entries by product name
Parameters:
product(required): Name of the product to search forcount(optional, default: false): If true, returns only the count of matching CPEsskip(optional, default: 0): Number of CPEs to skip (for pagination)limit(optional, default: 1000): Maximum number of CPEs to return
Returns:
When count is true: Total number of matching CPEs
When count is false: List of CPEs with pagination details
7. CVEs by Product Tool
Name:
cves_by_productDescription: Search for vulnerabilities affecting specific products or CPEs
Parameters:
cpe23(optional): CPE 2.3 identifier (format: cpe:2.3:part:vendor:product:version)product(optional): Name of the product to search for CVEscount(optional, default: false): If true, returns only the count of matching CVEsis_kev(optional, default: false): If true, returns only CVEs with KEV flag setsort_by_epss(optional, default: false): If true, sorts CVEs by EPSS scoreskip(optional, default: 0): Number of CVEs to skip (for pagination)limit(optional, default: 1000): Maximum number of CVEs to returnstart_date(optional): Start date for filtering CVEs (format: YYYY-MM-DDTHH:MM:SS)end_date(optional): End date for filtering CVEs (format: YYYY-MM-DDTHH:MM:SS)
Notes:
Must provide either cpe23 or product, but not both
Date filtering uses published time of CVEs
Returns:
Query information
Results summary with pagination details
Detailed vulnerability information including:
Basic information
Severity scores
Impact assessments
References
Requirements
Node.js (v20 or later)
A valid Shodan API Key
Troubleshooting
API Key Issues
If you see API key related errors (e.g., "Request failed with status code 401"):
Verify your API key:
Must be a valid Shodan API key from your account settings
Ensure the key has sufficient credits/permissions for the operation
Check for extra spaces or quotes around the key in the configuration
Verify the key is correctly set in the SHODAN_API_KEY environment variable
Common Error Codes:
401 Unauthorized: Invalid API key or missing authentication
402 Payment Required: Out of query credits
429 Too Many Requests: Rate limit exceeded
Configuration Steps: a. Get your API key from Shodan Account b. Add it to your configuration file:
{ "mcpServers": { "shodan": { "command": "mcp-shodan", "env": { "SHODAN_API_KEY": "your-actual-api-key-here" } } } }c. Save the config file d. Restart Claude Desktop
Testing Your Key:
Try a simple query first (e.g., dns_lookup for "google.com")
Check your Shodan account dashboard for credit status
Verify the key works directly with curl:
curl "https://api.shodan.io/dns/resolve?hostnames=google.com&key=your-api-key"
Module Loading Issues
If you see module loading errors:
For global installation: Use the simple configuration shown in Quick Start
For source installation: Ensure you're using Node.js v18 or later
Development
Build the project:
npm install
npm run buildTest interactively with FastMCP's built-in dev tool:
npx fastmcp dev build/index.jsError Handling
The server includes comprehensive error handling for:
Invalid API keys
Rate limiting
Network errors
Invalid input parameters
Invalid CVE formats
Invalid CPE lookup parameters
Invalid date formats
Mutually exclusive parameter validation
Version History
v1.0.22: Published to the official MCP Registry — added
server.jsonmanifest, CLI install support for Claude Code, Codex, and Gemini CLIv1.1.0: Migrated from raw
@modelcontextprotocol/sdkto FastMCP — modular tool files, automatic schema validation, simplified error handlingv1.0.12: Added reverse DNS lookup and improved output formatting
v1.0.7: Added CVEs by Product search functionality and renamed vulnerabilities tool to cve_lookup
v1.0.6: Added CVEDB integration for enhanced CVE lookups and CPE search functionality
v1.0.0: Initial release with core functionality
Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
7 toolscpe_lookupA
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.
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes | The name of the product to search for CPEs. | |
| count | No | If true, returns only the count of matching CPEs. | |
| skip | No | Number of CPEs to skip (for pagination). | |
| limit | No | Maximum number of CPEs to return (max 1000). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions pagination support and the ability to return full details or just counts, which adds useful context beyond basic functionality. However, it does not cover aspects like rate limits, authentication needs, error handling, or response format details, leaving gaps in behavioral understanding.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is efficiently structured in three sentences: the first states the core functionality, the second adds key features (pagination and output options), and the third provides usage context. Each sentence earns its place without redundancy, making it front-loaded and appropriately sized for the tool's complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (4 parameters, no output schema, no annotations), the description covers core functionality and some behavioral aspects but lacks details on response format, error cases, or integration with sibling tools. It is adequate as a minimum viable description but has clear gaps in providing a complete operational context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all parameters. The description adds value by explaining the purpose ('Search for CPE entries by product name') and the utility ('Useful for identifying specific versions and configurations'), which provides semantic context beyond the schema's technical details. Since no parameters are left undocumented, this exceeds the baseline of 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Search for Common Platform Enumeration entries by product name'), identifies the resource ('in Shodan's CVEDB'), and distinguishes it from siblings by focusing on CPE lookup rather than CVE lookup or other Shodan functions. It explicitly mentions what it returns ('full CPE details or just the total count'), making the purpose unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context ('Useful for identifying specific versions and configurations of software and hardware') but does not explicitly state when to use this tool versus alternatives like 'cve_lookup' or 'cves_by_product'. It mentions pagination and count options, which provide some guidance on functionality, but lacks direct comparisons or exclusions for sibling tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
cve_lookupA
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).
| Name | Required | Description | Default |
|---|---|---|---|
| cve | Yes | The CVE identifier to query (format: CVE-YYYY-NNNNN). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the comprehensive data returned (CVSS scores, EPSS, KEV status, etc.), which adds useful context about output behavior, but does not mention rate limits, authentication needs, or error handling, leaving gaps for a tool with external API dependencies.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is efficiently structured in two sentences: the first states the purpose and source, and the second enumerates the returned details. Every sentence adds essential information with no wasted words, making it highly concise and front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (querying external vulnerability data) and lack of annotations and output schema, the description does well by detailing the comprehensive return data. However, it could improve by mentioning response format or error scenarios, slightly limiting completeness for an API-dependent tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with the single parameter 'cve' well-documented in the schema. The description does not add any parameter-specific details beyond what the schema provides, such as examples or edge cases, so it meets the baseline for high schema coverage without extra value.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Query detailed vulnerability information') and resource ('from Shodan's CVEDB'), distinguishing it from sibling tools like cpe_lookup or cves_by_product by focusing on individual CVE details rather than product-based queries or broader searches.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context by specifying it queries 'detailed vulnerability information' for a CVE identifier, but does not explicitly state when to use this tool versus alternatives like cves_by_product or shodan_search. It provides clear intent but lacks explicit comparison or exclusion guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
cves_by_productA
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.
| Name | Required | Description | Default |
|---|---|---|---|
| cpe23 | No | The CPE version 2.3 identifier (format: cpe:2.3:part:vendor:product:version). | |
| product | No | The name of the product to search for CVEs. | |
| count | No | If true, returns only the count of matching CVEs. | |
| is_kev | No | If true, returns only CVEs with the KEV flag set. | |
| sort_by_epss | No | If true, sorts CVEs by EPSS score in descending order. | |
| skip | No | Number of CVEs to skip (for pagination). | |
| limit | No | Maximum number of CVEs to return (max 1000). | |
| start_date | No | Start date for filtering CVEs (format: YYYY-MM-DDTHH:MM:SS). | |
| end_date | No | End date for filtering CVEs (format: YYYY-MM-DDTHH:MM:SS). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses key behavioral traits: filtering capabilities (KEV, EPSS, date ranges), pagination support, and return content ('detailed vulnerability information including severity scores and impact assessments'). However, it omits details like rate limits, authentication needs, error handling, or whether it's read-only/destructive, leaving gaps for a mutation-sensitive agent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized with three sentences: purpose, features, and return value. It is front-loaded with the core purpose, and each sentence adds useful information without redundancy. Minor improvement could be made by integrating features more seamlessly, but it's efficient overall.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 9 parameters, no annotations, and no output schema, the description provides a good overview of functionality and return content. However, it lacks details on behavioral aspects like rate limits or error cases, and does not fully compensate for the absence of output schema, leaving the agent uncertain about the exact response structure.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all 9 parameters. The description adds minimal value beyond the schema by mentioning filtering and sorting options (e.g., 'KEV status', 'EPSS score') without providing additional syntax or format details. This meets the baseline of 3 when schema coverage is high.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Search for vulnerabilities affecting specific products or CPEs') and resource ('CVEs'), distinguishing it from siblings like cve_lookup (likely general CVE lookup) and cpe_lookup (CPE-specific). The verb 'search' with the qualifier 'affecting specific products or CPEs' provides precise scope.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context through 'Supports filtering by KEV status, sorting by EPSS score, date ranges, and pagination,' suggesting when to use it for filtered searches. However, it lacks explicit guidance on when to choose this tool over alternatives like cve_lookup or cpe_lookup, and does not mention exclusions or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
dns_lookupA
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.
| Name | Required | Description | Default |
|---|---|---|---|
| hostnames | Yes | List of hostnames to resolve. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions batch resolution and the return format (IP addresses mapped to hostnames), but doesn't cover important aspects like rate limits, authentication requirements, error handling, or whether this is a read-only operation. The description provides basic behavior but lacks critical operational context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences that are front-loaded with core functionality, followed by batch capability, and ending with return format. Every sentence adds value with zero wasted words. The structure efficiently communicates the tool's purpose and capabilities.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-parameter tool with no annotations and no output schema, the description provides adequate basic information about what the tool does and what it returns. However, it lacks important contextual details about authentication, rate limits, error cases, and specific usage scenarios that would help an agent use it effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents the single 'hostnames' parameter. The description adds marginal value by mentioning 'batch resolution of multiple hostnames' which reinforces the array nature of the parameter, but doesn't provide additional syntax, format, or constraint details beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Resolve domain names to IP addresses'), identifies the resource ('using Shodan's DNS service'), and distinguishes from siblings by focusing on forward DNS resolution (unlike reverse_dns_lookup or IP-based tools like ip_lookup). It provides a complete picture of what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for DNS resolution tasks and mentions batch capability, but doesn't explicitly state when to use this tool versus alternatives like reverse_dns_lookup or ip_lookup. No guidance on prerequisites, limitations, or specific scenarios where this tool is preferred over others is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
ip_lookupA
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.
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | The IP address to query. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden and does well by disclosing behavioral traits: it specifies what information is returned (geolocation, open ports, services, SSL certificates, etc.), mentions conditional returns ('when present'), and indicates cloud provider detection. However, it doesn't cover rate limits, authentication needs, or error conditions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the core purpose and efficiently lists return details in a single, well-structured sentence. Every phrase adds value without redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description provides good context about return types and conditions. It could be more complete by mentioning response format or error handling, but it adequately covers the tool's scope for a lookup operation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents the single 'ip' parameter. The description doesn't add parameter-specific details beyond implying the IP address is used for comprehensive lookup, maintaining the baseline score of 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Retrieve comprehensive information') and resource ('about an IP address'), distinguishing it from sibling tools like dns_lookup or reverse_dns_lookup by focusing on IP-specific intelligence rather than DNS resolution.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context by listing the types of information returned (geolocation, services, etc.), but doesn't explicitly state when to use this tool versus alternatives like shodan_search or when not to use it (e.g., for domain-based queries).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
reverse_dns_lookupA
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.
| Name | Required | Description | Default |
|---|---|---|---|
| ips | Yes | List of IP addresses to perform reverse DNS lookup on. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the batch capability, return format (all known hostnames), and handling of missing results. However, it doesn't mention rate limits, authentication needs, or error conditions that would be important for a network tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is perfectly concise with three sentences that each add value: states the core purpose, describes batch capability, and explains return behavior. No wasted words and front-loaded with the main functionality.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a network lookup tool with no annotations and no output schema, the description provides adequate basic information but lacks details about response format structure, error handling, and operational constraints that would be important for complete understanding.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents the 'ips' parameter. The description adds context about batch lookups and what the parameter represents, but doesn't provide additional syntax or format details beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with specific verbs ('perform reverse DNS lookups', 'find hostnames') and resources ('IP addresses'). It distinguishes from sibling tools like 'dns_lookup' and 'ip_lookup' by specifying the reverse direction and batch capability.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context for when to use this tool (to find hostnames from IP addresses with batch support). It doesn't explicitly mention when not to use it or name alternatives, but the context is sufficient for basic differentiation from siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
shodan_searchC
Search Shodan's database of internet-connected devices. Returns detailed information about matching devices including services, vulnerabilities, and geographic distribution. Supports advanced search filters and returns country-based statistics.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query for Shodan. | |
| max_results | No | Maximum results to return. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It mentions what information is returned (services, vulnerabilities, geographic distribution, country-based statistics) but doesn't address rate limits, authentication requirements, pagination behavior, or whether this is a read-only operation. The description provides some output context but misses key operational details.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately concise with three sentences that each add value. It's front-loaded with the core purpose, followed by return details, and ending with capabilities. No wasted words, though it could be slightly more structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a search tool with 2 parameters and no output schema, the description provides adequate context about what the tool does and what information it returns. However, it lacks details about authentication, rate limits, and differentiation from sibling tools, which would be valuable given the server has multiple related lookup tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description doesn't add any meaningful parameter semantics beyond what's in the schema - it doesn't explain query syntax, advanced filter formats, or provide examples of valid queries.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool searches Shodan's database for internet-connected devices and returns detailed information about them. It specifies the resource (Shodan's database) and verb (search), but doesn't explicitly differentiate from sibling tools like 'ip_lookup' or 'dns_lookup' which might have overlapping functionality.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description mentions 'advanced search filters' but provides no guidance on when to use this tool versus alternatives like 'ip_lookup' or 'cve_lookup'. There's no mention of prerequisites, limitations, or specific scenarios where this tool is preferred over siblings.
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. Dates show when Glama detected each change.
7 tool updates
v1.0.0- Changed
cpe_lookup2 fields changed- added
Input schema / $schemaAdded value: +"http://json-schema.org/draft-07/schema#" - added
Input schema / additionalPropertiesAdded value: +false
- Changed
cve_lookup2 fields changed- added
Input schema / $schemaAdded value: +"http://json-schema.org/draft-07/schema#" - added
Input schema / additionalPropertiesAdded value: +false
- Changed
cves_by_product2 fields changed- added
Input schema / $schemaAdded value: +"http://json-schema.org/draft-07/schema#" - added
Input schema / additionalPropertiesAdded value: +false
- Changed
dns_lookup2 fields changed- added
Input schema / $schemaAdded value: +"http://json-schema.org/draft-07/schema#" - added
Input schema / additionalPropertiesAdded value: +false
- Changed
ip_lookup2 fields changed- added
Input schema / $schemaAdded value: +"http://json-schema.org/draft-07/schema#" - added
Input schema / additionalPropertiesAdded value: +false
- Changed
reverse_dns_lookup2 fields changed- added
Input schema / $schemaAdded value: +"http://json-schema.org/draft-07/schema#" - added
Input schema / additionalPropertiesAdded value: +false
- Changed
shodan_search2 fields changed- added
Input schema / $schemaAdded value: +"http://json-schema.org/draft-07/schema#" - added
Input schema / additionalPropertiesAdded value: +false
7 tool updates
- First observed
cpe_lookup - First observed
cve_lookup - First observed
cves_by_product - First observed
dns_lookup - First observed
ip_lookup - First observed
reverse_dns_lookup - First observed
shodan_search
TDQS
Each tool has a clearly distinct purpose with no overlap: cpe_lookup focuses on CPE entries, cve_lookup on CVE details, cves_by_product on vulnerabilities for specific products, dns_lookup on domain-to-IP resolution, ip_lookup on IP address information, reverse_dns_lookup on IP-to-hostname resolution, and shodan_search on device database searches. The descriptions reinforce these unique scopes, making tool selection unambiguous.
All tool names follow a consistent verb_noun pattern (e.g., cpe_lookup, cve_lookup, dns_lookup), with 'lookup' or 'search' as the verb and a specific noun (cpe, cve, dns, ip, etc.). This predictable naming scheme enhances readability and agent usability, with no deviations in style or convention across the set.
With 7 tools, the count is well-scoped for a Shodan security and reconnaissance server. Each tool earns its place by covering distinct aspects like vulnerability lookups, DNS operations, and IP analysis, avoiding bloat while providing comprehensive functionality for the domain.
The tool set offers complete coverage for Shodan's domain, including vulnerability databases (CPE, CVE, product-specific), DNS services (forward and reverse lookups), IP intelligence, and device searches. There are no obvious gaps; agents can perform core workflows from reconnaissance to detailed analysis without dead ends.
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 Connectors
Shodan InternetDB MCP — wraps Shodan InternetDB (internetdb.shodan.io)
Shodan MCP — wraps the full Shodan REST API (api.shodan.io)
Defensive Shodan search and host intelligence MCP using customer-provided SHODAN_API_KEY for
1MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
Related MCP Servers
- 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 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.-
Appeared in Searches
- Information on LinkedIn Business or LinkedIn Advertising
- Information about the VIX (Volatility Index)
- Accessing Clearbit APIs for Company Information and Website Visitor Data
- A guide to finding data in public databases
- How to retrieve information about a device using Microsoft Defender, Intune, and Jamf
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/w0h1v/mcp-shodan'
If you have feedback or need assistance with the MCP directory API, please join our Discord server