mcp-brain
Provides tools for reading Google Calendar events, creating new events, and listing the user's calendars.
Provides tools for browsing and reading files stored in a Nextcloud instance, so an AI client can pull notes and documents into context.
Provides tools for reading and creating Todoist tasks and listing the user's projects and sections.
Provides tools for reading Trello boards, lists and cards, and for adding new cards to a board.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
BrainVlt — mcp-brain
Persistent AI memory you own and control.
Give Claude, Cursor, and every other AI client a persistent memory that travels with you — self-hosted, version-controlled, and never uploaded to any third-party cloud.
Website · Docs · Quick start
What is it?
mcp-brain is a personal Model Context Protocol server. Every MCP-compatible AI client — Claude Code, claude.ai, Cursor, Windsurf, custom GPTs, n8n — can read from and write to a shared knowledge store as long as it holds a valid token.
Your notes stay in plain-text markdown files on a machine you control. A git repository inside the container tracks every change with a full audit trail. Nothing leaves your host.
Related MCP server: agent-memory-server
Features
Feature | Description | |
🧠 | Knowledge base | Markdown files with H2 sections; file-locked section-level updates; git auto-commit on every write |
📥 | Inbox | Staging area for scraped or draft info — always human-reviewed before it lands in the KB |
⚡ | Briefing | Session bootstrap: one call loads your personal context so the AI never starts cold |
🔑 | Secrets schema | Tells the AI which secrets exist and where; never stores the values themselves |
🔒 | Multi-token auth | Fine-grained per-scope bearer tokens — Claude Code gets |
🌐 | OAuth 2.1 server | DCR + PKCE + rotating refresh tokens so claude.ai Custom Connectors work without static headers |
📋 | Todoist integration | Read and create tasks; list projects and sections |
📅 | Google Calendar | Read events, create events, list calendars |
📝 | Nextcloud Notes | Browse and read your Nextcloud files |
🗂 | Trello | Read boards, lists, and cards; add cards |
📊 | Structured logging | JSON tool-call log per request: token id, tool name, duration, HTTP status |
♻️ | Hot-reload auth | Edit |
Supported AI clients
Client | Transport | How to connect |
Claude Code (CLI) | Streamable HTTP | |
claude.ai (web / iOS / Android / desktop) | OAuth 2.1 | |
Cursor | Streamable HTTP | MCP settings — bearer header |
Windsurf | Streamable HTTP | MCP settings — bearer header |
ChatGPT / custom GPTs | Streamable HTTP | Plugin manifest — bearer header |
n8n | Streamable HTTP | MCP node — bearer header |
Any MCP client | Streamable HTTP | One URL + one header |
Quick start (any Docker host)
Runs on any Linux, macOS, or Windows machine with Docker Compose installed.
# 1. Grab the compose file and env template
curl -fsSL https://raw.githubusercontent.com/RyKaT07/mcp-brain/main/docker-compose.yml -o docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/RyKaT07/mcp-brain/main/.env.example -o .env
# 2. Generate the required admin secret
echo "MCP_OAUTH_ADMIN_SECRET=$(openssl rand -hex 32)" >> .env
# 3. Create a minimal auth file
mkdir -p data
cat > data/auth.yaml <<'EOF'
tokens:
- id: my-claude-code
token: "tok_changeme_replace_with_openssl_rand_hex_32"
scopes: ["*"]
EOF
# 4. Start
docker compose pull && docker compose up -d
# 5. Verify
curl http://127.0.0.1:8400/healthz
# → {"status":"ok"}Port 8400 binds to 127.0.0.1 by default. Put Caddy, Traefik, or nginx with TLS in front before exposing it remotely. Full guide: docs/deployment.md.
Quick start (Proxmox VE)
One command on the Proxmox host shell provisions a fresh Debian LXC with Docker and mcp-brain already running:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/RyKaT07/mcp-brain/main/scripts/proxmox-install.sh)"Or on any existing Debian/Ubuntu box:
bash <(curl -fsSL https://raw.githubusercontent.com/RyKaT07/mcp-brain/main/scripts/install.sh)Full walkthrough: docs/deployment.md.
Connect from Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"brain": {
"type": "http",
"url": "https://mcp.yourdomain.tld/mcp",
"headers": {
"Authorization": "Bearer tok_YOUR_TOKEN"
}
}
}
}Connect from claude.ai (web / iOS / Android / desktop)
Customize → Connectors → Add custom connector (Pro/Max) or Organization settings → Connectors (Team/Enterprise)
URL:
https://mcp.yourdomain.tld/mcpLeave
OAuth Client IDandOAuth Client Secretempty — Dynamic Client Registration handles this automaticallyClick Add → your browser opens the consent page → enter your
MCP_OAUTH_ADMIN_SECRET→ AuthorizeIn a new chat, click + → Connectors and toggle mcp-brain on
Done. Works across every Claude surface on the same account.
Full setup guide: docs/claude-setup.md · OAuth reference: docs/auth.md.
Auth — per-scope bearer tokens
Edit /opt/mcp-brain/data/auth.yaml (hot-reloads within 5 s):
tokens:
- id: claude-code-laptop
token: "tok_..."
scopes: ["*"] # full access
- id: cursor-school
token: "tok_..."
scopes:
- knowledge:read:school
- knowledge:write:school
- inbox:read
- briefing:school
- id: n8n-homelab-ro
token: "tok_..."
scopes:
- knowledge:read:homelab
- briefing:homelab
- secrets_schema:homelabFull scope grammar: docs/auth.md.
Tools
Tool | Required scope |
|
|
|
|
|
|
| filtered by |
|
|
|
|
|
|
|
|
|
|
|
|
| filtered by |
| filtered by |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Architecture
Claude Code / claude.ai / Cursor / ChatGPT / n8n
│ HTTPS + Bearer token (or OAuth 2.1)
▼
Caddy (TLS termination)
│
▼
mcp-brain (FastMCP, Streamable HTTP)
├── /mcp ← MCP endpoint
├── /healthz ← Docker HEALTHCHECK
├── /oauth/* ← OAuth 2.1 authorization server
└── /admin/* ← API key management (optional)
Data (bind-mounted volumes):
├── data/knowledge/ ← markdown KB, git-tracked
├── data/auth.yaml ← bearer tokens (hot-reloaded)
└── data/oauth-state.jsonDevelopment (local, without Docker)
git clone https://github.com/RyKaT07/mcp-brain.git
cd mcp-brain
python3.12 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
cp config/auth.yaml.example config/auth.yaml # edit tokens
cp knowledge/meta.yaml.example knowledge/meta.yaml
# stdio mode — auth bypassed, great for local testing
MCP_TRANSPORT=stdio mcp-brain
# Streamable HTTP with auth (default)
MCP_AUTH_CONFIG=config/auth.yaml mcp-brain
# Run tests
pytestWrite policy (optional)
If knowledge/_meta/write-policy.md exists, its contents are injected into the MCP InitializeResult.instructions and seen by every connected client. Use it to encode rules like "propose before writing" or "announce saves in a footer".
An optional ## Tool policy H2 in the same file is prepended to the knowledge_update tool description — a second channel that reaches clients that silently ignore instructions (observed with claude.ai web).
Template: docs/write-policy.example.md.
Powered by BrainVlt
Using mcp-brain in your project? Add the badge:
[](https://brainvlt.com)Update
sudo bash /opt/mcp-brain/scripts/install.sh updateKnowledge and tokens live in bind-mounted volumes — rollbacks are safe.
Claude Marketplace
mcp-brain is available on the Claude Code marketplace. The plugin manifest lives in .claude-plugin/marketplace.json.
Install via marketplace
Search for mcp-brain in the Claude Code marketplace and follow the prompts. You will be asked to provide:
BRAIN_URL— the base URL of your running mcp-brain instance (e.g.https://api.brainvlt.com)BRAIN_TOKEN— a bearer token from yourdata/auth.yaml
Manual install (Claude Code CLI)
Add to your ~/.claude.json:
{
"mcpServers": {
"brain": {
"type": "http",
"url": "https://<your-domain>/mcp",
"headers": {
"Authorization": "Bearer <your-token>"
}
}
}
}See docs/claude-setup.md for the full setup guide including OAuth for claude.ai.
License
Licensed under PolyForm Noncommercial 1.0.0.
✅ Personal use, hobby projects, research, education
✅ Non-profits, educational institutions, government
✅ Reading, studying, forking for personal non-commercial use
❌ Production use inside a for-profit company or commercial product
❌ Bundling into a paid service without a commercial license
Commercial licensing inquiries: open an issue. Contribution guidelines: CONTRIBUTING.md.
Use at your own risk — no warranty of any kind.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
One memory, every AI. A shared, user-owned markdown memory your AI clients read and write over MCP.
Hosted memory for AI assistants: a knowledge graph over MCP with OAuth. Hosted in Germany.
Persistent, portable memory for AI assistants — your private memory graph, from any MCP client.
AI second brain for people who coordinate several projects. Search and write to your daily notes, tasks and boards, calendar, meeting recaps, documents, clips and an Atlas of people, organizations and projects from Claude, ChatGPT or any MCP client. Free plan, OAuth sign-in.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA dynamic, governed memory layer for Markdown notes that serves knowledge to AI clients and humans through a secure MCP server, with scoped access, git-audited changes, and optional LLM-powered semantic search.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to persist and share durable memory — appending session logs with checkpoints and handoffs, claiming and completing tasks, and recording decision records — all stored as plain Markdown and JSONL files in a git repository. Everything written is full-text searchable, and the server speaks MCP so MCP-aware clients can plug in directly with zero vendor lock-in.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-capable AI clients to read and write a self-hosted todo list, quick memos, and a plain-Markdown knowledge base through 16 tools covering search, tasks, notes, and identity checks. Tool visibility is scoped per API key with directory-level permissions, and every call is audit-logged.5MIT
- AlicenseAqualityAmaintenanceEnables any MCP-capable LLM to use a private, self-hosted persistent brain with categorized memory, skills, tools, devices, email, calendar, webhooks, scheduled jobs, encrypted secrets, and per-user areas.1110Apache 2.0