Skip to main content
Glama

brain-mcp

Experimental MCP server wrapping brain-cli's brain.py (personal knowledge DB at ~/brain.db, or $BRAIN_DB) as 6 MCP tools: brain_save, brain_search, brain_get, brain_context, brain_link, brain_feedback. Built with FastMCP.

brain.py itself is not modified. All adaptation (stdout-capture guard, Namespace synthesis, error shaping) lives in brain_mcp/adapter.py and brain_mcp/server.py.

Status: local prototype, both transports smoke-tested manually. No auth, no deployment yet — see brain-cli for the underlying CLI and schema.

Setup

Clone this repo next to brain-cli (the pyproject.toml path-depends on ../brain-cli):

git clone https://github.com/victorsabino/brain-cli.git
git clone https://github.com/victorsabino/brain-mcp.git
cd brain-mcp && uv sync

Related MCP server: Hoard

Run

# stdio (default)
uv run --directory . brain-mcp
# or, for the inspector:
fastmcp dev brain_mcp/server.py

# streamable-http
BRAIN_MCP_TRANSPORT=http BRAIN_MCP_HOST=127.0.0.1 BRAIN_MCP_PORT=8000 \
  uv run --directory . brain-mcp
# serves at http://127.0.0.1:8000/mcp

BRAIN_DB overrides the default ~/brain.db — set it before starting the server.

Out of scope (CLI-only, not exposed as MCP tools)

migrate, reindex, consolidate, delete, update, invalidate, harvest, review, reconcile, anchor, artifact, secrets, block, doctor, stats, recent, history, tags.

A
license - permissive license
-
quality - not tested
F
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.

  • Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.

  • User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/victorsabino/brain-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server