Retrieve comprehensive information about an IP address, including geolocation, open ports, running services, SSL certificates, hostnames, and cloud provider details if available
Search Shodan's database of internet-connected devices
Query detailed vulnerability information from Shodan's CVEDB
Resolve domain names to IP addresses using Shodan's DNS service
Perform reverse DNS lookups to find hostnames associated with IP addresses
Search for Common Platform Enumeration (CPE) entries by product name
Search for vulnerabilities affecting specific products or CPEs
Shodan MCP provides comprehensive access to Shodan's network intelligence and security services. It enables users to perform IP reconnaissance, DNS operations, vulnerability tracking, and device discovery directly from their AI assistant. The server delivers structured, formatted output for easy analysis and integration with other security workflows.
Shodan MCP Server provides a powerful interface to Shodan's extensive database of internet-connected devices and security intelligence. This integration allows you to perform network reconnaissance, vulnerability research, and device discovery directly through your AI assistant.
Before using the Shodan MCP Server, you'll need:
The easiest way to install the Shodan MCP Server is through Smithery:
npx -y @smithery/cli install @burtthecoder/mcp-shodan --client claude
This command automatically configures the server for Claude Desktop.
npm install -g @burtthecoder/mcp-shodan
{
"mcpServers": {
"shodan": {
"command": "mcp-shodan",
"env": {
"SHODAN_API_KEY": "your-shodan-api-key"
}
}
}
}
Configuration file locations:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
If you need to modify the code or prefer to run from source:
git clone https://github.com/BurtTheCoder/mcp-shodan.git
cd mcp-shodan
npm install
npm run build
{
"mcpServers": {
"shodan": {
"command": "node",
"args": ["/absolute/path/to/mcp-shodan/build/index.js"],
"env": {
"SHODAN_API_KEY": "your-shodan-api-key"
}
}
}
}
Once installed, you can use the Shodan MCP Server by asking your AI assistant to perform various security and network intelligence tasks. For example:
The server will process your request and return structured information that your AI assistant can analyze and explain.
Your Shodan API key is sensitive information. When configuring the MCP server:
If you encounter issues:
--debug
flag