Persistent AI agent brain MCP server providing embedded coding standards, automatic stack detection, and project memory that survives across conversations, with tools for retrieving standards, detecting tech stacks, saving/retrieving project context, and validating code.
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., "@Persistent AI agent brain MCP server providing embedded coding standards, automatic stack detection, and project memory that survives across conversations, with tools for retrieving standards, detecting tech stacks, saving/retrieving project context, and validating code.detect my stack and pull up the coding standards and project context"
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.
dev-brain-mcp
Your AI agent's persistent brain. Coding standards that never get forgotten, stack detection, and project memory that survives across conversations.
Inspired by ponytail, codebase-memory-mcp, and Graft.
The Problem
AI coding agents forget your rules in long conversations. Skills and instructions get truncated from the context window after many iterations. This MCP server solves that by:
Embedding rules in tool descriptions — tool descriptions live in the system prompt and NEVER get truncated
Detecting your stack automatically — no need to tell the agent "this is a React + RTK project" every time
Persistent project memory — notes, architectural decisions, and conventions survive across conversations
Related MCP server: dev-kit-mcp-server
Install
git clone https://github.com/YOUR_USERNAME/dev-brain-mcp.git
cd dev-brain-mcp
npm installSetup in Antigravity 2.0
Global Configuration (recommended)
Go to Settings → MCP Servers and add:
{
"mcpServers": {
"dev-brain": {
"command": "node",
"args": ["C:/Users/david/Documents/dev-brain-mcp/server.js"]
}
}
}⚠️ Update the path to wherever you cloned this repo.
Per-Project Configuration
Create .agents/mcp.json in your project root:
{
"mcpServers": {
"dev-brain": {
"command": "node",
"args": ["C:/path/to/dev-brain-mcp/server.js"]
}
}
}Other Agents (Claude Code, Cursor, etc.)
Add to your MCP config:
{
"mcpServers": {
"dev-brain": {
"command": "node",
"args": ["/path/to/dev-brain-mcp/server.js"]
}
}
}Tools
Tool | Description | When to use |
| Returns ponytail rules + stack-specific rules | Before writing code |
| Detects language, framework, dependencies | Start of every session |
| Retrieves persistent notes, decisions, conventions | Start of every conversation |
| Saves context that survives across sessions | After learning something important |
| Checks code against standards | After writing code |
| Lists all previously analyzed projects | When switching projects |
Why It Works
Skills (ponytail, RTK rules):
→ Instructions read into conversation context
→ Get TRUNCATED after ~30 iterations
→ Agent forgets them completely ❌
MCP Tool Descriptions:
→ Live in the system prompt alongside tool definitions
→ NEVER get truncated, no matter how long the conversation
→ Agent always sees them ✅
Persistent Memory (projects.json):
→ Stored on disk, survives across conversations
→ Agent retrieves context at start of each session
→ No re-exploration needed ✅Adding Your Own Rules
Edit lib/rules.js:
Universal rules: Add to
UNIVERSAL_RULES.principlesStack-specific rules: Add a new key to
CONDITIONAL_RULESValidation checks: Add patterns to
validateCode()
License
MIT
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.
Related MCP Servers
- MIT
- MIT
- MIT
Related MCP Connectors
Developer Feeds MCP.
Education Feeds MCP.
Science Feeds MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/dgsuyob/dev-brain-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server