Agents
An MCP connector is a specialized agent of Ambrogio that uses the tools of one MCP server. Ambrogio connects to every MCP server over the Streamable HTTP transport, with a bearer token when the server asks for one.
Configure a connector
Section titled “Configure a connector”A connector is one agent file in the agents folder of the installation (see
Installation and configuration), named after the agent in lowercase
letters, digits and hyphens, such as agents/home-assistant.json. Besides the description, the
instructions and the language model of every specialized agent, it has:
mcp.url: thehttporhttpsaddress of the Streamable HTTP endpoint of the MCP server.mcp.auth, only for a server that asks for a bearer token:{ "type": "bearer", "tokenEnv": "<VARIABLE>" }, wheretokenEnvnames the environment variable that holds the token, never the token itself.mcp.tools, optional: the tools of the server that the agent may use; all of them when absent.maxToolCalls, required withmcp: how many times, at most, the agent may call a tool for one turn.
The orchestrator reads the description of each agent to choose the one that answers a message:
write there what the agent answers.
For a server with a bearer token, set the token in .env and pass the variable to the server, in
the environment of the server service of compose.yaml, beside MISTRAL_API_KEY:
services: server: environment: HOME_ASSISTANT_TOKEN: ${HOME_ASSISTANT_TOKEN:?}Then restart with docker compose up -d. The server reads the agent files once at start, and does
not start when a file is not valid or a variable it names is missing; when an MCP server cannot be
reached, it tries again, waiting longer after each failure.
The examples
Section titled “The examples”| Service | MCP server | Authentication |
|---|---|---|
| Home Assistant | built into Home Assistant, the mcp_server integration, at /api/mcp |
bearer: a long-lived access token |
| Music Assistant | github.com/devjourney/music-assistant-mcp |
none |
| OpenCloud | github.com/adrianofoschi/opencloud-mcp |
bearer |
| Immich | github.com/drolosoft/immich-photo-manager |
none |
| Nextcloud | github.com/cbcoutinho/nextcloud-mcp-server, single-user mode |
none |
| Radicale | github.com/dominik1001/caldav-mcp |
bearer |
| Baïkal | github.com/dominik1001/caldav-mcp |
bearer |
| openGym | github.com/DuarteSantos8/openGym, docs/MCP_REMOTE.md |
bearer |
| wger | github.com/wger-project/mcp-server |
bearer |
| Mealie | github.com/rldiao/mealie-mcp-server |
none |
| Grocy | github.com/miguelangel-nubla/mcp-grocy |
bearer |
| Paperless-ngx | github.com/tb1337/paperless-mcp |
bearer |
| Jellyfin | github.com/Knuckles-Team/jellyfin-mcp |
none |
| Actual Budget | github.com/agigante80/actual-mcp-server |
bearer |
| Firefly III | github.com/YakupEmreYerli/mcp-firefly-iii |
bearer |
| Todoist | github.com/Doist/todoist-mcp, run by the installer |
none |
| Memos | built into Memos from release 0.27.0 | bearer: a personal access token |
| TriliumNext | github.com/perfectra1n/triliumnext-mcp |
bearer |
| Joplin | github.com/alondmnt/joplin-mcp, through the Web Clipper service of Joplin Desktop |
none |
Any other MCP server reachable over Streamable HTTP is connected the same way.
A ready-made example
Section titled “A ready-made example”ambrogio-homelab-example is a Docker
Compose project that stands up Ambrogio together with seventeen of these services at once, each
with its MCP server and its agent file already written; Joplin and Todoist, whose MCP servers run
on a computer of the home rather than in Compose, are set up by hand, as its README explains. It is
not part of Ambrogio and not required to run it — a starting point to copy and adapt, keeping the
services you use and removing the others.