The MCP server is a thin adapter. Every tool call maps directly to a gateway API endpoint. Auth, rate limiting, and validation are all handled by the gateway.
Install
npx (no install needed) — see setup below.
Setup
- Claude Desktop
- Claude Code
- Cursor / Windsurf
Edit Restart Claude Desktop after saving.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):Environment Variables
| Variable | Required | Description |
|---|---|---|
ORCHAGENT_API_KEY | Yes | Your orchagent API key |
ORCHAGENT_GATEWAY_URL | No | Override gateway URL (default: https://api.orchagent.io) |
Available Tools
The MCP server exposes 13 tools across 5 categories.Agents
| Tool | Description |
|---|---|
orchagent_list_agents | List all agents in your account. Optional workspace_id filter. |
orchagent_run_agent | Execute a deployed agent in a cloud sandbox. Params: org, agent, version, input. |
Tasks
| Tool | Description |
|---|---|
orchagent_list_tasks | List tasks. Filter by status, project, priority, overdue. |
orchagent_create_task | Create a task with title, description, due_date, project, priority. |
orchagent_update_task | Update any field on a task. Use status: "done" to complete it. |
orchagent_delete_task | Permanently delete a task. |
Messages
| Tool | Description |
|---|---|
orchagent_list_messages | List messages from agents. Filter by level or agent_name. |
orchagent_send_message | Send a message to the feed. Set title, body, level (info/success/warning/error). |
Schedules
| Tool | Description |
|---|---|
orchagent_list_schedules | List scheduled agent runs in a workspace. |
orchagent_create_schedule | Create a cron or webhook schedule for an agent. |
orchagent_trigger_schedule | Manually trigger a scheduled run immediately. |
Runs
| Tool | Description |
|---|---|
orchagent_list_runs | List recent agent runs. Filter by agent_name, status. |
orchagent_get_run_logs | Get stdout, stderr, and exit code for a specific run. |
Examples
Once the MCP server is configured, you can use natural language in your MCP client:Run an agent
“Run the morning-brief agent”Claude calls
orchagent_run_agent with your org, agent name, and version. The agent executes in a cloud sandbox and returns the result.
Manage tasks
“Show me my overdue tasks”Claude calls
orchagent_list_tasks with status: "open" and overdue: true.
“Add a task: review PR #42, due Friday, high priority”Claude calls
orchagent_create_task with the parsed title, due date, and priority.
Schedule agents
“Schedule security-scanner to run every day at 6am London time”Claude calls
orchagent_create_schedule with cron_expression: "0 6 * * *" and timezone: "Europe/London".
Send messages
“Send a success message to my feed saying the deploy finished”Claude calls
orchagent_send_message with level: "success".
Use with Claude Desktop Scheduled Tasks
Claude Desktop supports scheduled tasks that run prompts on a cron. Combined with the orchagent MCP server, you can create scheduled prompts that trigger cloud agent execution:- Configure the orchagent MCP server in Claude Desktop (see setup above)
- Create a scheduled task in Claude Desktop with a prompt like: “Run my morning-brief agent and send me the summary”
- Claude Desktop runs the prompt on schedule, calling
orchagent_run_agentvia MCP - The agent runs in orchagent’s cloud sandbox — no need to keep your laptop open
Next Steps
Tasks
Learn about the task system
Messages
How agent messages work
Scheduling
Set up cron and webhook schedules
SDK Reference
Full SDK documentation