ThreatConnect V3 Server
БесплатноНе проверенEnables LLM clients to interact with ThreatConnect v3 for case management and threat intelligence, providing typed tools for creating/updating cases, indicators
Описание
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
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.
Установить ThreatConnect V3 Server в Claude Desktop, Claude Code, Cursor
unyly install threatconnect-v3-mcp-serverСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add threatconnect-v3-mcp-server -- uvx --from git+https://github.com/delonius22/threat_connect_mcp threat-connect-mcpFAQ
ThreatConnect V3 Server MCP бесплатный?
Да, ThreatConnect V3 Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для ThreatConnect V3 Server?
Нет, ThreatConnect V3 Server работает без API-ключей и переменных окружения.
ThreatConnect V3 Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить ThreatConnect V3 Server в Claude Desktop, Claude Code или Cursor?
Открой ThreatConnect V3 Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare ThreatConnect V3 Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
