← Guides

Give your agents tools

MCP servers for your skills, your notes, and your budget — run once, reachable from any MCP client.

On this page
  1. The stack
  2. 1. Skills: mcp-skills-manager
    1. Set up sign-in
    2. Connect a client
  3. 2. Your notes: mcp-ragdown
  4. 3. Your budget: mcp-actual (optional)
  5. Then: one endpoint instead of three
  6. Upgrading to 5

An MCP server is a set of tools any Model Context Protocol client can call — Claude Code, Claude Desktop, min-agent, task-server. The ones here are built to run on a server you own, over streamable HTTP, so you set each up once and every client on your network can use it.

Every one of them follows the same shape: a Docker container, an endpoint at /mcp that takes a bearer credential, and a web UI for anything that would otherwise be a config file. mcp-ragdown and mcp-actual each have one token. mcp-skills-manager has people sign in, and gives each client an API key of its own.

The stack #

One compose file runs all three, and a Postgres for mcp-skills-manager. Paste it into a new stack, or download it. Don't use Actual Budget? Delete the mcp-actual service.

Set these in the stack's environment; generate each secret and token with openssl rand -hex 32. mcp-ragdown and mcp-actual generate a token left empty and print it to their logs.

variable
PUBLIC_HOST the address other machines reach this one at; mcp-skills-manager builds its own URL from it
POSTGRES_PASSWORD mcp-skills-manager's Postgres
SKILLS_AUTH_SECRET mcp-skills-manager's session secret; keep it, a new one signs everybody out
RAGDOWN_TOKEN, ACTUAL_MCP_TOKEN the bearer token each client sends to those two
NOTES_DIR the Markdown folder mcp-ragdown indexes
ACTUAL_SERVER_URL, ACTUAL_PASSWORD, ACTUAL_SYNC_ID your Actual sync server and budget, for mcp-actual
server port endpoint
mcp-skills-manager 3100 /mcp
mcp-actual 3101 /mcp
mcp-ragdown 3102 /mcp/<folder>

The three servers are independent of each other, and each one checks its own credentials. Only mcp-skills-manager needs a database, on Postgres 18 or later; set SKILLS_DATABASE_URL to use your own.

Running this stack since before mcp-skills-manager 5? Read Upgrading to 5 before you redeploy it.

flowchart LR
    clients(["MCP clients<br/>Claude Code, min-agent,<br/>task-server, a router"])

    subgraph stack["mcp stack"]
        skills["mcp-skills-manager :3100<br/>skills"]
        ragdown["mcp-ragdown :3102<br/>your notes"]
        actual["mcp-actual :3101<br/>your budget"]
    end

    heautou["heautou<br/>personal cloud"]
    pg[("postgres")]
    notes[/"NOTES_DIR<br/>Markdown folder"/]
    actualsrv[("Actual sync server")]

    heautou -. "sign-in" .-> skills
    clients -- "API key, /mcp" --> skills
    clients -- "token, /mcp" --> ragdown
    clients -- "token, /mcp" --> actual
    skills --> pg
    notes --> ragdown
    actual --> actualsrv
mcp.yml — show the compose file
# Cubic Echo — MCP servers
# mcp-skills-manager, mcp-ragdown and mcp-actual, and a Postgres for the first.
# https://cubicecho.com/guides/mcp/
#
# Don't use Actual Budget? Delete the mcp-actual service and its volume.
#
# Set in the stack's environment (generate secrets and tokens with
# `openssl rand -hex 32`, and keep them):
#   PUBLIC_HOST             this machine's LAN address or hostname, e.g. 192.168.1.10
#   POSTGRES_PASSWORD
#   SKILLS_AUTH_SECRET      signs mcp-skills-manager's sessions
#   RAGDOWN_TOKEN, ACTUAL_MCP_TOKEN
#   NOTES_DIR               the Markdown folder mcp-ragdown indexes (default ./notes)
#   ACTUAL_SERVER_URL, ACTUAL_PASSWORD, ACTUAL_SYNC_ID   for mcp-actual
#
# mcp-ragdown and mcp-actual generate an empty token and print it to their logs.
# mcp-skills-manager has no token: people sign in (pair it with heautou, or set
# SKILLS_OIDC_*), and each MCP client gets an API key from its Settings.
#
# Upgrading a stack made before mcp-skills-manager 5? Read this first:
# https://cubicecho.com/guides/mcp/#upgrading-to-5
name: cubicecho-mcp

services:
  mcp-skills-manager:
    image: ghcr.io/cubicecho/mcp-skills-manager:latest
    restart: unless-stopped
    depends_on:
      postgres: { condition: service_healthy }
    environment:
      DATABASE_URL: ${SKILLS_DATABASE_URL:-postgres://cubicecho:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}@postgres:5432/mcp_skills}
      BETTER_AUTH_SECRET: ${SKILLS_AUTH_SECRET:?set SKILLS_AUTH_SECRET}
      APP_URL: ${SKILLS_URL:-http://${PUBLIC_HOST:-localhost}:${SKILLS_PORT:-3100}}
      OIDC_ISSUER: ${SKILLS_OIDC_ISSUER:-}   # or pair with heautou from the sign-in page
      OIDC_CLIENT_ID: ${SKILLS_OIDC_CLIENT_ID:-}
      OIDC_CLIENT_SECRET: ${SKILLS_OIDC_CLIENT_SECRET:-}
      OIDC_CLIENT_AUTH: ${SKILLS_OIDC_CLIENT_AUTH:-}
      OIDC_NAME: ${SKILLS_OIDC_NAME:-}
      SECURE_LOCAL_NET: ${SKILLS_SECURE_LOCAL_NET:-${SECURE_LOCAL_NET:-}}
      TRUST_PROXY: ${SKILLS_TRUST_PROXY:-false}
    ports:
      - "${SKILLS_PORT:-3100}:3000"
    volumes:
      - skills-data:/data

  mcp-ragdown:
    image: vantreeseba/mcp-ragdown:latest
    restart: unless-stopped
    environment:
      RAGDOWN_TOKEN: ${RAGDOWN_TOKEN:-}
      RAGDOWN_READ_ONLY: ${RAGDOWN_READ_ONLY:-false}
      RAGDOWN_PUBLIC_URL: ${RAGDOWN_PUBLIC_URL:-}
      SECURE_LOCAL_NET: ${SECURE_LOCAL_NET:-false}
    ports:
      - "${RAGDOWN_PORT:-3102}:3000"
    volumes:
      - ${NOTES_DIR:-./notes}:/docs
      - ragdown-data:/data

  mcp-actual:
    image: ghcr.io/cubicecho/mcp-actual:latest
    restart: unless-stopped
    environment:
      ACTUAL_SERVER_URL: ${ACTUAL_SERVER_URL:-}
      ACTUAL_PASSWORD: ${ACTUAL_PASSWORD:-}
      ACTUAL_SYNC_ID: ${ACTUAL_SYNC_ID:-}
      ACTUAL_ENCRYPTION_PASSWORD: ${ACTUAL_ENCRYPTION_PASSWORD:-}
      ACTUAL_ENABLE_WRITES: ${ACTUAL_ENABLE_WRITES:-}
      MCP_ACTUAL_TOKEN: ${ACTUAL_MCP_TOKEN:-}
      SECURE_LOCAL_NET: ${SECURE_LOCAL_NET:-}
      DATA_DIR: /data
    ports:
      - "${ACTUAL_MCP_PORT:-3101}:3000"
    volumes:
      - actual-data:/data

  # mcp-skills-manager needs Postgres 18 or later; the other two need none.
  postgres:
    image: postgres:18-alpine
    restart: unless-stopped
    environment:
      POSTGRES_USER: cubicecho
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_DB: cubicecho
    configs:
      - source: create-databases
        target: /docker-entrypoint-initdb.d/create-databases.sql
    volumes:
      - postgres-data:/var/lib/postgresql
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U cubicecho -d cubicecho"]
      interval: 5s
      timeout: 5s
      retries: 10

# Runs once, when the Postgres volume is first created.
configs:
  create-databases:
    content: |
      CREATE DATABASE mcp_skills;

volumes:
  skills-data:
  ragdown-data:
  actual-data:
  postgres-data:

1. Skills: mcp-skills-manager #

Start here. mcp-skills-manager serves skills — Markdown playbooks for how you want a kind of work done — to every agent, and gives you a web editor for them at http://<PUBLIC_HOST>:3100. Write a skill once and every client has it.

Set up sign-in #

Open http://<PUBLIC_HOST>:3100 within 15 minutes of its first start and pair it with heautou (or another provider that hands out setup URLs). In heautou, go to Clients → Pair an app, make a setup URL, and paste it on the sign-in page, as for the personal-cloud apps. Then sign in: the first person to sign in becomes the admin. Missed the 15 minutes? Restart the container and they start again.

Everyone your provider lets in can sign in, so use one you run or trust. To name a provider by hand instead, set SKILLS_OIDC_ISSUER, SKILLS_OIDC_CLIENT_ID and SKILLS_OIDC_CLIENT_SECRET, and register the redirect URI with it: the address above plus /api/auth/sso/callback/oidc. Set SKILLS_URL if people open it at another address, such as behind a reverse proxy.

No provider, and a network where you trust every device? Set SKILLS_SECURE_LOCAL_NET=true. Whoever opens the web UI is then signed in as an admin, and /mcp is open to anyone who can reach the port, with no key. Never do that on a server the internet can reach.

Connect a client #

Under Settings → API keys, make a key for each MCP client. It is shown once, and revoking it cuts off that client alone.

claude mcp add --transport http skills http://<PUBLIC_HOST>:3100/mcp \
  --header "Authorization: Bearer <API key>"

2. Your notes: mcp-ragdown #

mcp-ragdown indexes the Markdown in NOTES_DIR and gives agents hybrid search over it. Each top-level folder becomes its own MCP server, off until you turn it on under Settings → Folders:

claude mcp add --transport http ragdown-work http://<host>:3102/mcp/work \
  --header "Authorization: Bearer $RAGDOWN_TOKEN"

Add a before-turn hook that calls ragdown_context and related notes land in the prompt without the agent having to ask.

3. Your budget: mcp-actual (optional) #

If you run Actual Budget, mcp-actual opens one budget file and serves it. Set ACTUAL_ENABLE_WRITES=false and the tools that change the budget are not offered at all.

Then: one endpoint instead of three #

Three servers is three entries in every client's config, three credentials, and the same edit made three times when one moves. Put them behind mcp-router and each client gets one URL with exactly the tools it should have — Run your own AI infrastructure starts there. mcp-router can also discover mcp-skills-manager on the LAN, if you turn on its "Advertise on the local network" setting. In Docker that needs network_mode: host: it answers on port 3000, which SKILLS_URL has to say, and Postgres needs a published port that SKILLS_DATABASE_URL points at. Both sides of that are mcp-discovery, if you want your own servers found the same way.

The personal-cloud apps serve MCP endpoints too; see Start a personal cloud.

Upgrading to 5 #

mcp-skills-manager 5 keeps everything in Postgres and has no token. A stack made before it needs these steps; mcp-ragdown and mcp-actual don't change.

  1. Stop the stack and back up mcp-skills-manager's volume. It is cubicecho-mcp_skills-data, or starts with your stack's name if you gave it another.

  2. Give that volume to uid 1000. The container runs as node, where it ran as root, and stops at its first start if it can't read the old files. On the Docker host:

    docker run --rm -v cubicecho-mcp_skills-data:/data alpine chown -R 1000:1000 /data
    
  3. Set the new variables: PUBLIC_HOST, POSTGRES_PASSWORD and SKILLS_AUTH_SECRET. Remove SKILLS_TOKEN, which does nothing now.

  4. Take the new compose file and deploy, under the same stack name so it finds the same volume. The first start imports your skills, workspaces and settings, and renames the old files to *.imported.

  5. Set up sign-in within 15 minutes, then make an API key for each client and put it where the token was. Until then they get a 401. SECURE_LOCAL_NET=true still leaves /mcp open without one.

The README lists everything that changed, and how to go back.