temporal-mcp
Provides tools for listing, describing, and fetching the event history of Temporal workflow executions, enabling LLM-assisted debugging of Temporal workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@temporal-mcp list workflows with status Running"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Temporal MCP Server
An MCP (Model Context Protocol) server for debugging Temporal workflows. This server enables LLM-assisted debugging by exposing Temporal workflow inspection tools.
Features
list_workflows - List workflow executions with optional query filter
describe_workflow - Get detailed info about a specific workflow
get_workflow_history - Fetch event history for debugging
Related MCP server: prefect-mcp-server
Requirements
Python 3.11+
uv for dependency management
A running Temporal server (local or cloud)
Installation
# Clone the repository
git clone <repo-url>
cd temporal-mcp
# Create virtual environment and install
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"Configuration
Set environment variables to configure the Temporal connection:
Variable | Description | Default |
| Temporal server address |
|
| Temporal namespace |
|
| Path to TLS certificate (for Cloud) | - |
| Path to TLS key (for Cloud) | - |
| API key (for Cloud) | - |
Docker
Connect to Temporal Server
If you have Temporal running (locally or remotely):
# Connect to Temporal on host machine
docker compose up
# Or specify a custom address
TEMPORAL_ADDRESS=my-temporal:7233 docker compose upConnect to Temporal Cloud
For Temporal Cloud with mTLS certificates:
# Place your certificates in a certs/ directory, then:
docker compose up
# After uncommenting the TLS environment variables in docker-compose.ymlOr with API key:
TEMPORAL_ADDRESS=your-ns.tmprl.cloud:7233 \
TEMPORAL_NAMESPACE=your-ns \
TEMPORAL_API_KEY=your-key \
docker compose upLocal Development (without Docker)
Install and run directly with Python:
For Temporal Cloud, set the appropriate environment variables:
export TEMPORAL_ADDRESS="your-namespace.tmprl.cloud:7233"
export TEMPORAL_NAMESPACE="your-namespace"
export TEMPORAL_API_KEY="your-api-key"Or with TLS certificates:
export TEMPORAL_ADDRESS="your-namespace.tmprl.cloud:7233"
export TEMPORAL_NAMESPACE="your-namespace"
export TEMPORAL_TLS_CERT="/path/to/cert.pem"
export TEMPORAL_TLS_KEY="/path/to/key.pem"Usage
With Cursor
Add to your Cursor MCP settings (~/.cursor/mcp.json):
{
"mcpServers": {
"temporal": {
"command": "uv",
"args": ["run", "temporal-mcp"],
"cwd": "/path/to/temporal-mcp",
"env": {
"TEMPORAL_ADDRESS": "localhost:7233",
"TEMPORAL_NAMESPACE": "default"
}
}
}
}Standalone
temporal-mcpAvailable Tools
list_workflows
List workflow executions with optional filtering.
list_workflows(query="", limit=10)query: Optional Temporal list filter syntax (e.g.,WorkflowType="MyWorkflow" AND ExecutionStatus="Running")limit: Maximum workflows to return (default 10, max 100)
describe_workflow
Get detailed information about a specific workflow.
describe_workflow(workflow_id, run_id="")workflow_id: The workflow ID to describerun_id: Optional run ID (uses latest if not specified)
get_workflow_history
Fetch the event history for a workflow execution.
get_workflow_history(workflow_id, run_id="", max_events=100)workflow_id: The workflow IDrun_id: Optional run ID (uses latest if not specified)max_events: Maximum events to return (default 100, max 1000)
Development
Setup
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"Commands
# Format code
black src tests
# Lint
ruff check src tests
# Type check
mypy src
# Run tests
pytest
# Run all checks
black src tests && ruff check src tests && mypy src && pytestProject Structure
temporal-mcp/
├── pyproject.toml # Project config and dependencies
├── Dockerfile
├── docker-compose.yml # Docker setup for MCP server
├── README.md
├── src/temporal_mcp/
│ ├── __init__.py
│ ├── server.py # MCP server and tool definitions
│ ├── client.py # Temporal client wrapper
│ ├── config.py # Environment-based configuration
│ └── models.py # Pydantic models
├── tests/
│ ├── conftest.py # Test fixtures
│ ├── test_config.py
│ ├── test_client.py
│ └── test_server.py
└── docs/
└── PLAN.txtLicense
MIT
Available Tools
3 toolsdescribe_workflowA
Get detailed information about a specific workflow execution.
Args: workflow_id: The workflow ID to describe run_id: Optional run ID (uses latest run if not specified)
Inputs: workflow_id (required), run_id. Returns: result
get_workflow_historyA
Get the event history for a workflow execution.
Args: workflow_id: The workflow ID run_id: Optional run ID (uses latest run if not specified) max_events: Maximum number of events to return (default 100, max 1000)
Inputs: workflow_id (required), run_id, max_events. Returns: result
list_workflowsA
List workflow executions from Temporal.
Args: query: Optional query filter (Temporal list filter syntax). Example: 'WorkflowType="MyWorkflow" AND ExecutionStatus="Running"' limit: Maximum number of workflows to return (default 10, max 100)
Inputs: limit, query. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct aspect of workflow inspection: list_workflows returns filtered overviews, describe_workflow provides detailed state for a specific execution, and get_workflow_history returns the event sequence. There is no meaningful overlap between the tools.
All tool names follow a consistent lowercase verb_noun pattern: list_workflows, describe_workflow, get_workflow_history. The naming style is uniform and predictable.
Three tools form a focused read-only workflow inspection surface for Temporal. Each tool earns its place, and the count is well-scoped for the apparent purpose.
The set covers core inspection operations well, but it lacks common workflow management operations such as start, signal, terminate, or query. For a read-only observability server this would be complete, but for a general temporal-mcp toolset it has notable gaps.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for building and testing AI agents with multi-model experimentation and insights.
Open-source Zapier/n8n alternative as an MCP server: agents build, run and debug your workflows.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server for Hatchet, the durable orchestration engine, enabling LLMs to inspect workflow definitions, runs, logs, and more, with optional mutating tools for triggering, canceling, and managing workflows.73 PyPIMIT

prefect-mcp-serverofficial
AlicenseAqualityBmaintenanceAn MCP server for interacting with Prefect resources, enabling AI assistants to monitor, manage, and debug workflows.1455MIT- AlicenseAqualityDmaintenanceMCP server that gives AI agents access to your application's OpenTelemetry traces for querying, analysis, and debugging.511 npm2MIT
- AlicenseAqualityDmaintenanceAn MCP server for interacting with Temporal Cloud workflows across multiple regions, providing tools to list, describe, terminate, and retrieve step results from workflows via natural language.71MIT