MCP Servers
MCP servers let you inject external Model Context Protocol tools into selected SwarmClaw agents.
Supported Transports
SwarmClaw supports:
stdiossestreamable-http
For stdio, configure a command and args.
For sse or streamable-http, configure a URL and any required headers.
Typical Workflow
- Create an MCP server definition.
- Test the connection.
- Inspect the discovered tools.
- Run conformance checks when needed.
- Assign the MCP server to one or more agents.
- Optionally disable individual MCP tools per agent.
What the UI Supports
- connection testing
- tool discovery
- conformance checks
- direct tool invocation for inspection
- agent assignment through the agent editor
MCP tools appear alongside built-in tools during execution.
API
GET /api/mcp-serversPOST /api/mcp-serversGET /api/mcp-servers/:idPUT /api/mcp-servers/:idDELETE /api/mcp-servers/:idPOST /api/mcp-servers/:id/testGET /api/mcp-servers/:id/toolsPOST /api/mcp-servers/:id/conformancePOST /api/mcp-servers/:id/invoke
CLI Examples
swarmclaw mcp-servers list
swarmclaw mcp-servers create --data '{"name":"Local MCP","transport":"stdio","command":"npx","args":["-y","some-server"]}'
swarmclaw mcp-servers test <serverId>
swarmclaw mcp-servers tools <serverId>
swarmclaw mcp-servers conformance <serverId>