Skip to main content
Glama

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 ownOTX API key; a free account is enough.

Highlights

  • Full API coverage. 29 tools across pulses, indicators, users, subscriptions and URL submissions, plus resource templates for pulses and indicators.

  • One-call indicator enrichment. Every OTX indicator type (IPv4, IPv6, domain, hostname, file hash, URL, CVE) and detail section: reputation, geo, passive DNS, malware, whois, URL lists, HTTP scans, sandbox analysis.

  • Read-only by default. The 9 tools that change your OTX account only appear with --read-write.

  • Context-sized output. Large OTX objects are summarized and capped, with the API's total counts kept, so one lookup doesn't fill the model's context.

  • Safe HTTP. stdio for desktop clients, plus streamable HTTP with bearer-token auth. The server refuses to listen on a network-facing address without a token.

  • Tested. Unit tests against a mocked OTX API run in CI on Python 3.10 to 3.13.

Related MCP server: alienvault-otx

How it works

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

Quickstart

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.

Tools

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}.

HTTP transport

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).

Configuration

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)

Security

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-only by default. Pulse creation, subscriptions, follows and URL submissions need --read-write. Editing or deleting pulses isn't exposed as a tool at all.

  • Untrusted content. Pulse and indicator descriptions are written by the OTX community. The server tells the model to treat them as data, not instructions.

  • The API key is sent only to the OTX API, in a header.

Details are in the security model. Report vulnerabilities privately; see SECURITY.md.

Troubleshooting

  • 403 "Authentication required": the API key is wrong. get_current_user shows which account a key belongs to.

  • A write tool is missing: start the server with --read-write.

  • Timeouts: passive DNS and subscription calls can take up to 60 s. Raise your client's tool timeout.

More in the troubleshooting guide.

Development

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.

License

MIT. See LICENSE.

Available Tools

20 tools
export_indicatorsA

Bulk export indicators across all subscribed pulses (feed sync).

Args: types: Indicator type names to include (e.g. ["domain", "IPv4", "FileHash-SHA256"]); omit for all types. limit: Results per page (1-500). page: 1-based page number. modified_since: ISO 8601 timestamp; only return indicators from pulses modified after this time.

Returns: Paginated indicator export from OTX.

Inputs: page, limit, types, modified_since. Returns: object

get_current_userA

Get the authenticated user's own OTX profile (whoami).

Handy to confirm which account the API key belongs to.

Inputs: no named parameters. Returns: object

get_indicator_detailsA

Get threat intelligence details for an indicator from AlienVault OTX.

This is the primary indicator lookup tool. It covers every OTX indicator type and detail section in one call.

Args: indicator_type: URL path type. One of: IPv4, IPv6, domain, hostname, file (any hash: MD5/SHA1/SHA256/PEHASH/IMPHASH), url, cve, nids, correlation-rule. indicator_value: The indicator itself (IP address, domain, file hash, URL, CVE id...). section: Detail section to retrieve. Availability depends on type: IPv4/IPv6: general, geo, reputation, url_list, passive_dns, malware, nids_list, http_scans | domain/hostname: general, geo, url_list, passive_dns, malware, whois, http_scans | file: general, analysis (sandbox report) | url: general, url_list, http_scans, screenshot | cve: general, nids_list, malware. Use 'general' first: it includes pulse associations, reputation and geo summaries.

Returns: JSON for the requested section. Lists are capped at 50 items with counts preserved. In 'general', related pulses are compact summaries (max 10; use get_pulse_details for the full pulse) and CVE configurations are summarised as affected CPEs with their version ranges, plus platform CPEs (not affected themselves).

Inputs: indicator_type (required), indicator_value (required), section. Returns: object

get_pulse_detailsA

Get full details of an OTX pulse by ID.

Includes name, author, description, TLP, tags, references, threat categories (Adversary, Malware, TTPs) and the pulse's indicators.

Args: pulse_id: 24-character hex pulse ID (from search results, activity feeds, or OTX URLs).

Returns: Pulse metadata with its indicator list (capped at 50 shown).

Inputs: pulse_id (required). Returns: object

get_pulse_eventsA

List events from your subscription stream (pulse lifecycle changes).

Useful for incremental sync: each event carries an action field (e.g. remove_pulse) naming what happened to which pulse.

Args: limit: Results per page (1-500). page: 1-based page number. modified_since: ISO 8601 timestamp cutoff.

Returns: Paginated subscription-stream events.

Inputs: page, limit, modified_since. Returns: object

get_pulse_indicatorsB

List the indicators contained in a pulse (paginated).

Args: pulse_id: 24-character hex pulse ID. limit: Results per page (1-1000). page: 1-based page number. include_inactive: Include indicators the pulse author deactivated.

Returns: Paginated indicator list for the pulse.

Inputs: pulse_id (required), page, limit, include_inactive. Returns: object

get_subscribed_pulse_idsA

Get just the IDs of your subscribed pulses (lightweight sync).

Args: limit: Results per page (1-500). page: 1-based page number.

Returns: Paginated pulse-ID list.

Inputs: page, limit. Returns: object

get_userB

Get an OTX user's profile.

Args: username: OTX username. detailed: Include the user's recent pulses in the response.

Returns: User profile (subscriber/follower counts, bio, avatar, pulses).

Inputs: username (required), detailed. Returns: object

list_indicator_typesA

List every indicator type usable in OTX pulses, with descriptions.

Use this to discover valid indicator_type values for validate_indicator and create_pulse.

Inputs: no named parameters. Returns: result

list_my_pulsesA

List pulses authored by the authenticated user (your own pulses).

Args: limit: Results per page (1-500). page: 1-based page number.

Returns: Paginated list of your pulses.

Inputs: page, limit. Returns: object

list_pulse_activityA

List the latest pulses across the whole OTX community.

Args: limit: Results per page (1-500). page: 1-based page number. modified_since: ISO 8601 timestamp cutoff.

Returns: Paginated activity-stream pulses.

Inputs: page, limit, modified_since. Returns: object

list_submitted_filesA

List files previously submitted for analysis by your account.

Args: limit: Results per page (1-500). page: 1-based page number.

Returns: Paginated submitted-file status list.

Inputs: page, limit. Returns: object

list_submitted_urlsA

List URLs previously submitted for analysis by your account.

Args: limit: Results per page (1-500). page: 1-based page number.

Returns: Paginated submitted-URL status list.

Inputs: page, limit. Returns: object

list_subscribed_pulsesA

List pulses from your OTX subscriptions.

Includes pulses you subscribed to, pulses from users and groups you follow, and pulses you created.

Args: limit: Results per page (1-500). page: 1-based page number. modified_since: ISO 8601 timestamp; only pulses created or modified after this time.

Returns: Paginated list of subscribed pulses.

Inputs: page, limit, modified_since. Returns: object

list_user_pulsesA

List pulses authored by a specific OTX user.

Args: username: OTX username. limit: Results per page (1-500). page: 1-based page number.

Returns: Paginated pulse list authored by the user.

Inputs: username (required), page, limit. Returns: object

search_pulsesA

Full-text search across all public OTX pulses.

The best starting point for threat research: search for a malware family, actor, campaign or technology and get matching pulses with their IDs, then pull details or indicators.

Args: query: Search terms. limit: Results per page (1-500). page: 1-based page number.

Returns: Paginated matching pulses.

Inputs: query (required), page, limit. Returns: object

search_usersA

Search OTX users by username.

Args: query: Username (or fragment) to search for. limit: Results per page (1-500). page: 1-based page number.

Returns: Paginated matching users.

Inputs: query (required), page, limit. Returns: object

validate_indicatorA

Validate an indicator value/type pair before using it in a pulse.

Args: indicator: The indicator value to validate. indicator_type: OTX indicator type name, e.g. IPv4, domain, FileHash-SHA256, URL, CVE, YARA, JA3, Mutex, CIDR, email. description: Optional description used during validation.

Returns: Validation result from OTX (includes access_type and expiration).

Inputs: indicator (required), indicator_type (required), description. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools target a clearly distinct OTX resource and action, such as pulses, users, indicators, submissions, subscriptions, and events. The main ambiguity is get_related_pulses versus search_related_pulses, which overlap heavily when pulse_id is supplied; list_subscribed_pulses and get_subscribed_pulse_ids are also close, though the latter is explicitly lightweight.

    Naming Consistency5/5

    All tool names use snake_case with a predictable verb_noun pattern: search_, get_, list_, validate_, and export_. There are minor semantic quirks, such as get_subscribed_pulse_ids returning a list, but the naming convention is consistently applied throughout the set.

    Tool Count4/5

    At 20 tools, the server is at the high end of a reasonable scope, but OTX is a broad threat-intelligence domain spanning pulses, users, indicators, submissions, subscriptions, and sync. Most tools correspond to distinct operations, so the count is slightly heavy but defensible.

    Completeness3/5

    Read and research coverage is strong, including search, pulse details, indicators, users, exports, and subscription sync. However, the surface is almost entirely read-only: there is no create/update/delete pulse, submit URL/file, or subscribe/unsubscribe operation. validate_indicator and list_indicator_types imply pulse authoring, but create_pulse is absent, leaving a notable dead end.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to query and manage OpenCTI threat intelligence data, including indicators, observables, reports, malware, and more, with read-only and optional write operations.
      39 PyPI
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides access to AlienVault Open Threat Exchange threat intelligence data, enabling querying of indicators, pulses, and other threat information through natural language.
      151 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to perform endpoint security scanning using AlienVault OTX and VirusTotal, including multi-platform scans, threat intelligence queries, and scan data persistence.
      3
      MIT