Basic information
About In Memoria MCP Server
In Memoria delivers persistent code analysis via hybrid Rust-TypeScript, using Tree-sitter for abstract syntax tree Python insights and behavior tracking.
In Memoria is a MCP server in the Ai Ml category listed in the AddMCP.net directory, published by pi22by7. It exposes 14 tools, including analyze_codebase, search_codebase, learn_codebase_intelligence, get_semantic_insights and more. Supported transport: stdio. Runtime: Rust. License: MIT. The repository has 156 GitHub stars. Source code is hosted on github.com. Related topics: ai-agents, ai-assistant, ai-ml, ai-tools, code-analysis.
Setup
{
"mcpServers": {
"in-memoria": {
"command": "npx",
"args": [
"in-memoria",
"server"
]
}
}
}
{
"mcpServers": {
"in-memoria": {
"command": "npx",
"args": [
"in-memoria",
"server"
]
}
}
}
{
"servers": {
"in-memoria": {
"command": "npx",
"args": [
"in-memoria",
"server"
]
}
}
}
In Memoria MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"in-memoria": {
"command": "npx",
"args": [
"in-memoria",
"server"
]
}
}
}
In Memoria MCP Server tools
- analyze_codebase — One-time analysis of a specific file or directory. Returns AST structure, complexity metrics, and detected patterns for that path only. For project-wide understanding, use get_project_blueprint instead (faster, uses learned intelligence). Use this for deep-dive analysis of a specific file you're currently working on.
- search_codebase — Search for code by text matching or patterns. Use "text" type for finding specific strings/keywords in code. Use "pattern" type for regex/AST patterns. Note: For "where should I work?" or "what files to modify?" questions, use predict_coding_approach instead - it provides intelligent file routing without exploration.
- learn_codebase_intelligence — Build intelligence database from codebase (one-time setup, ~30-60s). Required before using predict_coding_approach, get_project_blueprint, or get_pattern_recommendations. Re-run with force=true if codebase has significant changes. Most users should use auto_learn_if_needed instead - it runs this automatically when needed.
- get_semantic_insights — Search for code-level symbols (variables, functions, classes) by name and see their relationships, usage patterns, and evolution. Use this to find where a specific function/class is defined, how it's used, or what it depends on. Searches actual code identifiers (e.g., "DatabaseConnection", "processRequest"), NOT business concepts or natural language descriptions.
- get_pattern_recommendations — Get coding pattern recommendations learned from this codebase. Use this when implementing new features to follow existing patterns (e.g., "create a new service class", "add API endpoint"). Returns patterns like Factory, Singleton, DependencyInjection with confidence scores and actual examples from your code. These patterns are learned from the codebase, not hardcoded - they reflect how THIS project does things.
- predict_coding_approach — Find which files to modify for a task using intelligent file routing. Use this when the user asks "where should I...", "what files...", or "how do I add/implement..." to route them directly to the relevant files without exploration. Returns target files, suggested starting point, and reasoning based on feature mapping and codebase intelligence.
- get_developer_profile — Get patterns and conventions learned from this codebase's code style. Shows frequently-used patterns (DI, Factory, etc.), naming conventions, and architectural preferences. Use this to understand "how we do things here" before writing new code. Note: This is about the codebase's style, not individual developers.
- contribute_insights — Let AI agents save discovered insights (bug patterns, optimizations, best practices) back to In-Memoria for future reference. Use this when you discover a recurring pattern, potential bug, or refactoring opportunity that other agents/sessions should know about. Creates organizational memory across conversations.
- auto_learn_if_needed — Automatically learn from codebase if intelligence data is missing or stale. Call this first before using other In-Memoria tools - it's a no-op if data already exists. Includes project setup and verification. Perfect for seamless agent integration.
- get_system_status — Get comprehensive system status including intelligence data, performance metrics, and health indicators
- get_intelligence_metrics — Get detailed metrics about the intelligence database and learning state
- get_performance_status — Get performance metrics including database size, query times, and resource usage
- get_project_blueprint — Get instant project blueprint - eliminates cold start exploration by providing tech stack, entry points, key directories, and architecture overview
- health_check — Verify In-Memoria setup and configuration for a project. Checks database accessibility, project structure, and API keys.
Overview
What is In Memoria?
In Memoria is an MCP (Model Context Protocol) server that gives AI coding assistants persistent memory across sessions by learning from your codebase's patterns, architecture, conventions, and decisions.
How to use In Memoria?
Install the npm package in-memoria and configure it as an MCP server for your AI coding assistant (e.g., Claude, Copilot, Cursor). Once configured, the server automatically learns from your codebase and provides context to the AI during sessions.
Key features of In Memoria
- Persists codebase knowledge across AI sessions
- Learns patterns, architecture, conventions, and decisions
- Integrates via the Model Context Protocol (MCP)
- Reduces token waste by avoiding re-analysis
- Eliminates repetitive explanations to AI assistants
Use cases of In Memoria
- Maintain architectural decisions across multiple coding sessions
- Provide instant context on naming conventions and code style
- Prevent AI from suggesting rejected patterns or decisions
- Speed up onboarding of AI assistants to large codebases
Frequently asked questions
1 What problem does In Memoria solve?
Every AI coding session starts from scratch, forcing users to repeatedly explain conventions, architecture, and decisions. In Memoria eliminates this "session amnesia" by remembering across sessions.
2 How does In Memoria work?
It acts as an MCP server that learns from your actual codebase—patterns, architecture, conventions, and decisions—and stores them persistently so AI assistants can query that knowledge on demand.
3 Which AI coding assistants does In Memoria support?
In Memoria works with any AI assistant that supports the Model Context Protocol, such as Claude, GitHub Copilot, and Cursor.
4 What are the runtime dependencies for In Memoria?
In Memoria is a Node.js package available on npm. You need a Node.js runtime and an MCP-compatible AI coding assistant host.
5 What kind of knowledge does In Memoria learn?
It learns patterns, architecture, conventions, and decisions from your codebase, including what works, what was rejected, and why—so the AI doesn't repeat mistakes.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In