temporal
MCP server from robryanx/temporal-mcp-server
claude mcp add --transport stdio robryanx-temporal-mcp-server go run cmd/server/main.go \ --env PORT="Port for the MCP server (default: 8080)" \ --env TEMPORAL_ADDRESS="Temporal server address (default: localhost:7233)" \ --env TEMPORAL_NAMESPACE="Temporal namespace (default: default)"
How to use
This MCP server integrates with Temporal to expose workflow history and related resources via MCP endpoints. The primary tool exposed is workflow_history, which retrieves the execution history for a given Temporal workflow. To use it, you provide the tool name and the required identifiers for the workflow and run, and the server will fetch and return the history from the Temporal backend. There is also a resource bridge at test://resource that serves as a guide to understanding workflow histories within this MCP server context. To interact with the server, ensure the Temporal address and namespace are correctly configured via environment variables, then run the server and issue JSON requests to the MCP API describing the tool or resource you want to access.
How to install
Prerequisites:
- Go toolchain (Go 1.20+)
- Access to a Temporal service (or a local Temporal instance)
- Network access to Temporal from where you run the MCP server
Steps:
-
Install Go if not already installed
- On macOS: brew install go
- On Windows/Linux: follow https://golang.org/dl/
-
Clone the MCP Temporal server repository and navigate to it
-
Install dependencies and run the server
- Use the command that starts the server as described below:
# Run the MCP Temporal server (from repository root)
GO111MODULE=on go run cmd/server/main.go
- Verify the server starts and listens on the configured port (default 8080). If you need to customize Temporal connection details, set TEMPORAL_ADDRESS, TEMPORAL_NAMESPACE, and PORT environment variables before starting. For example:
export TEMPORAL_ADDRESS=localhost:7233
export TEMPORAL_NAMESPACE=default
export PORT=8080
GO111MODULE=on go run cmd/server/main.go
- Test a basic workflow_history request once the server is running (see how_to_use for example payloads).
Additional notes
Notes:
- Ensure Temporal is reachable from the environment running this MCP server. Network ACLs or firewall rules may block the Temporal gRPC endpoint.
- If Temporal authentication is required, you may need to extend env configuration to pass credentials or TLS settings depending on your Temporal deployment.
- The server defaults to port 8080 if PORT is not provided. You can override this by exporting PORT before starting the server.
- The test://resource endpoint serves as a guidance resource for understanding workflow histories; you can request it exactly as shown in the README example to fetch the guide content.
Related MCP Servers
trpc-agent-go
trpc-agent-go is a powerful Go framework for building intelligent agent systems using large language models (LLMs) and tools.
station
Station is our open-source runtime that lets teams deploy agents on their own infrastructure with full control.
tiger-cli
Tiger CLI is the command-line interface for Tiger Cloud. It includes an MCP server for helping coding agents write production-level Postgres code.
gopls
MCP server for golang projects development: Expand AI Code Agent ability boundary to have a semantic understanding and determinisic information for golang projects.
kubernetes
A Model Context Protocol (MCP) server for the Kubernetes API.
gcp-cost
💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go