@agentlify/mcp-server
v2.0.1
Published
Model Context Protocol server for Agentlify - enables AI assistants to integrate Agentlify
Maintainers
Readme
Agentlify MCP Server
Model Context Protocol (MCP) server for Agentlify.
This package lets MCP-compatible assistants (Windsurf/Cascade, Cline, and others) manage Agentlify routers and agents directly from chat.
Installation
npm install -g @agentlify/mcp-serverOr run without installing:
npx -y @agentlify/mcp-serverRequirements
- Node.js 18+
AGENTLIFY_API_KEY(must start withmp_)
MCP Configuration
Windsurf / Cascade
{
"mcpServers": {
"agentlify": {
"command": "npx",
"args": ["-y", "@agentlify/mcp-server"],
"env": {
"AGENTLIFY_API_KEY": "mp_your-api-key-here"
}
}
}
}Cline
{
"mcpServers": {
"agentlify": {
"command": "npx",
"args": ["-y", "@agentlify/mcp-server"],
"env": {
"AGENTLIFY_API_KEY": "mp_your-api-key-here"
}
}
}
}Available Tools
Router tools
create_routertest_requestget_usage_summarylist_modelslist_routersget_balance
Agent tools
list_agentsget_agentcreate_agentupdate_agentdelete_agenttoggle_agentduplicate_agentget_agent_usagelist_agent_templatesfork_agent_templaterun_agentlist_agent_runsget_agent_run_detailexport_agent_runs
Example prompts
- "Create an agent called support-triage with a short description."
- "List my agents and show inactive ones too."
- "Duplicate agent
sales-assistantassales-assistant-v2." - "Run
agent:research-assistanton this prompt and return the tool calls." - "Show run history for
research-assistantfrom the last week." - "Create a router optimized for cost and latency, then test it."
Built-in MCP Resources
The server exposes documentation resources:
agentlify://quickstartagentlify://migration/openaiagentlify://migration/anthropicagentlify://router-configurationagentlify://sdk/pythonagentlify://sdk/javascriptagentlify://routing-strategiesagentlify://cost-optimizationagentlify://examples/chatbotagentlify://pricing
Development
cd agentlify-mcp
npm install
npm run devBuild:
npm run buildRun compiled server:
AGENTLIFY_API_KEY=mp_your-key npm startSupport
- Dashboard:
https://agentlify.app/dashboard - Docs:
https://docs.agentlify.app
