mcp-ai-brain
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-ai-brainremember that the API uses GraphQL instead of REST"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π§ mcp-ai-brain
Persistent memory for AI coding agents. Local-first. Zero API costs. Works everywhere.
AI agents forget everything between sessions. mcp-ai-brain fixes that.
A Model Context Protocol (MCP) server that gives your AI agent a persistent, searchable, privacy-first memory β powered by SQLite, FTS5, and biological-inspired decay.
β¨ Features
Feature | Description |
π Hybrid Search | Keyword (FTS5) + local vector embeddings via |
𧬠Memory Decay | Ebbinghaus-inspired forgetting curve β unused memories lose relevance, critical ones never fade |
π Project Scoping | Memories are scoped to projects β your web app context stays separate from your CLI tool context |
π Privacy-First | Everything stays on your machine. No cloud. No API calls. Your |
β‘ Zero Cost | No embeddings API needed. Runs |
π€ Auto-Learning |
|
π― Proactive Context |
|
π Dashboard | Built-in web dashboard at |
π Universal | Works with Claude Desktop, Cursor, Windsurf, Cline, Antigravity, and any MCP-compatible tool |
Related MCP server: LumenCore
π Quick Start
Install
npm install -g mcp-ai-brainConfigure your AI tool
Add to your MCP config (e.g., claude_desktop_config.json, .cursor/mcp.json):
{
"mcpServers": {
"brain": {
"command": "mcp-ai-brain"
}
}
}That's it. Your AI now has a brain. π§
π οΈ Tools
brain_remember
Store a memory. Supports categorization, tagging, importance levels, and project scoping.
Categories: fact | decision | preference | architecture | bug | config | pattern | incident | workflow
Importance: critical (never decays) | high | normal | lowbrain_recall
Retrieve memories by project, category, or importance β without needing a search query.
brain_search
Hybrid search using keyword matching (FTS5) + local vector embeddings (all-MiniLM-L6-v2). Results fused with Reciprocal Rank Fusion β semantic similarity works out of the box once the model downloads (~25MB, one-time).
brain_forget
Soft-delete a memory. It's excluded from search but can be restored.
brain_session_start
Start a session β loads top memories for your project, runs decay maintenance, and returns context.
brain_session_end
End a session β records what happened and for how long.
brain_projects_*
Manage the project registry (list, upsert, get, delete).
brain_stats
Brain diagnostics β memory counts, category breakdown, database path, vector status.
𧬠How Decay Works
Memories follow a biological forgetting curve:
Grace Period (7 days): No decay. Fresh memories stay at full strength.
Active Decay: Score decreases based on importance weight and time since last access.
Access Resets Clock: Every time a memory is recalled or found in search, its decay resets.
Critical = Permanent: Set importance to
criticaland the memory never decays.Decayed β Deleted: Decayed memories can be restored with
brain_restore.
βοΈ Configuration
Environment Variable | Default | Description |
|
| Custom database file location |
ποΈ Architecture
βββββββββββββββββββββββββββββββββββ
β AI Agent (Claude, etc.) β
β via MCP Protocol β
ββββββββββββββ¬βββββββββββββββββββββ
β stdio
ββββββββββββββΌβββββββββββββββββββββ
β mcp-ai-brain server β
β ββββββββββββ βββββββββββββββ β
β β FTS5 β β MiniLM-L6v2 β β
β β (keyword)β β (local vec) β β
β ββββββ¬ββββββ ββββββββ¬βββββββ β
β β RRF Fusion β β
β βββββββββ¬βββββββββ β
β βββββββΌβββββββ β
β β SQLite DB β β
β β brain.db β β
β ββββββββββββββ β
β ββββββββββββββββββββββββββββ β
β β Decay Engine β β
β β (Ebbinghaus curve) β β
β ββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββ β
β β Auto-Learning (v1.1) β β
β β Session summary β facts β β
β ββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββπ What Your AI Agent Should Remember
Category | Example |
| "We chose NextJS over Remix because of Vercel deployment simplicity" |
| "Auth flow: Firebase Auth β Custom Claims β Middleware guard" |
| "Cron schedule: */10 * * * * (every 10 min, Vercel 300s timeout)" |
| "Safari iOS AudioContext requires user gesture β fixed with click handler" |
| "All Firestore writes use transactions for multi-tenant isolation" |
| "User prefers dark mode UI with Inter font family" |
| "2024-01-15: Stripe webhook double-firing caused duplicate charges" |
πΊοΈ Roadmap
v1.0 β Core memory + keyword search (FTS5) + Ebbinghaus decay engine
v1.1 β Local embeddings (
all-MiniLM-L6-v2via@xenova/transformers) + Auto-Learning + Proactive Context + Web Dashboardv1.2 β Multi-agent support + relationship graph between memories
v2.0 β Proactive suggestions + memory consolidation + export/import
π€ Contributing
PRs welcome! See CONTRIBUTING.md for guidelines.
π License
MIT β see LICENSE.
π Built With This
Real-world projects powered by mcp-ai-brain β demonstrating persistent AI memory in production:
Project | What It Does |
π€ Ace Your Interviews | AI-powered real-time voice mock interviews β the only tool that simulates a real phone screen |
π GeoQuote.ai | Instant contractor quoting platform β real-time pricing intelligence for homeowners |
Hilarious holiday t-shirts with AI-generated designs, updated daily | |
π ChairFull.org | Office chair reviews and buying guides β AI-researched, human-curated |
π° VaultNest.org | Personal finance guides β savings, investing, and financial independence |
π FleetShield.org | Commercial trucking insurance guides for fleet owners |
βοΈ DutyPilot.org | Import duty and customs tariff guides for international shoppers |
π ManualJPro.org | Product manual library β user guides and instruction manuals |
π Should I Buy It | AI buying-intent analysis β know before you spend |
Want your project listed here? Open a PR and add it to this table.
π€ About the Author
Built and maintained by Pravin Nawkar β a developer building AI-powered SaaS tools and content platforms.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/nawkarpravinp-bit/mcp-ai-brain'
If you have feedback or need assistance with the MCP directory API, please join our Discord server