Temporal MCP Server
Temporal MCP Server provides MCP tools for managing Temporal workflow orchestration, including workflows, schedules, standalone activities, batch operations, and optional codec authentication.
Start workflows and retrieve results, descriptions, histories, and individual decoded history events.
Query, signal, cancel, terminate, and continue-as-new workflow executions.
List workflows with query filters and pagination, and run batch signal/cancel/terminate operations.
Create, list, describe, pause, unpause, delete, and trigger schedules.
Start, execute, describe, list, count, cancel, terminate, and batch-manage standalone activities.
Use remote codec encoding/decoding and, when configured, check codec auth status or log in/refresh tokens.
Configure Temporal connectivity with namespaces, TLS/mTLS, API keys, and namespace allowlists.
Provides tools for managing Temporal workflow orchestration, including starting and controlling workflow executions, querying and signaling workflows, batch operations, and schedule management.
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 Server start a workflow with id 'order-123' in queue 'orders'"
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
Overview
This is a Model Context Protocol (MCP) server that provides tools for interacting with Temporal workflow orchestration. It enables AI assistants and other MCP clients to manage Temporal workflows, schedules, and workflow executions through a standardized interface. The server supports both local and remote Temporal instances.
Read more on the Temporal Code Exchange
Related MCP server: Automatisch MCP Server
Distributions
Tools
Workflow Execution
start_workflow- Start a new Temporal workflow execution with specified parameters, workflow ID, and task queueget_workflow_result- Retrieve the result of a completed workflow executiondescribe_workflow- Get detailed information about a workflow execution including status, timing, and metadatalist_workflows- List workflow executions based on a query filter with pagination support (limit/skip)get_workflow_history- Retrieve the complete event history of a workflow executionget_workflow_event- Retrieve a single workflow history event with decoded payload fields when present
Workflow Control
query_workflow- Query a running workflow for its current state without affecting executionsignal_workflow- Send a signal to a running workflow to change its behavior or provide datacancel_workflow- Request cancellation of a running workflow executionterminate_workflow- Forcefully terminate a workflow execution with a reasoncontinue_as_new- Signal a workflow to continue as new (restart with new inputs while preserving history link)
Batch Operations
batch_signal- Send a signal to multiple workflows matching a query (configurable batch size)batch_cancel- Cancel multiple workflows matching a query (configurable batch size)batch_terminate- Terminate multiple workflows matching a query with a specified reason (configurable batch size)
Schedule Management
create_schedule- Create a new schedule for periodic workflow execution using cron expressionslist_schedules- List all schedules with pagination support (limit/skip)describe_schedule- Get detailed configuration and runtime information about a schedule, including its spec, action, state, recent executions, and upcoming action timespause_schedule- Pause a schedule to temporarily stop workflow executionsunpause_schedule- Resume a paused scheduledelete_schedule- Permanently delete a scheduletrigger_schedule- Manually trigger a scheduled workflow immediately
Codec Authentication
Only listed when --codec-token-cache is set (see Remote codec).
codec_auth_status- Show whether the codec server login is validcodec_login- Refresh the codec server token, or start a device login that returns a URL and code to open in a browser
Temporal Documentation
For more information about Temporal, refer to the official Temporal documentation:
Temporal Documentation: https://docs.temporal.io/
Workflows: https://docs.temporal.io/workflows
Activities: https://docs.temporal.io/activities
Python SDK: https://docs.temporal.io/dev-guide/python
VS Code MCP Config
Add a .vscode/mcp.json file to your workspace. Choose the approach that fits your setup.
Docker (environment variables)
Recommended when running via Docker. Configuration is passed through environment variables.
{
"servers": {
"temporal": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "TEMPORAL_HOST",
"-e", "TEMPORAL_NAMESPACE",
"-e", "TEMPORAL_TLS_ENABLED",
"-e", "TEMPORAL_TLS_CLIENT_CERT_PATH",
"-e", "TEMPORAL_TLS_CLIENT_KEY_PATH",
"-e", "TEMPORAL_API_KEY",
"mcp/temporal"
],
"env": {
"TEMPORAL_HOST": "localhost:7233",
"TEMPORAL_NAMESPACE": "default",
"TEMPORAL_TLS_ENABLED": "false",
"TEMPORAL_TLS_CLIENT_CERT_PATH": "/path/to/client.pem",
"TEMPORAL_TLS_CLIENT_KEY_PATH": "/path/to/client.key",
"TEMPORAL_API_KEY": "your-api-key"
}
}
}
}Python via uvx (CLI arguments)
Recommended when running from PyPI via uvx. No local install required — uvx fetches and runs the package automatically. Configuration is passed as CLI arguments.
{
"servers": {
"temporal": {
"command": "uvx",
"args": [
"temporal-mcp-server",
"--host", "localhost:7233",
"--namespace", "default",
"--tls-enabled", "false",
"--tls-cert", "/path/to/client.pem",
"--tls-key", "/path/to/client.key",
"--api-key", "your-api-key"
]
}
}
}Configuration Options
Option | CLI Argument | Environment Variable | Default |
Temporal host |
|
|
|
Namespace |
|
|
|
Allowed namespaces | — |
| configured namespace only |
TLS |
|
| auto-detect |
mTLS cert path |
|
| — |
mTLS key path |
|
| — |
API key |
|
| — |
Codec server URL |
|
| — |
Codec |
|
| — |
Codec token cache file |
|
| — |
Codec OAuth server URL |
|
| — |
Codec OAuth client ID |
|
| — |
Codec OAuth audience |
|
| — |
CLI arguments take precedence over environment variables. When TEMPORAL_API_KEY is set, TLS is enabled automatically. When mTLS cert/key paths are provided, TLS is also enabled automatically.
Every tool accepts an optional namespace argument. If omitted, the server uses --namespace, then TEMPORAL_NAMESPACE, then default. Runtime overrides are disabled by default: set TEMPORAL_ALLOWED_NAMESPACES to a comma-separated allowlist such as default,payments, or set it to * to permit any namespace reachable through the configured Temporal host and credentials. A finite allowlist must include the configured default namespace.
Remote codec
When payloads or failure messages are encrypted by a codec server, set --codec-endpoint and the server decodes them through it: get_workflow_event shows decoded inputs, results and failure details, and get_workflow_history shows decoded failure messages and stack traces, including every cause in the chain. The codec is also used for outbound data: workflow inputs and other values the server sends to Temporal are encoded through the codec server's /encode endpoint. The codec server must therefore expose both /encode and /decode. Without a codec nothing is decoded and no requests are made to a codec server.
get_workflow_history decodes failure messages and stack traces only. Workflow inputs, results and failure details in the history remain encoded; use get_workflow_event to see decoded inputs and results for a single event.
Each request carries the namespace in an X-Namespace header, and requests for other allowed namespaces use their own. Only http and https endpoints are accepted, and redirects are never followed, so credentials are not forwarded to another host.
Authenticate to the codec server in one of two ways:
Static header:
--codec-auth "Bearer <token>". You are responsible for renewing it.OAuth with a token cache: set
--codec-token-cachetogether with--codec-oauth-url,--codec-oauth-client-idand--codec-oauth-audience, all required. The server refreshes the access token itself and persists it to the cache file, which takes precedence over--codec-auth. This enables thecodec_loginandcodec_auth_statustools: callcodec_loginto refresh silently, or to start a device-code login that returns a URL and code and completes in the background once you approve it in a browser. When no valid token is available, decoding reports an error pointing tocodec_login.
The OAuth server must be Auth0-compatible: it needs to serve /oauth/device/code and /oauth/token, accept an audience parameter, and issue refresh tokens for the offline_access scope. The token cache is a JSON file with access_token, refresh_token, token_type and expires_at (RFC 3339). Its directory must be writable, because the file is replaced atomically. Refresh tokens may rotate, so do not share one cache file between this server and another client.
Development
Running Tests
Install development dependencies:
pip install -r requirements-dev.txtRun the test suite:
pytest test.py -vBuilding the Docker Image
docker build -t mcp/temporal:latest .Available Tools
31 toolsbatch_cancelC
Cancel multiple workflows matching a query with concurrent processing for speed. Use 'concurrency' to control parallel operations (default: 50).
Inputs: query (required), limit, namespace, concurrency.
batch_cancel_activitiesC
Cancel multiple standalone activities matching a query with concurrent processing for speed. Use 'concurrency' to control parallel operations (default: 50).
Inputs: query (required), limit, namespace, concurrency.
batch_signalB
Send a signal to multiple workflows matching a query. Specify 'limit' to control batch size (default: 100).
Inputs: query (required), signal_name (required), args, limit, +1 more.
batch_terminateC
Terminate multiple workflows matching a query. Specify 'limit' to control batch size (default: 100).
Inputs: query (required), limit, reason, namespace.
batch_terminate_activitiesC
Terminate multiple standalone activities matching a query. Specify 'limit' to control batch size (default: 100).
Inputs: query (required), limit, reason, namespace, +1 more.
cancel_activityC
Cancel a running standalone activity execution
Inputs: activity_id (required), run_id, namespace.
cancel_workflowC
Cancel a running workflow execution
Inputs: workflow_id (required), namespace.
continue_as_newA
Signal a workflow to continue as new (restart with new inputs while preserving history link)
Inputs: signal_name (required), workflow_id (required), namespace, signal_args.
count_activitiesB
Count standalone activity executions matching a query
Inputs: query, namespace.
create_scheduleC
Create a new schedule for periodic workflow execution
Inputs: cron (required), task_queue (required), schedule_id (required), workflow_name (required), +2 more.
delete_scheduleC
Delete a schedule
Inputs: schedule_id (required), namespace.
describe_activityC
Get detailed information about a standalone activity execution
Inputs: activity_id (required), run_id, namespace.
describe_scheduleB
Get detailed configuration and runtime information about a schedule, including its spec, action, state, recent executions, and upcoming action times
Inputs: schedule_id (required), namespace.
describe_workflowC
Get detailed information about a workflow execution
Inputs: workflow_id (required), namespace.
execute_activityC
Execute a standalone Temporal activity and wait for result
Inputs: activity (required), task_queue (required), activity_id (required), args, +2 more.
get_activity_resultB
Get the result of a standalone activity
Inputs: activity_id (required), run_id, timeout, namespace.
get_workflow_eventB
Get a single workflow history event with decoded payload fields when present
Inputs: event_id (required), workflow_id (required), run_id, namespace.
get_workflow_historyC
Get the complete event history of a workflow execution. Specify 'limit' to control the number of events (default: 1000).
Inputs: workflow_id (required), limit, run_id, namespace.
get_workflow_resultB
Get the result of a completed workflow
Inputs: workflow_id (required), namespace.
list_activitiesC
List standalone activity executions based on a query. Specify 'limit' to control results and 'skip' for pagination.
Inputs: skip, limit, query, namespace.
list_schedulesA
List all schedules. Specify 'limit' to control the number of results (default: 100). Use 'skip' to paginate through results.
Inputs: skip, limit, namespace.
list_workflowsC
List workflow executions based on a query. Specify 'limit' to control the number of results (default: 100, max recommended: 1000). Use 'skip' to paginate through results.
Inputs: skip, limit, query, namespace.
pause_scheduleC
Pause a schedule
Inputs: schedule_id (required), note, namespace.
query_workflowC
Query a running workflow for its current state
Inputs: query_name (required), workflow_id (required), args, namespace.
signal_workflowC
Send a signal to a running workflow
Inputs: signal_name (required), workflow_id (required), args, namespace.
start_activityC
Start a new standalone Temporal activity execution
Inputs: activity (required), task_queue (required), activity_id (required), args, +2 more.
start_workflowC
Start a new Temporal workflow execution
Inputs: task_queue (required), workflow_id (required), workflow_name (required), args, +1 more.
terminate_activityC
Forcefully terminate a standalone activity execution
Inputs: activity_id (required), reason, run_id, namespace.
terminate_workflowC
Forcefully terminate a workflow execution
Inputs: workflow_id (required), reason, namespace.
trigger_scheduleC
Manually trigger a scheduled workflow immediately
Inputs: schedule_id (required), namespace.
unpause_scheduleB
Resume a paused schedule
Inputs: schedule_id (required), note, namespace.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 31 tools
Each tool targets a distinct Temporal resource and action: workflow lifecycle, activity lifecycle, batch operations, and schedules are clearly separated. Overlaps like start_activity vs execute_activity and get_workflow_event vs get_workflow_history are differentiated by descriptions. No two tools appear to do the same thing.
Tool names consistently use snake_case with a predictable verb_noun pattern (e.g., start_workflow, get_workflow_result, batch_cancel, create_schedule). Minor exceptions like continue_as_new and batch_signal are still readable and match Temporal terminology. No mixed conventions.
31 tools is heavy for an MCP server, though Temporal is a complex platform. Some consolidation is possible, such as combining pause_schedule and unpause_schedule into an update operation, and the batch variants add surface area. The count is borderline over-scoped rather than clearly wrong.
Core workflow, activity, batch, and schedule lifecycles are well covered, including start, query, signal, cancel, terminate, list, and describe operations. Minor gaps exist, such as no update_schedule or schedule execution listing, but agents can work around these for most tasks.
Maintenance
Related MCP Connectors
Connect, monitor, and control AI agents — tasks, approvals, schedules, and governance.
Build, test and publish agentic workflows from your AI client: approve steps, read tables, see runs.
Discover, compare, route, and execute machine-accessible capabilities for AI agents.
Hosted runtime for persistent agent teams, durable workflows, memory, schedules, and goals.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables AI assistants to interact with Netflix Conductor Workflow Engine for troubleshooting workflows, managing executions, and creating/updating workflow and task definitions through natural language.192-
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Automatisch workflow automation platform, allowing them to create, manage, and monitor workflows, connections, and executions through natural language commands.104 npm7MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with read-only access to Temporal infrastructure through 28 tools, plus an Agent Skill with expert guidance for writing correct Temporal code.429 npm6MIT
- AlicenseAqualityDmaintenanceEnables AI agents to create, execute, and analyze workflows on a Conductor instance through natural language.1916Apache 2.0