ArchMemory MCP
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.
ArchMemory MCP
Give AI coding agents a memory of your architecture.
Open source MCP server built with Laravel that gives AI coding agents (Cursor, Claude Code, etc.) structured access to your project's architecture, rules, modules, and technical decisions.
Features (MVP)
5 MCP Tools — project context, rules, modules, ADRs, change validation
Artisan CLI — init, analyze, update
.archmemory/storage — Markdown + JSON, Git-versionableRules Engine — validates code changes against architecture rules
DDD Architecture — Memory, Mcp, Rules, Analysis domains
Related MCP server: projscan
Quick Start
composer install
cp .env.example .env
php artisan key:generate
# Initialize architecture memory (if not already present)
php artisan archmemory:init
# Analyze project and update architecture.md
php artisan archmemory:analyzeCursor Integration
Add to .cursor/mcp.json (included in this repo):
{
"mcpServers": {
"archmemory": {
"command": "php",
"args": ["artisan", "mcp:start", "archmemory"],
"cwd": "${workspaceFolder}",
"env": {
"ARCHMEMORY_PATH": "${workspaceFolder}/.archmemory"
}
}
}
}Then restart Cursor. The agent can call:
Tool | Description |
| Project stack, architecture, rules summary |
| Full rules from |
| Module details and dependencies |
| ADR decision records |
| Check code against architecture rules |
Artisan Commands
php artisan archmemory:init # Create .archmemory/ structure
php artisan archmemory:analyze # Generate architecture.md from project
php artisan archmemory:update # Refresh context after changes
php artisan mcp:start archmemory # Start MCP stdio serverProject Structure
app/Domains/
├── Memory/ # Read/write .archmemory files
├── Mcp/ # MCP server + tools
├── Rules/ # Rules engine
└── Analysis/ # Project analyzer
.archmemory/ # Architecture memory (committed to Git)
docs/ # Design documentsDocumentation
PROJECT_CONTEXT.md — Full project specification
architecture-design.md — System architecture
mcp-tools-design.md — MCP tool specs
Testing
php artisan test # 32 tests
vendor/bin/pint --test # Code style check
vendor/bin/pint # Auto-fix styleCI runs on push via GitHub Actions (.github/workflows/tests.yml).
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server for AI agent profiles and smart notes. 60+ coding prompt packs with expert personas.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents structured code understanding and precise code intelligence via local indexing of AST, call graphs, and semantic search.77 npm4Apache 2.0
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides AI coding agents with AST-accurate, context-budget-aware codebase querying, safety gates, and team policy integration via structured tools and a local plugin layer.112 npm4MIT
- AlicenseAqualityDmaintenanceAn MCP server that helps AI agents comprehend a codebase by providing tools for navigating, searching, and understanding code structure and history.10MIT
- AlicenseBqualityDmaintenanceMCP server that gives AI coding assistants persistent memory, structural code graph analysis, and safe multi-agent coordination, enabling them to answer architectural questions, track decisions across sessions, and coordinate safely in multi-agent workflows.394MIT