MCP server exposing all Shodan API functionality
MCP server exposing Shodan API functionality via the Model Context Protocol.
pip install mcp-shodan
export SHODAN_API_KEY=your_api_key
mcp-shodan
Or add to your MCP configuration:
{
"mcpServers": {
"shodan": {
"command": "mcp-shodan",
"env": {
"SHODAN_API_KEY": "your_api_key"
}
}
}
}
shodan_host - Get all available information on an IP addressshodan_search - Search the Shodan databaseshodan_search_cursor - Search and return an iteratorshodan_count - Get total number of search resultsshodan_search_tokens - Get information about a search queryshodan_alerts - List all active alertsshodan_create_alert - Create a new alertshodan_delete_alert - Delete an alertshodan_scan - Scan a networkshodan_scan_internet - Scan the internet on a portshodan_scan_status - Get scan statusshodan_queries - List shared search queriesshodan_queries_search - Search saved queriesshodan_queries_tags - Get popular query tagsshodan_exploits_search - Search the Shodan Exploits archiveshodan_exploits_count - Get total exploit countshodan_info - Get API key informationshodan_ports - Get list of ports Shodan crawlsshodan_protocols - Get supported protocolsshodan_services - Get list of services# Get information about a host
shodan_host("1.1.1.1")
# Search for specific services
shodan_search("apache", limit=10)
# Count results for a query
shodan_count("nginx")
# Check your API plan
shodan_info()
mcp-name: io.github.daedalus/mcp-shodan
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx mcp-shodanMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-daedalus-mcp-shodan": {
"command": "uvx",
"args": [
"mcp-shodan"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencemcp-shodanpypiio.github.daedalus/mcp-shodan works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.