Shodan 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., "@Shodan MCP Serversearch for exposed SSH servers in 192.168.1.0/24"
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
An MCP (Model Context Protocol) server that exposes the Shodan API as MCP tools. Built with FastMCP and the official shodan-python library.
Setup
cp .env.example .env # add your SHODAN_API_KEY
pip install -r requirements.txt
python server.pyRelated MCP server: Shodan MCP Server
Tools
30 tools across 9 categories:
Core Search
Tool | Description |
| Search Shodan hosts (query, page, limit, offset, facets, fields) |
| Get all info on an IP address |
| Get result count for a query |
| List available search filters |
| Parse and analyze a search query |
| List available search facets |
| List ports Shodan crawls |
| List on-demand scan protocols |
| List service name to port mappings |
| Get API key info and credits |
DNS
Tool | Description |
| Get DNS records for a domain |
IP Tools
Tool | Description |
| Get your current public IP |
| Honeypot probability (0.0–1.0) |
Community Queries
Tool | Description |
| List shared community queries |
| Search community queries |
| List query tags |
Scanning
Tool | Description |
| Submit IPs/netblocks for scanning |
| Check scan status |
| List previous scans |
| Scan the internet for a port/protocol |
Alerts / Monitoring
Tool | Description |
| Create a network alert |
| List or get alert details |
| Delete an alert |
| List available alert triggers |
Exploits
Tool | Description |
| Search the exploit archive |
| Count exploit results |
Bulk Data
Tool | Description |
| List available datasets |
| List files in a dataset |
Notifiers
Tool | Description |
| List configured notifiers |
| List supported providers |
Error Handling
All tools catch shodan.APIError and return {"error": "<message>"} instead of raising.
Docker
docker compose up -d --buildProject Structure
├── server.py # Entry point — creates FastMCP app, wires up tools
├── tools/
│ └── shodan.py # All 30 tool implementations + Shodan client wrapper
├── AGENTS.md # Context for AI coding assistants
├── requirements.txt
├── .env.example
├── Dockerfile
└── docker-compose.ymlAgent Context
See AGENTS.md for conventions, architecture, and tool registration patterns used in this project.
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.
Latest Blog Posts
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/null-create/shodan-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server