Skip to main content

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

How it works​

  1. You describe it. For example: "A support squad with a billing agent and a technical agent that searches the web."
  2. Your assistant designs it. It reads the server's catalog of models, tools and routing modes, and can start from one of 15 templates.
  3. The server validates it. Mistakes like a missing workflow_order are caught and fixed before any code is written.
  4. The server writes the code. You get a complete Python script using Custodian and CustodianSquad.
  5. 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-labs to run the generated code.