MCP Hub
Back to servers

brain-mcp-server

An MCP server that provides tools for capturing, managing, and searching personal thoughts and knowledge entries through a Brain service integration. It supports both standard local I/O and remote SSE transport with OAuth 2.0 security.

Tools
5
Updated
Jan 11, 2026

Brain MCP Server

MCP server exposing Brain service operations as tools via FastMCP.

Tools

  • save_to_brain - Save thought with full metadata
  • quick_capture - Quick capture with auto-classification
  • search_brain - Search thoughts by text query
  • list_recent - List recent entries with filters
  • get_entry - Fetch specific entry by ID

Transports

  • stdio - Local development (default)
  • SSE - Remote access via HTTP (with OAuth 2.0 support)

For OAuth configuration and remote access setup, see OAUTH_SETUP.md.

Local Development

# Install dependencies
pip install -r requirements.txt

# Run with stdio transport
python brain_mcp_server.py

# Run with SSE transport
MCP_PORT=8084 MCP_TRANSPORT=sse python brain_mcp_server.py

# Test with MCP inspector
mcp dev brain_mcp_server.py

Docker Deployment

docker compose up -d

Builds from GitHub and runs with SSE transport on port 8084.

Environment Variables

VariableDefaultDescription
BRAIN_API_BASEhttps://n8n.gregslab.org/webhookn8n Brain webhooks URL
BRAIN_API_TIMEOUT30.0API timeout in seconds
MCP_TRANSPORTstdioTransport mode (stdio/sse)
MCP_PORT8084SSE server port
MCP_HOST0.0.0.0SSE server host
BASE_URLhttp://{MCP_HOST}:{MCP_PORT}Base URL for OAuth metadata
OAUTH_ENABLEDfalseEnable OAuth (advisory flag)

Reviews

No reviews yet

Sign in to write a review