Learn how to install and configure the Trigger.dev MCP Server
install-mcp
command supports the following options:
-p, --project-ref <project ref>
- Scope the MCP server to a specific Trigger.dev project by providing its project ref-t, --tag <package tag>
- The version of the trigger.dev CLI package to use for the MCP server (default: latest or v4-beta)--dev-only
- Restrict the MCP server to the dev environment only--yolo
- Install the MCP server into all supported clients automatically--scope <scope>
- Choose the scope of the MCP server: user
, project
, or local
--client <clients...>
- Choose specific client(s) to install into--log-file <log file>
- Configure the MCP server to write logs to a file-a, --api-url <value>
- Configure a custom Trigger.dev API URL-l, --log-level <level>
- Set CLI log level (debug, info, log, warn, error, none)search_docs
tool, but for any other tool call you will need to authenticate the MCP server via the same method as the Trigger.dev CLI.The first time you attempt to use a tool that requires authentication, you will be prompted to authenticate the MCP server via the MCP client.
Client | Scope Options | Configuration File | Documentation |
---|---|---|---|
Claude Code | user, project, local | ~/.claude.json or ./.mcp.json (project/local scope) | Claude Code MCP Docs |
Cursor | user, project | ~/.cursor/mcp.json (user) or ./.cursor/mcp.json (project) | Cursor MCP Docs |
VSCode | user, project | ~/Library/Application Support/Code/User/mcp.json (user) or ./.vscode/mcp.json (project) | VSCode MCP Docs |
Zed | user | ~/.config/zed/settings.json | Zed Context Servers Docs |
Windsurf | user | ~/.codeium/windsurf/mcp_config.json | Windsurf MCP Docs |
Gemini CLI | user, project | ~/.gemini/settings.json (user) or ./.gemini/settings.json (project) | Gemini CLI MCP Tutorial |
Charm Crush | user, project, local | ~/.config/crush/crush.json (user), ./crush.json (project), or ./.crush.json (local) | Charm MCP Docs |
Cline | user | ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json | Cline MCP Docs |
OpenAI Codex CLI | user | ~/.codex/config.toml | See OpenAI Codex CLI documentation for MCP configuration |
Sourcegraph AMP | user | ~/.config/amp/settings.json | Sourcegraph AMP MCP Docs |
opencode | user, project | ~/.config/opencode/opencode.json (user) or ./opencode.json (project) | opencode MCP Docs |
trigger
Command: npx
Arguments: ["trigger.dev@latest", "mcp"]
--log-file <path>
- Log to a specific file--api-url <url>
- Use a custom Trigger.dev API URL--dev-only
- Restrict to dev environment only--project-ref <ref>
- Scope to a specific project"Search the trigger docs for a ffmpeg example"
"Initialize trigger.dev in my project"
"Get all tasks in my project"
"Trigger my foobar task with a sample payload"
"Get the details of the latest run for my foobar task"
"List all runs for my foobar task"
"Deploy my project to staging"
"Deploy my project to production"