skip to content

Memos

An agent for notes, for requests such as “note that the boiler was serviced today”.

MCP server built into Memos, from its release 0.27.0
Transport Streamable HTTP
Authentication bearer: a personal access token of Memos

Memos serves the MCP server itself, from its release 0.27.0: no separate server runs.

Memos answers at /mcp on the port of its web interface, 5230 in its container image, at the address of the host that runs it, which only the installer knows: write that host in mcp.url below, such as http://memos:5230/mcp when Memos is a Compose service named memos on a network it shares with the server of Ambrogio.

  1. Use Memos 0.27.0 or later: its MCP server is built in and needs no setting.

  2. Create the token in Memos, under Settings, Access tokens, write it in .env as MEMOS_TOKEN, and pass the variable to the server of Ambrogio in compose.yaml:

    services:
    server:
    environment:
    MEMOS_TOKEN: ${MEMOS_TOKEN:?}
  3. Add the agent file agents/memos.json, with the address of the Streamable HTTP endpoint of the MCP server in mcp.url:

    {
    "description": "Answers the household's requests about notes, with the tools of Memos.",
    "instructions": "You handle the household's requests about notes with the tools of Memos. 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://<memos-host>:5230/mcp",
    "auth": {
    "type": "bearer",
    "tokenEnv": "MEMOS_TOKEN"
    }
    }
    }
  4. Restart with docker compose up -d.

Authentication: a bearer token: a personal access token of Memos, which the agent file names through the variable MEMOS_TOKEN. 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.