Skip to main content
The Trigger.dev MCP (Model Context Protocol) Server gives AI coding assistants direct access to your Trigger.dev projects. Once connected, your assistant can search docs, trigger task runs, deploy projects, and inspect run details — all without leaving the chat.

What the MCP Server can do

  • Search the Trigger.dev documentation
  • Initialize Trigger.dev in a new project
  • List projects, organizations, and tasks
  • Trigger task runs with custom payloads
  • Deploy projects to dev, staging, or production
  • Fetch run details and list runs with status filters

Installation

The fastest way to get started is the interactive installer, which detects your installed AI clients and configures them automatically:
You can also pass --yolo to install into all detected clients at once:
Or target specific clients:
After installation, restart your AI client. You should see a server named trigger connect automatically.

Client configuration

If you prefer to configure manually, copy the snippet for your client below.
Or add to ~/.claude.json (user) or .mcp.json (project):

Authentication

The search_docs tool works without any authentication. All other tools require you to be logged in via the Trigger.dev CLI:
The first time you use an authenticated tool, your AI client will prompt you to complete the login flow in your browser.

Getting started prompts

Once the server is connected, try these prompts in your AI assistant:
  • "Search the Trigger.dev docs for an ffmpeg example"
  • "Initialize Trigger.dev in my project"
  • "List all tasks in my project"
  • "Trigger my send-email task with a sample payload"
  • "Get the details of the latest run for my process-video task"
  • "Deploy my project to staging"

Advanced options

The install-mcp command supports several options for fine-grained control: Example: restrict to dev environment for a specific project:
To pass options through a manual config, add them to the args array:

Troubleshooting

If the server shows as disconnected, try restarting your AI client. MCP server connections are established on startup.
  • Run npx trigger.dev@latest install-mcp again — it detects and fixes common configuration issues.
  • Verify the server starts without errors by running npx trigger.dev@latest mcp in your terminal.
  • Make sure you have restarted the AI client after editing its config file.
  • Check that node and npx are on your PATH (some clients use a restricted environment).

Next steps

Building with AI

Tools and patterns for writing Trigger.dev code with AI assistants.

Quickstart

Get started with Trigger.dev and run your first task in minutes.