# In Memoria

> Give AI coding assistants codebase memory across sessions.

- **URL**: https://followmcp.com/en/servers/in-memoria
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 175
- **FMRS Score**: 49/100 (Grade D)
- **Source**: https://github.com/pi22by7/In-Memoria
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 18+
- **Auth**: Optional API key

## Overview
In Memoria is an MCP server for persistent codebase intelligence. It analyzes a project and records patterns, architecture, conventions, and work context for AI assistants to query in later sessions. The project describes local-first storage and offers semantic search, project context, and file routing.

## Best for
- Developers who want AI assistants to retain codebase context across sessions.
- Codebases with consistent patterns where project summaries and code search are useful.

## Not for
- Users who do not use an MCP-capable client or do not want to configure a local server.
- Production workflows that require mature, polished software without early-stage rough edges.
- First-time analysis of very large codebases when fast completion is required; the README says initial analysis of projects with 100,000 or more files can be slow.

## Required permissions
- Needs access to analyze the selected codebase files; the README says build artifact directories are filtered automatically.
- Uses local persistent storage, including SQLite and SurrealDB/SurrealKV.
- The manifest lists an optional `OPENAI_API_KEY` for OpenAI embeddings, with local transformers.js as a fallback.

## Risks
- Analysis and pattern accuracy depend on codebase size and consistency; results may be weaker for small or inconsistent projects.
- The README describes the project as early-stage and notes that large codebases may take a long time to analyze initially and that documentation could improve.
- If an optional OpenAI API key is configured, embeddings use that service; the README otherwise describes local embeddings and says code stays on the machine.

## Client config (JSON)
```json
{"mcpServers":{"in-memoria":{"command":"npx","args":["in-memoria","server"]}}}
```

## Tools (13)
- `analyze_codebase`: Analyze files or directories for concepts, patterns, and complexity.
- `search_codebase`: Search the codebase by semantic meaning, text, or pattern.
- `learn_codebase_intelligence`: Learn patterns and architecture from the codebase.
- `get_project_blueprint`: Get an overview of the project's stack, entry points, and architecture.
- `get_semantic_insights`: Query learned concepts and their relationships.
- `get_pattern_recommendations`: Get pattern recommendations with related files.
- `predict_coding_approach`: Get implementation guidance and file routing based on learned information.
- `get_developer_profile`: Access coding style and work context.
- `contribute_insights`: Record architectural decisions.
- `auto_learn_if_needed`: Check whether learning data is stale and learn automatically when needed.
- `get_system_status`: Check system health.
- `get_intelligence_metrics`: View analytics on learned patterns.
- `get_performance_status`: View performance diagnostics.
