skip to content

Nextcloud

An agent for the calendar, documents and files, for requests such as “what’s on Saturday?”.

MCP server github.com/cbcoutinho/nextcloud-mcp-server, in single-user mode
Transport Streamable HTTP
Authentication none

The server runs in its single-user mode.

In Compose, beside the server of Ambrogio, in single-user mode:

services:
nextcloud-mcp:
image: ghcr.io/cbcoutinho/nextcloud-mcp-server:0.221.1
environment:
NEXTCLOUD_HOST: http://<nextcloud-host>
NEXTCLOUD_USERNAME: ambrogio
NEXTCLOUD_PASSWORD: ${NEXTCLOUD_APP_PASSWORD:?}
MCP_DEPLOYMENT_MODE: single_user_basic

It serves Streamable HTTP on port 8000 at /mcp, so the server of Ambrogio reaches it at http://nextcloud-mcp:8000/mcp, the name of its Compose service on a network the two share; from another host, use the name or address of the host that runs it, with the same port and path.

NEXTCLOUD_USERNAME and NEXTCLOUD_PASSWORD are the one Nextcloud account the MCP server acts as, and an app password of it, created in Nextcloud, signed in as that user, under Settings, Security, Devices & sessions. The MCP server asks Ambrogio for no token: keep its port inside the network of Compose or of the home.

  1. Run the MCP server, as Run the MCP server shows.

  2. Add the agent file agents/nextcloud.json, with the address of the Streamable HTTP endpoint of the MCP server in mcp.url:

    {
    "description": "Answers the household's requests about the calendar, documents and files, with the tools of Nextcloud.",
    "instructions": "You handle the household's requests about the calendar, documents and files with the tools of Nextcloud. Requests may come from speech recognition and contain misheard words; interpret them in context. Answer briefly.",
    "llm": {
    "provider": "mistral",
    "model": "mistral-medium-latest",
    "apiKeyEnv": "MISTRAL_API_KEY"
    },
    "maxToolCalls": 4,
    "mcp": {
    "url": "http://nextcloud-mcp:8000/mcp"
    }
    }
  3. Restart with docker compose up -d.

Authentication: none: the MCP server asks for no token, so the agent file has no mcp.auth. The description, the instructions, the language model and maxToolCalls are an example: adapt them to the household. See Agents for every field of the file.