Custodian Labs MCP server
Connect Claude, Cursor, VS Code or any other MCP client to Custodian Labs. Then describe
the agent you want in plain language. Your assistant looks up the right models, tools and
routing modes, starts from a template, validates the design and writes runnable
custodian_labs Python code. Run the code to deploy.
https://mcp.custodianlabs.io/mcp
1 minute
Connect
Add the server to Claude Code, Claude Desktop, Cursor or VS Code.
Try itExample prompts
What to ask once you're connected.
15 startersTemplates
Support hubs, research squads, pipelines and RAG assistants.
How it works
- You describe it. For example: "A support squad with a billing agent and a technical agent that searches the web."
- Your assistant designs it. It reads the server's catalog of models, tools and routing modes, and can start from one of 15 templates.
- The server validates it. Mistakes like a missing
workflow_orderare caught and fixed before any code is written. - The server writes the code. You get a complete Python script using
CustodianandCustodianSquad. - You run it. The script deploys the agent and prints its share link.
Example output:
# Generated by the Custodian Labs MCP server.
# Set CUSTODIAN_SDK_API_KEY (and optionally CUSTODIAN_SDK_BASE_URL) before running.
from custodian_labs import Custodian, CustodianSquad
squad = CustodianSquad(
custodians=[
Custodian(
name='Billing',
model='gpt-6-luna',
system_prompt='You handle billing, invoices, refunds and payment questions. ...',
topics=["billing","invoice","refund","payment"],
privacy_enabled=True,
).add_data_source_file('faq.pdf'),
Custodian(
name='Technical Support',
model='gpt-6-luna',
system_prompt='You troubleshoot product issues. ...',
topics=["technical","bug","error","setup","troubleshoot"],
tools=["web_search"],
).add_data_source_file('faq.pdf'),
],
routing_mode='single',
)
app = squad.deploy(name='Customer Support Hub', share_mode='public')
print(app.share_link)
note
Generated code is Python. For TypeScript, ask your assistant to translate it using the templates as a guide.
What you need
- A Custodian Labs API key. The MCP server uses the same key as the SDKs. Get one.
- An MCP client that supports remote servers over HTTP.
- Python 3.10+ and
pip install custodian-labsto run the generated code.