Skip to main content
Glama
tracecat-mcp-community

tracecat-mcp-community

by adrojis

tracecat-mcp-community

A full-stack Model Context Protocol (MCP) server for the Tracecat SOAR platform — 94 tools across 16 domains.

License: MIT npm version Node.js CI Tracecat MCP Docker


What is this?

An MCP server that gives AI assistants (Claude Code, Claude Desktop, etc.) full control over a Tracecat instance through natural language. Manage workflows, actions, cases, secrets, tables, schedules, graphs, and more — without leaving your editor.

  • 94 tools covering the full Tracecat API surface, including write operations not exposed by the official MCP

  • Stdio transport — no OIDC/SSO setup required, works against any self-hosted Tracecat

  • Lazy authentication — MCP transport starts instantly, login happens on first tool call

  • Auto workspace detection — no manual workspace ID needed

  • Session cookie auth — handles Tracecat's cookie-based auth transparently


Related MCP server: Automatisch MCP Server

Community MCP vs Official MCP

Tracecat ships an official MCP server (HTTP transport, OIDC auth, bundled with the platform). This community MCP is a standalone alternative you can use instead — pick the one that fits your setup.

Community MCP (this project)

Official MCP

Transport

stdio (local)

HTTP (remote)

Auth

Session cookie (username/password)

OIDC / SSO

Setup

npx tracecat-mcp-community + .env

Requires OIDC configured on the Tracecat instance

Tool coverage

94 tools — full CRUD + graph ops + autofix + variables/integrations

~90 tools — read + basic CRUD, plus agents/skills (EE-oriented)

Exclusive capabilities

Graph editing (add_edges, move_nodes, autofix_workflow), Schedules CRUD, Secrets write, Cases CRUD + tasks + fields, Actions CRUD, Variables CRUD, Integrations management, Templates, Webhook key rotation

Agent presets/skills/sessions (Enterprise Edition), official support, platform-integrated

Best for

Local dev, self-hosted without SSO, workflow authoring/editing at scale

Teams already running Tracecat Cloud or self-hosted with OIDC

You don't need both. This community MCP is designed to cover the full surface on its own.


Tools

Domain

Tools

Description

Workflows

9

List, create, get, update, deploy, export, delete, validate, autofix

Actions

5

List, create, get, update, delete workflow actions

Executions

6

Run workflows, run drafts, list/get/cancel executions, compact view

Cases

15

List, create, get, update, delete cases; comments; tasks CRUD; custom fields CRUD

Secrets

5

Search, create, get, update, delete secrets

Variables

6

List, search, get, create, update, delete non-sensitive workspace variables

Tables

5

List, create, get, update, delete tables

Columns

2

Create, delete table columns

Rows

6

List, get, insert, update, delete, batch insert rows

Schedules

5

List, create, get, update, delete schedules

Graph

5

Get graph, add/delete edges, move nodes, update trigger position

Folders

5

List, create, update, delete folders; move workflows into folders

Workspaces

5

Get current, list, create, update, delete workspaces

Integrations

7

List/get/test/disconnect/delete integrations; list/get OAuth providers

Webhooks

3

Get/update webhook, rotate API keys

Docs

2

Search Tracecat docs, list available tool documentation

Templates

2

List and get community workflow templates

System

1

Health check

Total: 94 tools for complete Tracecat automation.


Quick Start

Option A: npx (fastest)

# Install globally
npm install -g tracecat-mcp-community

Create a .env file wherever you run from (or in the package directory):

TRACECAT_API_URL=http://localhost/api
TRACECAT_USERNAME=your-email@example.com
TRACECAT_PASSWORD=your-password-here
TRACECAT_WORKSPACE_ID=              # Optional — auto-detected if omitted

Add to your .mcp.json:

{
  "mcpServers": {
    "tracecat": {
      "command": "npx",
      "args": ["-y", "tracecat-mcp-community"]
    }
  }
}

Option B: From source

git clone https://github.com/adrojis/tracecat-mcp-community.git
cd tracecat-mcp-community
npm install
cp .env.example .env    # Edit with your credentials
npm run build

Add to your .mcp.json:

{
  "mcpServers": {
    "tracecat": {
      "command": "node",
      "args": ["/absolute/path/to/tracecat-mcp-community/dist/index.js"]
    }
  }
}

Option C: Docker

git clone https://github.com/adrojis/tracecat-mcp-community.git
cd tracecat-mcp-community
docker build -t tracecat-mcp-community .
{
  "mcpServers": {
    "tracecat": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "--env-file", "/path/to/.env", "tracecat-mcp-community"]
    }
  }
}

Security: .env is gitignored and never committed. Never hardcode credentials in source files. See SECURITY.md.

Then restart Claude Code and verify with /mcp — you should see the tracecat server with 94 tools.


Configuration

Variable

Required

Default

Description

TRACECAT_API_URL

No

http://localhost/api

Tracecat API base URL

TRACECAT_USERNAME

Yes

—

Login email

TRACECAT_PASSWORD

Yes

—

Login password

TRACECAT_WORKSPACE_ID

No

Auto-detected

Workspace ID (uses first workspace if omitted)

Credentials are loaded from .env via dotenv. The .env file must be in the project root (next to package.json).


Architecture

src/
├── index.ts          # Entry point — StdioTransport + env loading
├── server.ts         # McpServer creation + tool registration
├── client.ts         # HTTP client with lazy auth + auto workspace injection
├── types.ts          # TypeScript interfaces
└── tools/
    ├── workflows.ts    # Workflow CRUD + deploy/export/validate/autofix
    ├── actions.ts      # Action CRUD with YAML inputs
    ├── cases.ts        # Case CRUD + comments + tasks + custom fields
    ├── executions.ts   # Run (live + draft), list, cancel, inspect executions
    ├── secrets.ts      # Secret management
    ├── variables.ts    # Non-sensitive workspace variables CRUD
    ├── tables.ts       # Tables, columns, and rows
    ├── graph.ts        # Graph operations (get graph, edges, node positions)
    ├── folders.ts      # Folder CRUD + move workflow into folder
    ├── workspaces.ts   # Workspace CRUD + current-workspace info
    ├── integrations.ts # OAuth integrations + providers
    ├── webhooks.ts     # Webhook get/update + key rotation
    ├── schedules.ts    # Cron/interval scheduling
    ├── docs.ts         # Documentation search
    ├── templates.ts    # Community workflow templates
    └── system.ts       # Health check

Key Design Decisions

Decision

Rationale

Lazy initialization

MCP transport starts immediately; login happens on first tool call. Avoids blocking Claude Code startup.

Session cookies

Tracecat currently uses fastapiusersauth cookies, not API keys. The client handles login and cookie extraction automatically. See note below on upcoming API token support.

YAML string inputs

Action inputs are sent as YAML strings per the Tracecat API contract, not JSON objects.

POST for updates

Actions, secrets, and schedules use POST for updates instead of the conventional PATCH.

Auto workspace injection

workspace_id is auto-detected and injected as a query parameter on every request.

Optimistic locking

Graph operations read base_version before patching to prevent concurrent edit conflicts.


Authentication Roadmap

This server currently authenticates via username/password (session cookies). The Tracecat team is actively working on API token authentication, which will provide a simpler and more secure connection method — no more password in .env.

We will add API token support as soon as it becomes available upstream. The username/password method will remain supported for backward compatibility.


API Quirks

These behaviors differ from typical REST conventions and are handled transparently by the server:

Quirk

Details

workspace_id as query param

Must be ?workspace_id=..., not a header

POST for updates

/actions/{id}, /secrets/{id}, /schedules/{id} use POST

Actions list endpoint

GET /actions?workflow_id=... (not nested under /workflows)

Action inputs format

YAML string, not JSON object

Workflow list pagination

Returns { items: [...], next_cursor }, not a plain array


Development

# Watch mode (auto-reload)
npm run dev

# Build TypeScript
npm run build

# Run directly
node dist/index.js

Testing

npm run build
npm test

Tests use Node.js built-in test runner (no extra dependencies). See CONTRIBUTING.md for guidelines.

MCP Inspector

The MCP Inspector is a visual debugging tool that lets you browse and test all 94 tools interactively in your browser — useful for verifying your setup, exploring tool schemas, and testing API calls without Claude.

From the project root:

npx @modelcontextprotocol/inspector node dist/index.js

This starts a local web UI (default: http://localhost:6274). Click the Tools tab to see all available tools, inspect their input schemas, and execute them against your Tracecat instance.


Roadmap

This project is under active development. Tracecat's API surface evolves fast, and we intend to keep up — expect new tools, refinements, and breaking-change adaptations as the platform matures.

Planned areas of improvement:

  • More tools — covering new Tracecat API endpoints as they ship

  • Better error handling — structured error responses with actionable hints

  • OAuth/OIDC support — for Tracecat instances using SSO instead of basic auth

  • Test suite — automated integration tests against a live Tracecat instance

Contributions, issues, and feature requests are welcome.


Note: This project was previously named tracecat-mcp. It was renamed to tracecat-mcp-community in April 2026 to distinguish it from Tracecat's official MCP server (HTTP + OIDC), which shipped shortly after.


License

MIT

Available Tools

94 tools
tracecat_add_commentA

Add a comment to a case

Inputs: case_id (required), content (required).

tracecat_add_edgesA

Add connections (edges) between actions in a workflow graph. source_type is 'trigger' for the trigger node or 'udf' for actions. source_handle can be 'success', 'error', or null (default).

Inputs: workflow_id (required), edges (required).

tracecat_autofix_workflowA

Validate a workflow and automatically fix common issues: orphan nodes (position + connect), disconnected trigger (connect to first action), unclosed expressions (close }}). Returns a report of fixes applied.

Inputs: workflow_id (required), dry_run.

tracecat_batch_insert_rowsA

Insert multiple rows into a table at once. Each row is a flat object with keys matching column names.

Inputs: table_id (required), rows (required).

tracecat_cancel_executionB

Cancel a running workflow execution

Inputs: execution_id (required).

tracecat_create_actionB

Create a new action in a workflow

Inputs: workflow_id (required), type (required), title (required).

tracecat_create_caseC

Create a new case

Inputs: workflow_id (required), case_title (required), payload, malice, +3 more.

tracecat_create_case_fieldB

Define a new custom case field (appears on every case). Common types: text, number, boolean, date, long_text, url, select.

Inputs: name (required), field_type (required), required, default_value, +2 more.

tracecat_create_case_taskB

Create a task on a case (checklist item / investigative step)

Inputs: case_id (required), title (required), description, status, +2 more.

tracecat_create_columnC

Create a new column in a table

Inputs: table_id (required), name (required), type (required).

tracecat_create_folderB

Create a new workflow folder

Inputs: name (required), parent_path.

tracecat_create_scheduleB

Create a new schedule for a workflow (cron or interval)

Inputs: workflow_id (required), cron, every, inputs.

tracecat_create_secretC

Create a new secret

Inputs: name (required), keys (required), type, description, +1 more.

tracecat_create_tableC

Create a new table

Inputs: name (required), description.

tracecat_create_variableA

Create a non-sensitive variable (base URLs, project IDs, tenant defaults). For secrets use tracecat_create_secret.

Inputs: name (required), values (required), environment, description.

tracecat_create_webhook_keyB

Generate or rotate a webhook API key for a workflow

Inputs: workflow_id (required).

tracecat_create_workflowC

Create a new workflow

Inputs: title (required), description.

tracecat_create_workspaceC

Create a new workspace

Inputs: name (required).

tracecat_delete_actionB

Delete an action from a workflow

Inputs: action_id (required), workflow_id (required).

tracecat_delete_caseA

Delete a case permanently

Inputs: case_id (required).

tracecat_delete_case_fieldA

Delete a custom case field definition (IRREVERSIBLE — drops the field from all cases)

Inputs: field_id (required).

tracecat_delete_case_taskB

Delete a task from a case

Inputs: case_id (required), task_id (required).

tracecat_delete_columnB

Delete a column from a table

Inputs: table_id (required), column_id (required).

tracecat_delete_edgesB

Remove connections (edges) between actions in a workflow graph.

Inputs: workflow_id (required), edges (required).

tracecat_delete_folderB

Delete a workflow folder

Inputs: folder_id (required), recursive.

tracecat_delete_integrationA

Remove an integration entirely (configuration + tokens). Use disconnect if you only want to revoke tokens.

Inputs: provider_id (required).

tracecat_delete_rowC

Delete a row from a table

Inputs: table_id (required), row_id (required).

tracecat_delete_scheduleC

Delete a schedule

Inputs: schedule_id (required).

tracecat_delete_secretB

Delete a secret permanently

Inputs: secret_id (required).

tracecat_delete_tableC

Delete a table

Inputs: table_id (required).

tracecat_delete_variableB

Delete a variable permanently

Inputs: variable_id (required).

tracecat_delete_workflowB

Delete a workflow permanently

Inputs: workflow_id (required).

tracecat_delete_workspaceA

Delete a workspace (IRREVERSIBLE — deletes all workflows, cases, and data inside)

Inputs: workspace_id (required).

tracecat_deploy_workflowA

Deploy (commit) a workflow to make it active

Inputs: workflow_id (required).

tracecat_disconnect_integrationA

Revoke an integration's OAuth tokens while preserving its configuration (reconnectable via UI)

Inputs: provider_id (required).

tracecat_docsB

Get inline documentation about Tracecat concepts. Topics: action_types, expressions, functions, control_flow, common_mistakes.

Inputs: topic (required).

tracecat_export_workflowB

Export a workflow as YAML definition

Inputs: workflow_id (required).

tracecat_get_actionB

Get details of a specific action by ID

Inputs: action_id (required), workflow_id (required).

tracecat_get_caseB

Get details of a specific case by ID

Inputs: case_id (required).

tracecat_get_executionB

Get details of a specific workflow execution

Inputs: execution_id (required).

tracecat_get_execution_compactA

Get compact execution details (lighter response with action-level status, inputs, results, errors)

Inputs: execution_id (required).

tracecat_get_graphA

Get the workflow graph (nodes, edges, positions, version). Use this to inspect the visual layout and connections between actions.

Inputs: workflow_id (required).

tracecat_get_integrationA

Get integration details (provider config, connection status, grant type) for a specific provider

Inputs: provider_id (required).

tracecat_get_providerA

Get provider metadata — scopes, auth endpoints, schema — for building integration configuration

Inputs: provider_id (required).

tracecat_get_rowB

Get a specific row by ID from a table

Inputs: table_id (required), row_id (required).

tracecat_get_scheduleC

Get details of a specific schedule

Inputs: schedule_id (required).

tracecat_get_secretA

Get a secret by name (returns metadata, not decrypted values)

Inputs: secret_name (required).

tracecat_get_tableB

Get details of a specific table by ID (includes columns)

Inputs: table_id (required).

tracecat_get_templateA

Get the full YAML template for a SOAR workflow pattern. Use tracecat_list_templates to see available template IDs.

Inputs: template_id (required).

tracecat_get_variableA

Get a variable by name (returns full object including values)

Inputs: variable_name (required), environment.

tracecat_get_webhookA

Get webhook details for a workflow (URL, status, methods)

Inputs: workflow_id (required).

tracecat_get_workflowA

Get details of a specific workflow by ID

Inputs: workflow_id (required).

tracecat_get_workspaceB

Get the current workspace ID and base UI URL (useful for building workflow links)

Inputs: no named parameters.

tracecat_health_checkA

Check if the Tracecat API is running and healthy

Inputs: no named parameters.

tracecat_insert_rowA

Insert a new row into a table. Data keys must match existing column names.

Inputs: table_id (required), data (required).

tracecat_list_actionsB

List all actions for a given workflow

Inputs: workflow_id (required).

tracecat_list_case_fieldsA

List all custom case field definitions (workspace-scoped schema for case extras)

Inputs: no named parameters.

tracecat_list_casesC

List all cases in the current workspace

Inputs: limit, status.

tracecat_list_case_tasksB

List all tasks attached to a case

Inputs: case_id (required).

tracecat_list_commentsA

List all comments on a case

Inputs: case_id (required).

tracecat_list_executionsB

List workflow executions, optionally filtered by workflow ID

Inputs: workflow_id, limit.

tracecat_list_foldersB

List all workflow folders in the current workspace

Inputs: parent_path.

tracecat_list_integrationsB

List all configured OAuth integrations for the current user

Inputs: no named parameters.

tracecat_list_providersA

List all available OAuth providers (both built-in and custom) that can be used to create integrations

Inputs: no named parameters.

tracecat_list_rowsB

List rows in a table with optional pagination

Inputs: table_id (required), limit, offset.

tracecat_list_schedulesB

List all schedules in the current workspace

Inputs: workflow_id.

tracecat_list_tablesA

List all tables in the current workspace

Inputs: no named parameters.

tracecat_list_templatesA

List available SOAR workflow templates. Returns template ID, title, description, category, and action count for each template.

Inputs: no named parameters.

tracecat_list_variablesA

List non-sensitive workspace variables (names + environments). For secret values use secrets tools instead.

Inputs: environment.

tracecat_list_workflowsB

List all workflows in the current workspace

Inputs: no named parameters.

tracecat_list_workspacesA

List all workspaces accessible to the current user

Inputs: no named parameters.

tracecat_move_nodesA

Reposition action nodes in the workflow graph. Recommended layout: trigger at (500,0), first action at y>=300, 160px vertical spacing, 320px horizontal spacing for parallel nodes.

Inputs: workflow_id (required), positions (required).

tracecat_move_workflow_to_folderA

Move a workflow into a folder (or to root with '/')

Inputs: workflow_id (required), folder_path (required).

tracecat_run_workflowC

Execute a workflow by ID with optional input payload

Inputs: workflow_id (required), payload.

tracecat_run_workflow_draftA

Execute a workflow in DRAFT mode (uses uncommitted version, useful for testing before deploy)

Inputs: workflow_id (required), payload.

tracecat_search_secretsC

Search for secrets by name or type

Inputs: name, environment.

tracecat_search_variablesA

Search variables by names, ids, or environment — returns full variable objects with values

Inputs: environment, names, ids.

tracecat_test_integrationA

Test a client_credentials integration's connection without consuming tokens. For authorization_code integrations this may not apply.

Inputs: provider_id (required).

tracecat_tools_documentationA

Get documentation of ALL Tracecat MCP tools grouped by category. Use this to discover available tools and learn how to use them. Optionally filter by category.

Inputs: category.

tracecat_update_actionB

Update an existing action (title, description, inputs, control_flow). Note: inputs must be a YAML string, not a JSON object.

Inputs: action_id (required), workflow_id (required), title, description, +2 more.

tracecat_update_caseC

Update an existing case

Inputs: case_id (required), case_title, status, priority, +2 more.

tracecat_update_case_fieldB

Update a custom case field definition

Inputs: field_id (required), name, required, default_value, +2 more.

tracecat_update_case_taskB

Update a case task (status, title, assignee, etc.)

Inputs: case_id (required), task_id (required), title, description, +3 more.

tracecat_update_folderB

Rename a workflow folder

Inputs: folder_id (required), name (required).

tracecat_update_rowB

Update an existing row in a table

Inputs: table_id (required), row_id (required), data (required).

tracecat_update_scheduleB

Update a schedule (cron, interval, status, inputs)

Inputs: schedule_id (required), cron, every, inputs, +1 more.

tracecat_update_secretB

Update an existing secret's keys, description, or environment

Inputs: secret_id (required), name, description, environment, +1 more.

tracecat_update_tableC

Update a table's name or description

Inputs: table_id (required), name, description.

tracecat_update_trigger_positionA

Reposition the trigger node in the workflow graph. Default recommended position is (500, 0).

Inputs: workflow_id (required), x (required), y (required).

tracecat_update_variableB

Update a variable's values, description, or environment

Inputs: variable_id (required), name, values, environment, +1 more.

tracecat_update_webhookC

Update webhook settings for a workflow (status, methods, entrypoint, CIDR allowlist)

Inputs: workflow_id (required), status, methods, entrypoint_ref.

tracecat_update_workflowC

Update an existing workflow

Inputs: workflow_id (required), title, description, status.

tracecat_update_workspaceC

Update a workspace (rename)

Inputs: workspace_id (required), name (required).

tracecat_validate_workflowA

Validate a workflow WITHOUT deploying it. Checks actions, inputs, expressions, graph connectivity, and trigger connections. Returns errors and warnings.

Inputs: workflow_id (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 94 tools

    Disambiguation4/5

    Most tools have distinct purposes with clear descriptions, but some pairs like tracecat_get_execution / tracecat_get_execution_compact and tracecat_run_workflow / tracecat_run_workflow_draft could cause confusion. Overall, the delineation is good.

    Naming Consistency5/5

    All tools follow the consistent 'tracecat_verb_noun' pattern (e.g., tracecat_list_cases, tracecat_delete_workflow). Verbs and nouns are uniformly used, making the surface predictable.

    Tool Count1/5

    With 94 tools, the count is extremely high for any MCP server. While the coverage is broad, this number likely overwhelms agents and exceeds the typical well-scoped range of 3–15 tools.

    Completeness5/5

    The tool set covers CRUD operations for all major entities (workflows, cases, tables, secrets, integrations, etc.) and includes validation, debugging, and deployment. No obvious gaps in lifecycle coverage.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers