MCP server for AlienVault OTX threat intelligence: indicators, pulses, search, and users.
Runs on your machine from its package; the steps are below.

Not assessed yet.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx otx-mcp
MCP client config
{
"mcpServers": {
"otx": {
"command": "uvx",
"args": [
"otx-mcp"
]
}
}
}
Quickstart · Tools · HTTP · Security · Troubleshooting · Docs
mcp-otx is an MCP server that gives AI agents access to AlienVault OTX (Open Threat Exchange, now LevelBlue). Hand your agent an IP, domain, file hash, URL or CVE, or a malware family or adversary to research, and get back what the OTX community knows: pulses, reputation, passive DNS, whois, sandbox analysis and related indicators.
Note
Independent project, not affiliated with AlienVault or LevelBlue. You need your own OTX API key; a free account is enough.
--read-write.flowchart LR
A["AI agent<br/>(Claude, Codex, Gemini, VS Code)"] -->|"MCP over stdio or HTTP"| S["mcp-otx"]
S -->|"HTTPS + X-OTX-API-KEY"| O["OTX DirectConnect API"]
O -->|"JSON"| S
S -->|"summarized, capped JSON"| A
Requirements: Python 3.10 or newer, uv (or pip), and an OTX API key.
# Claude Code
claude mcp add --transport stdio --env OTX_API_KEY=your-key otx -- uvx otx-mcp
# Codex CLI
codex mcp add otx --env OTX_API_KEY=your-key -- uvx otx-mcp
# Gemini CLI
gemini mcp add -e OTX_API_KEY=your-key otx uvx otx-mcp
With pip: pip install otx-mcp, then use the command otx-mcp. For Claude Desktop, VS Code, Cline, Docker and running from source, see Connect a client.
Then ask your agent: "What does OTX know about 8.8.8.8, and are there recent pulses about Emotet?" More prompts are in example workflows.
20 read tools, plus 9 write tools with --read-write. Full parameters and real sample output are in the tool reference.
| Area | Read tools | Write tools (--read-write) |
|---|---|---|
| Search | search_pulses, search_users | |
| Pulses | get_pulse_details, get_pulse_indicators, get_related_pulses, search_related_pulses, list_pulse_activity, list_subscribed_pulses, get_subscribed_pulse_ids, get_pulse_events | create_pulse, subscribe_pulse, unsubscribe_pulse |
| Indicators | get_indicator_details, validate_indicator, list_indicator_types, export_indicators | |
| Users | get_user, get_current_user, list_user_pulses, list_my_pulses | subscribe_user, unsubscribe_user, follow_user, unfollow_user |
| Submissions | list_submitted_urls, list_submitted_files | submit_url, submit_urls |
Resource templates: otx://pulse/{pulse_id} and otx://indicator/{type}/{value}.
stdio is the default. For remote or web clients, run streamable HTTP:
OTX_API_KEY=your-key uvx otx-mcp --transport streamable-http
# → http://127.0.0.1:8000/mcp
To listen on a network-facing address, set a bearer token. Clients must then send Authorization: Bearer <token>:
OTX_API_KEY=your-key OTX_MCP_BEARER_TOKEN=a-long-random-secret \
uvx otx-mcp --transport streamable-http --host 0.0.0.0
docker build -t mcp-otx .
docker run --rm -p 127.0.0.1:8000:8000 -e OTX_API_KEY=your-key \
-e OTX_MCP_BEARER_TOKEN=a-long-random-secret \
-e OTX_MCP_TRANSPORT=streamable-http -e OTX_MCP_HOST=0.0.0.0 mcp-otx
OTX is slow on some endpoints (passive DNS and subscriptions can take 20 to 60 s), so give remote clients a long read timeout (120 s works).
| Variable | CLI flag | Default | Description |
|---|---|---|---|
OTX_API_KEY | (required) | Your OTX API key. Also read from .env | |
OTX_API_BASE | https://otx.alienvault.com/api/v1 | API root (for testing) | |
OTX_MCP_TRANSPORT | --transport | stdio | stdio, streamable-http or sse |
OTX_MCP_HOST | --host | 127.0.0.1 | HTTP bind address |
OTX_MCP_PORT | --port | 8000 | HTTP port |
OTX_MCP_READ_WRITE | --read-write | off | 1 exposes the account-changing tools |
OTX_MCP_BEARER_TOKEN | off | Require Authorization: Bearer <token> on HTTP | |
--allow-remote | off | Allow a network-facing bind without a token (not recommended) | |
--json-response | off | Plain JSON instead of SSE streams (streamable HTTP) | |
--stateless-http | off | A new session per request (streamable HTTP) |
Warning
The server acts as your OTX account. Keep it read-only unless you need the write tools, and never expose HTTP without a bearer token and TLS.
--read-write. Editing or deleting pulses isn't exposed as a tool at all.Details are in the security model. Report vulnerabilities privately; see SECURITY.md.
get_current_user shows which account a key belongs to.--read-write.More in the troubleshooting guide.
git clone https://github.com/w0h1v/mcp-otx && cd mcp-otx
uv venv && uv pip install -e ".[dev]"
.venv/bin/python -m pytest # mocked OTX API, no key or network
See CONTRIBUTING.md and the changelog.
MIT. See LICENSE.