MCP Clients
Any AI assistant that can start a local program to speak MCP with can use flockmcp. The assistant is told the command to run and its arguments. The Model Context Protocol calls any program that offers tools to an assistant an "MCP server", so that is the name assistants use in their settings and commands, as in mcpServers below. It does not mean a service that is left running: the assistant starts flockmcp and stops it. The command is the same for every assistant:
/usr/bin/flockmcp --daemon r1=http://192.0.2.1:50051 --daemon r2=http://192.0.2.2:50051
The name the assistant knows flockmcp by, flock in these examples, is yours to choose.
Each assistant has its own way of being told. Those below are examples: see the assistant's own documentation for where its configuration is kept and how it asks before calling a tool.
Claude Code
$ claude mcp add flock -- /usr/bin/flockmcp \
--daemon r1=http://192.0.2.1:50051 \
--daemon r2=http://192.0.2.2:50051
$ claude mcp list
OpenAI Codex CLI
$ codex mcp add flock -- /usr/bin/flockmcp \
--daemon r1=http://192.0.2.1:50051 \
--daemon r2=http://192.0.2.2:50051
$ codex mcp list
or in ~/.codex/config.toml:
[mcp_servers.flock]
command = "/usr/bin/flockmcp"
args = ["--daemon", "r1=http://192.0.2.1:50051", "--daemon", "r2=http://192.0.2.2:50051"]
Google Gemini CLI
In ~/.gemini/settings.json:
{
"mcpServers": {
"flock": {
"command": "/usr/bin/flockmcp",
"args": [
"--daemon", "r1=http://192.0.2.1:50051",
"--daemon", "r2=http://192.0.2.2:50051"
]
}
}
}
An open model run locally, with Ollama and MCPHost
An assistant need not be a hosted service. An open model run on your own hardware works too, which keeps the routers' state on your network. Ollama runs the model, and MCPHost, an open source MCP client, connects it to flockmcp.
In ~/.mcphost.json:
{
"mcpServers": {
"flock": {
"command": "/usr/bin/flockmcp",
"args": [
"--daemon", "r1=http://192.0.2.1:50051",
"--daemon", "r2=http://192.0.2.2:50051"
]
}
}
}
Fetch a model and start the assistant:
$ ollama pull qwen3
$ mcphost -m ollama:qwen3
The model must be one that supports tool calling. A small model chooses tools and reads their answers less reliably than a large one: ask it one thing at a time, and name the router.
Other assistants
Most other assistants take the same command and args, in a JSON object like the one above.
An MCP server reached by URL
An assistant that connects to an MCP server by URL, rather than starting one, uses flockmcpd instead. The routers are named in flockmcpd's configuration file, and the assistant is told only the URL. With the defaults, on the same host:
$ claude mcp add --transport http flock http://[::1]:8650/mcp
Other assistants take the URL in their own settings, often as url where a started server has command. The transport is the one MCP calls "streamable HTTP".
Checking the assistant can see the routers
Ask the assistant which routers it can see. It calls list_daemons, which names each router and says whether it can be reached and whether its version is one this flockmcp or flockmcpd talks to.