ThreatConnect v3 MCP Server
Enables LLM clients to interact with ThreatConnect v3 for case management and threat intelligence, providing typed tools for creating/updating cases, indicators, and artifacts while handling HMAC authentication and API quirks.
README
ThreatConnect v3 MCP Server
A Model Context Protocol server that gives an MCP-capable LLM client a small set of reliable, validated tools to drive ThreatConnect Case Management and Threat Intelligence through the v3 REST API.
It hides v3's HMAC authentication, retries, pagination, and error quirks behind typed tools so the model never hand-rolls HTTP or signing.
Tools
| Tool | v3 call | What it does |
|---|---|---|
create_case |
POST /v3/cases |
Create a case (name/status/severity + optional nested artifacts, tags, attributes). |
update_case |
PUT /v3/cases/{id} |
Partial update; nested associations honor mode (append/replace/delete). |
create_indicator |
POST /v3/indicators |
Create any indicator type; type→summary-field resolved automatically. |
add_artifact |
POST /v3/artifacts |
Attach one artifact to an existing case by case_id/case_xid. |
add_artifacts_bulk |
PUT /v3/cases/{id} or fan-out POST |
Attach many artifacts: one nested-append request, or concurrent POSTs with a per-item ledger. |
enrich_indicator |
GET /v3/indicators/{id|summary} |
Return TC's context: rating/confidence, tags, attributes, associations, observations, web link. |
tc_get (read-only) |
GET /v3/<allowlisted> |
Escape hatch for arbitrary reads with TQL/fields — never writes. |
There is deliberately no generic write tool: unconstrained PUT/DELETE
against shared threat intel is too dangerous to hand an LLM.
Install
Requires Python 3.12+ and uv.
uv sync
cp .env.example .env # then fill in your credentials
Configuration
Set these in .env (or the environment). HMAC is the primary auth path.
| Variable | Required | Default | Notes |
|---|---|---|---|
TC_BASE_URL |
yes | — | e.g. https://myinstance.threatconnect.com (normalized to /api). |
TC_API_ACCESS_ID |
HMAC | — | API user access id. |
TC_API_SECRET_KEY |
HMAC | — | API user secret key (never logged). |
TC_API_TOKEN |
token | — | Alternative to HMAC; used only if the HMAC pair is absent. |
TC_DEFAULT_OWNER |
no | — | Default owner for owner-relative reads/writes. |
TC_TIMEOUT |
no | 30 |
Per-request timeout (seconds). |
TC_MAX_RETRIES |
no | 3 |
Retries on 429/5xx with backoff + jitter. |
TC_VERIFY_SSL |
no | true |
TLS verification. |
TC_LOG_LEVEL |
no | WARNING |
Logs go to stderr, secret-redacted. |
Clock skew: the HMAC
Timestampmust be within five minutes of server time. Keep the host on NTP.
Run
uv run tc-mcp # stdio transport
Claude Desktop / mcp.json
{
"mcpServers": {
"threatconnect": {
"command": "uv",
"args": ["--directory", "/abs/path/to/threat_connect_mcp", "run", "tc-mcp"]
}
}
}
Inspect the tool surface
npx @modelcontextprotocol/inspector uv run tc-mcp
Development
uv run ruff check . # lint
uv run mypy src # types
uv run pytest -q # mocked unit/integration tests
Live smoke test (gated)
The live tests are skipped unless credentials are present and -m live is
passed. A green test_signature proves the HMAC string-to-sign is correct
against your instance:
TC_BASE_URL=... TC_API_ACCESS_ID=... TC_API_SECRET_KEY=... \
uv run pytest -m live tests/test_live.py
Design notes
- Thin httpx client, not TcEx. TcEx assumes it runs inside the TC platform;
a small signed
httpxclient is easier to test (golden HMAC vector) and has no hidden runtime assumptions. - "Dynamic" via schema introspection. Tools validate caller fields/types
against the live
OPTIONS /v3/<endpoint>and/v3/artifactTypesdescriptors, so they track the API instead of a frozen copy. Validation degrades gracefully if a descriptor is unavailable — the API stays the final authority. - TQL injection defense. Any caller value interpolated into a TQL clause (enrich-by-summary) is escaped and control characters are rejected.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。