MCP server for Temporal workflow orchestration
Project description
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
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 execution
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)pause_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
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 | --host |
TEMPORAL_HOST |
localhost:7233 |
| Namespace | --namespace |
TEMPORAL_NAMESPACE |
default |
| TLS | --tls-enabled |
TEMPORAL_TLS_ENABLED |
auto-detect |
| mTLS cert path | --tls-cert |
TEMPORAL_TLS_CLIENT_CERT_PATH |
— |
| mTLS key path | --tls-key |
TEMPORAL_TLS_CLIENT_KEY_PATH |
— |
| API key | --api-key |
TEMPORAL_API_KEY |
— |
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.
Development
Running Tests
Install development dependencies:
pip install -r requirements-dev.txt
Run the test suite:
pytest test.py -v
Building the Docker Image
docker build -t mcp/temporal:latest .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file temporal_mcp_server-1.3.0.tar.gz.
File metadata
- Download URL: temporal_mcp_server-1.3.0.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b6f8a066d088ed8c881f8a4e6bf272a870d1e3df54b88bfa43e10117153910
|
|
| MD5 |
592c413053d544a84fb9ddc61b1c6b91
|
|
| BLAKE2b-256 |
2d0c466732546485e09dffc1665398123b1edea2534b0440aa7ac615542af030
|
Provenance
The following attestation bundles were made for temporal_mcp_server-1.3.0.tar.gz:
Publisher:
release.yml on GethosTheWalrus/temporal-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
temporal_mcp_server-1.3.0.tar.gz -
Subject digest:
22b6f8a066d088ed8c881f8a4e6bf272a870d1e3df54b88bfa43e10117153910 - Sigstore transparency entry: 1574322768
- Sigstore integration time:
-
Permalink:
GethosTheWalrus/temporal-mcp@61d984d6e134bbe83aca6356983b35ce96262fe0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/GethosTheWalrus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@61d984d6e134bbe83aca6356983b35ce96262fe0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file temporal_mcp_server-1.3.0-py3-none-any.whl.
File metadata
- Download URL: temporal_mcp_server-1.3.0-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dcb5f4d1644c0b889047817959f77a90a9f449f2e7de177fedc0e755c424c75
|
|
| MD5 |
9abdd0e3ac5fe77de162d07b405c7f92
|
|
| BLAKE2b-256 |
8d29bb5d6c844a0d26e148c9fe9a108f879b50e0562d3ebe6d228d08ec7225ca
|
Provenance
The following attestation bundles were made for temporal_mcp_server-1.3.0-py3-none-any.whl:
Publisher:
release.yml on GethosTheWalrus/temporal-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
temporal_mcp_server-1.3.0-py3-none-any.whl -
Subject digest:
4dcb5f4d1644c0b889047817959f77a90a9f449f2e7de177fedc0e755c424c75 - Sigstore transparency entry: 1574322796
- Sigstore integration time:
-
Permalink:
GethosTheWalrus/temporal-mcp@61d984d6e134bbe83aca6356983b35ce96262fe0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/GethosTheWalrus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@61d984d6e134bbe83aca6356983b35ce96262fe0 -
Trigger Event:
push
-
Statement type: