Temporal MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Temporal MCP or direct API to start workflows, query workflow state, signal executions, and cancel workflows through natural language.

Temporal logoTemporal
Api Key

Temporal is a cloud-native workflow orchestration platform for building reliable distributed applications. It ensures workflows run reliably, scale automatically, and recover from failures.

63 Tools

Try Temporal now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Temporal
Try asking
TOOLS

Supported Tools

Every Temporal action and event your agent gets out of the box.

Batch Cancel Workflows

Request cancellation of selected Temporal Workflows.

Batch Delete Workflows

WARNING: Permanently delete selected Temporal Workflow Executions and their Event Histories.

Batch Reset Workflows

WARNING: Irreversibly reset selected Temporal Workflows.

Batch Signal Workflows

Send a named Signal to selected Temporal Workflows.

Batch Terminate Workflows

WARNING: Irreversibly terminate selected Temporal Workflows immediately; Workflow cleanup code does not run.

Batch Update Workflow Options

Update typed execution options on selected Temporal Workflows.

Cancel Workflow

Irreversibly request cooperative cancellation of a running Temporal Workflow Execution.

Count Schedules

Return an approximate count of Temporal Schedules matching a Schedule Visibility query, including grouped counts when requested.

Count Workflows

Return an approximate count of Workflow Executions matching a Temporal Visibility query, including supported grouped counts.

Create and Apply Workflow Rule

Create a Namespace-wide Temporal Workflow Rule and immediately start a batch job applying it to matching currently running Workflows.

Create Export Sink

Create a persistent Temporal Cloud Workflow History export sink asynchronously.

Create Schedule

Create a Temporal Schedule that starts a configured Workflow on cron, interval, calendar, or structured-calendar times.

Create Workflow Rule

Create a Namespace-wide Temporal Workflow Rule that can pause matching Activities when its trigger occurs.

Delete Export Sink

Delete a Temporal Cloud Workflow History export sink asynchronously.

Delete Namespace

Permanently and irreversibly delete a Temporal Cloud Namespace and all of its Workflow data asynchronously.

Delete Schedule

Permanently delete one Temporal Schedule from a Namespace.

Delete Workflow Rule

Permanently delete one configured Temporal Workflow Rule from a Namespace.

Describe Batch Operation

Return progress, state, selection query, type, and failure counts for one batch operation in an authorized Temporal Cloud Namespace.

Describe Namespace

Return one Temporal Cloud Namespace's configuration, resource version, routing endpoints, state, limits, and capacity.

Describe Schedule

Return the complete current definition, state, execution information, Memo, Search Attributes, and conflict token for one Temporal Schedule.

Describe Workflow

Return configuration, status, pending work, callbacks, and child state for one Workflow Execution in an authorized Temporal Cloud Namespace.

Describe Workflow Rule

Return one configured Temporal Workflow Rule, including its trigger, Visibility query, actions, expiration, creation metadata, and description.

Fail Over Namespace Region

Switch a multi-region Temporal Cloud Namespace's active region asynchronously.

Get Async Operation

Return the current state and failure details of a Temporal Cloud asynchronous operation.

Get Export Sink

Return one Temporal Cloud Workflow History export sink, including its resource version, destination configuration, state, and health.

Get Namespace Capacity

Return a Temporal Cloud Namespace's capacity mode, available limits, and seven-day actions-per-second statistics.

Get Cloud Region

Return details for one Temporal Cloud region, including its cloud provider, provider-specific identifier, and human-readable location.

Get Workflow History

Return one page of a Temporal Workflow Execution's Event History in forward or reverse order.

List Archived Workflows

Return one page of archived Workflow Executions matching an exact Temporal Visibility query.

List Batch Operations

Return one page of batch operations in an authorized Temporal Cloud Namespace.

List Export Sinks

Return one page of Workflow History export sinks configured on a Temporal Cloud Namespace.

List Namespace Assignments

Return one page of users, User Groups, or Service Accounts assigned to a Temporal Cloud Namespace.

List Namespaces

Return one page of Temporal Cloud Namespaces visible to the API-key identity, optionally filtered by name or Project.

List Cloud Regions

List currently available Temporal Cloud regions for Namespace placement.

List Schedule Matching Times

List times within a required start-to-end range that match one Temporal Schedule's timing specification.

List Schedules

Return one filtered page of Temporal Schedules in an authorized Temporal Cloud Namespace.

List Workflow Rules

Return one page of Workflow Rules configured for an authorized Temporal Cloud Namespace.

List Workflows

Search one page of Workflow Executions in an authorized Temporal Cloud Namespace using Temporal Visibility query syntax.

Move Namespace To Project

Move a Temporal Cloud Namespace to another Project asynchronously.

Patch Schedule

Apply targeted changes to a Temporal Schedule without replacing its definition: pause or unpause it, trigger one immediate action, or backfill historical times.

Pause Workflow

Pause one Temporal Workflow Execution.

Query Workflow

Run a synchronous, read-only Query handler against one Temporal Workflow Execution.

Register Namespace

Create a billable, persistent Temporal Cloud Namespace asynchronously and return its full Namespace ID and operation ID.

Remove Namespace Access

Remove one user's, user group's, or service account's direct permission on a Temporal Cloud Namespace by setting PERMISSION_UNSPECIFIED.

Rename Custom Search Attribute

Rename one custom Search Attribute in a Temporal Cloud Namespace asynchronously.

Replace Workflow

Replace a running Workflow Execution with a new execution using the same Workflow ID.

Reset Workflow

WARNING: Irreversibly reset a Temporal Workflow to a selected Workflow Task event.

Set Namespace Access

Set one user's, user group's, or service account's direct ADMIN, WRITE, or READ permission on a Temporal Cloud Namespace.

Signal With Start Workflow

Atomically signal a running Temporal Workflow or start and signal it when absent.

Signal Workflow

Send an asynchronous Signal to one running Temporal Workflow Execution.

Start or Get Workflow

Start a Workflow Execution, or return the already-running execution when the Workflow ID conflicts.

Start Workflow

Start a new Workflow Execution in an authorized Temporal Cloud Namespace.

Stop Batch Operation

Request that Temporal stop an in-progress batch operation.

Terminate Workflow

Immediately and irreversibly terminate one Temporal Workflow Execution.

Trigger Workflow Rule

Trigger an existing configured Temporal Workflow Rule against one Workflow Execution.

Unpause Workflow

Resume a paused Temporal Workflow Execution.

Update Export Sink

Update an existing Temporal Cloud Workflow History export sink asynchronously using optimistic concurrency.

Update Namespace

Update a Temporal Cloud Namespace specification asynchronously using the latest resource version for optimistic concurrency.

Update Namespace Tags

Upsert or permanently remove tags on a Temporal Cloud Namespace asynchronously; removed tags no longer exist on the Namespace.

Update Schedule

Fully replace an existing Temporal Schedule's spec, Workflow-start action, policies, and state.

Update Workflow

Send a durable Update to one Temporal Workflow Execution and wait for the requested lifecycle stage.

Update Workflow Options

Update selected options on one Temporal Workflow Execution using an exact protobuf FieldMask.

Validate Export Sink

Validate a Temporal Cloud Workflow History export sink configuration.

SETUP GUIDE

Connect Temporal MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK for Python or TypeScript
2

Initialize Client and Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
Import and initialize the Composio client, then create a Tool Router session for Temporal
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'YOUR_SPECIFIC_PROMPT_HERE'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent (Anthropic Claude or Mastra)
SETUP GUIDE

Connect Temporal API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute Temporal Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'YOUR_SPECIFIC_PROMPT_HERE'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute Temporal actions with your Agent

Why Use Composio?

AI Native Temporal Integration

  • Supports both Temporal MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Temporal data

Managed Auth

  • Built-in API key handling with secure storage
  • Central place to manage, scope, and revoke Temporal access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Temporal
  • Scoped, least privilege access to Temporal resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Yes, Temporal requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Yes. Composio is SOC 2 Type II compliant and is built to keep your Temporal connection and credentials secure. OAuth tokens and API keys are encrypted, and sensitive customer data is protected at rest and in transit.

Composio also undergoes independent security testing and continuously monitors its systems for security threats. You can review the latest reports and policies in the Composio Trust Center.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Create the key in your Temporal account settings, then paste it once on Composio's connection page. Composio stores it encrypted and uses it only for the Temporal actions your agent runs. Nobody else in your workspace can read it, and you can revoke it inside Temporal at any time.

When you connect a Temporal account through Composio, every action runs under that account, so anything the agent creates, sends, or changes shows up in Temporal as done by you. Keep an approval step in your prompt for actions with side effects, such as sending or deleting, and have the agent draft first.

Whatever the credentials you connect allow inside Temporal. If Temporal lets you scope a key to specific permissions, create a scoped one so the agent can only do what you intend. You can revoke the key inside Temporal at any time.

Yes. Composio supports multiple connected accounts for the same app, and that works in Claude, ChatGPT, or any other assistant you connect through Composio. Give each Temporal connection a name such as work or personal, and the assistant uses the one you mention in the request. Each account keeps its own credentials and nothing is merged.

The connection stops working the moment Temporal rejects the old key. Create a new key in Temporal and reconnect the account from the Composio dashboard or by asking your agent to reconnect Temporal. Nothing else changes.

Composio's free Hobby plan includes 100,000 tool calls per month with no credit card, which covers most personal Temporal use. Paid plans add higher limits and team features. Your Temporal plan and its API limits still apply as usual.

Built-in connectors usually give one AI access to a limited set of apps. Many people use Composio because it lets their AI connect to more apps than it normally supports, or connect to multiple accounts for the same app (e.g. connect Claude to multiple Temporal accounts).

With Composio, you connect Temporal once and then use it across different AI assistants without setting it up separately in each one. Connect your apps to Composio once, then connect Composio to whichever AI you use, whether that's Claude, ChatGPT, Hermes, or your own custom assistant.

Start with Temporal.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Temporal tool your agent needs.Free to start.

Start building