2026-05-049 min
Building MCP server tools for Claude Desktop (with examples)
MCP is the wire protocol Anthropic shipped so any agent runtime can register itself as a tool inside Claude Desktop. Here is exactly how brocco does it.
MCP server,Claude Desktop tools,Model Context Protocol
What MCP gives you
Long-form copy in progress. The outline below is what this section will cover. Open the dashboard to see brocco run the patterns described here.
- Tool definitions
- Streaming results
- No vendor lock-in
A minimal MCP server in 40 lines
Long-form copy in progress. The outline below is what this section will cover. Open the dashboard to see brocco run the patterns described here.
- Python
- Type signatures
- Returning structured output
Wiring it into Claude Desktop config
Long-form copy in progress. The outline below is what this section will cover. Open the dashboard to see brocco run the patterns described here.
- claude_desktop_config.json
- Env vars
- Restart and verify
How brocco maps 9 agents to MCP
Long-form copy in progress. The outline below is what this section will cover. Open the dashboard to see brocco run the patterns described here.
- One tool per agent
- Streaming SSE → MCP chunks
- BYOK passthrough
Try it for yourself
Run the workflow in this article inside /app. Demo mode runs without a key; bring your Anthropic key for live Claude calls.
