In-Memoria
by pi22by7·★ 168·Score 47
MCP server that learns code patterns and provides persistent memory for AI assistants.
Overview
In Memoria is an MCP server built in Rust that learns from actual codebases and remembers across sessions. It analyzes patterns, architecture, and conventions to provide context-aware assistance to AI coding tools. The system combines Tree-sitter AST parsing for 12 languages with semantic analysis and pattern learning, storing data locally in SQLite and SurrealDB. It offers 13 specialized tools for AI assistants, including project blueprints, smart file routing, and pattern prediction.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose In-Memoria when you need an AI assistant that remembers your project-specific patterns and conventions across coding sessions, especially when working with Claude or GitHub Copilot.
When NOT to choose this
Don't choose In-Memoria if you need cloud-based AI assistance with multi-project support, as it's designed for local-only, single-project codebases.
Tools this server exposes
12 tools extracted from the READMEanalyze_codebaseAnalyze files/directories with concepts, patterns, complexity
search_codebaseMulti-mode search (semantic/text/pattern)
learn_codebase_intelligenceDeep learning to extract patterns and architecture
get_project_blueprintInstant project context with tech stack and entry points
get_semantic_insightsQuery learned concepts and relationships
get_pattern_recommendationsGet patterns with related files for consistency
predict_coding_approachImplementation guidance with file routing
get_developer_profileAccess coding style and work context
contribute_insightsRecord architectural decisions
auto_learn_if_neededSmart auto-learning with staleness detection
get_system_statusHealth check
get_intelligence_metricsAnalytics on learned patterns
Comparable tools
Installation
Installation
# Install globally
npm install -g in-memoria
# Or use directly with npx
npx in-memoria --helpClaude Desktop Integration
Add to your config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"in-memoria": {
"command": "npx",
"args": ["in-memoria", "server"]
}
}
}FAQ
- What programming languages does In Memoria support?
- Currently supports 12 languages: TypeScript, JavaScript, Python, PHP, Rust, Go, Java, C/C++, C#, Svelte, and SQL.
- How does it store data?
- Uses SQLite for structured data patterns and metadata, and SurrealDB with SurrealKV backend for persistent vector embeddings. Everything stays on your machine.
On Hacker News
Recent discussion from the developer community.
- Story by pi_22by7 · 2025-08-19
- Story by pi_22by7 · 2025-08-31
- Story by pi_22by7 · 2025-11-04
Compare In-Memoria with
Last updated · Auto-generated from public README + GitHub signals.