Agentlify MCP Integration
Connect Agentlify to MCP-compatible assistants so they can manage routers, manage agents, run agents, and inspect execution history.
Cascade / WindsurfClineAny MCP-Compatible Client
What Your Assistant Can Do
The MCP server exposes Agentlify operations as tools so assistants can perform real actions instead of only generating suggestions.
Router Control
Create routers, test prompts, inspect models, and monitor usage.
Agent Lifecycle
Create, update, duplicate, enable/disable, and delete agents.
Execution
Run agents directly and handle tool-call continuation.
Run Analytics
List runs, inspect run detail, and export run history.
Requirements: Node.js 18+ and an Agentlify API key from your dashboard settings.
Configuration
Add the MCP server configuration in your assistant settings:
Cascade / Windsurf
Add to your MCP settings file
json
{
"mcpServers": {
"agentlify": {
"command": "npx",
"args": ["-y", "@agentlify/mcp-server"],
"env": {
"AGENTLIFY_API_KEY": "mp_your-api-key-here"
}
}
}
}Cline
Add to ~/.cline/mcp.json
json
{
"mcpServers": {
"agentlify": {
"command": "npx",
"args": ["-y", "@agentlify/mcp-server"],
"env": {
"AGENTLIFY_API_KEY": "mp_your-api-key-here"
}
}
}
}Available MCP Tools
Tool names exposed by @agentlify/mcp-server:
Router Tools
create_routertest_requestget_usage_summarylist_modelslist_routersget_balance
Agent Management
list_agentsget_agentcreate_agentupdate_agentdelete_agenttoggle_agentduplicate_agentget_agent_usagelist_agent_templatesfork_agent_template
Execution Tools
run_agentlist_agent_runsget_agent_run_detailexport_agent_runs
Built-in Documentation Resources
The MCP server also exposes documentation resources:
agentlify://quickstartagentlify://migration/openaiagentlify://migration/anthropicagentlify://router-configurationagentlify://sdk/pythonagentlify://sdk/javascriptagentlify://routing-strategiesagentlify://cost-optimizationagentlify://examples/chatbotagentlify://pricing
Example Workflow
1. "List my agents and show which ones are inactive."
2. "Create an agent named support-triage with a short description."
3. "Run agent:support-triage on this message and return tool calls."
4. "Export the latest 50 runs for support-triage as JSONL."