Query Truss threat intelligence via hosted MCP (OAuth). Growth+ plans.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Truss threat intelligence via Model Context Protocol and a terminal assistant β one binary: truss-mcp.
| Surface | Use for | Auth |
|---|---|---|
| Remote (recommended) | Cursor, Claude Desktop, MCP registries | OAuth β https://api.truss-security.com/mcp |
| Local stdio (legacy) | Air-gap / BYO-key / FilterQL REPL tools | TRUSS_API_KEY β REST |
Hosted MCP (OAuth, Growth+ gate, five tools) is served by the Truss API. This package ships configs, validate-remote / doctor --remote, CLI search, and optional local stdio. Community accounts cannot consent to hosted MCP.
Not on npm yet. Install from this repo (
npm install -g .). After publish:npm install -g @truss-security/truss-agent-mcp.
Node.js 18+. Binary name truss-mcp avoids conflict with @truss-security/truss-sdk's truss command.
| Command | What it does |
|---|---|
truss-mcp search | Guided REPL with live MCP tools (local stdio or remote OAuth token) |
truss-mcp mcp | Local stdio MCP server (legacy / air-gap) |
truss-mcp init | Interactive .env setup |
truss-mcp doctor | Validate keys and API access; --remote runs hosted OAuth doctor |
truss-mcp validate-remote <url> | OAuth + MCP doctor (discovery, DCR, PKCE, tools) |
truss-mcp help | Usage summary |
One REPL with MCP tools always connected. The assistant classifies your intent and asks before querying Truss API:
run executes confirmed filter (default 7 days)stix for STIX export; JSON summaries in-threaddetect splunk, detect falcon, detect cortex from search resultsThe assistant offers next steps explicitly: build a filter, refine it, query Truss API, export JSON/STIX, or generate SIEM/EDR hunting queries.
run 30, days 30) may use more API quotaFull REPL reference: guides/truss-cli.md
truss-mcp search uses color-coded, ASCII-bordered output:
β search_threats on remote, or β search_products on stdio)Controls: color / color on / color off / color auto Β· env TRUSS_MCP_COLOR Β· standard NO_COLOR=1
No API key in host config. Growth+ Truss account; browser OAuth consent.
Samples: config/cursor.mcp.json Β· config/claude_desktop_config.json Β· guides/client-setup-cursor.md.
See config/cursor.mcp.stdio.json and guides/getting-started.md.
Use as the OAuth + MCP doctor before registry publish or release. After OAuth it requires search_threats to return at least one Truss product (id + title). The access token stays in memory for that process only unless you pass --save-token.
After token exchange it prints an OAuth compatibility checklist (resource URI, redirects, PKCE S256, issuer match, audience vs MCP resource, truss_role), then proves MCP access with real Truss data.
Options:
--verbose β HTTP statuses, key headers, truncated bodies (tokens redacted)--strict-oauth β exit 2 if the OAuth checklist has WARN/FAIL (even when Truss MCP calls succeed)--save-token PATH β write the access token for local replay (mode 0600; delete after debugging)--token-file PATH β skip browser OAuth; reuse a saved token to re-check MCP access + Truss dataOptional automated OAuth data tests (saved token + TRUSS_RUN_MCP_OAUTH=1) are documented in guides/publishing.md.
Official listing: server.json (com.truss-security/truss-mcp) Β· Tracker: guides/registry-submission.md Β· Internal metadata: config/mcp-registry.json Β· Architecture: docs/05-hosted-mcp-oauth-architecture.md
Env load order (shell vars win): ~/.config/truss/env β ~/.truss/.env β ./.env
| Variable | Required for | Notes |
|---|---|---|
TRUSS_API_KEY | local mcp / stdio search | From Truss dashboard (legacy air-gap only) |
TRUSS_MCP_URL | remote search / doctor | Default https://api.truss-security.com/mcp |
TRUSS_MCP_OAUTH_TOKEN_FILE | remote search | Bearer token from validate-remote --save-token |
LLM_PROVIDER | search | anthropic or openai β set via init |
LLM_MODEL | search | Set via init |
ANTHROPIC_API_KEY / OPENAI_API_KEY | search | Per provider |
Full list: env.example
Guides β install, REPL, MCP clients, FilterQL examples
Reference β API contract, tools, architecture (docs/README.md β docs 01β06)
Contributors / AI agents: see AGENTS.md for repo operations and conventions.
Publish: guides/publishing.md Β· Changes: CHANGELOG.md
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/truss-threat-intelligence)<a href="https://allmcps.com/mcp/truss-threat-intelligence"><img src="https://allmcps.com/api/badge/truss-threat-intelligence?style=directory" alt="Truss Threat Intelligence on AllMCPs" /></a>