Memoria
Memoria is an MCP server that reveals hidden dependencies between code files by analyzing Git history, preventing AI from breaking functionality when refactoring code. It runs entirely locally without uploading code to the cloud, ensuring the security of code modifications by detecting coupling relationships, risk scores, and outdated dependencies between files.
rating : 2 points
downloads : 0
What is Memoria?
Memoria is an intelligent code analysis tool designed specifically for AI assistants. When you ask an AI to modify code, Memoria automatically analyzes the Git history to find files that are often modified together, even if they don't have direct import relationships. This is like adding 'code memory' to the AI, allowing it to know which files have hidden dependencies and thus avoid destructive modifications.How to use Memoria?
Memoria integrates with your AI tools through the MCP protocol. After installation, the AI will automatically call Memoria for analysis before modifying code. You can also manually ask the AI to analyze specific files. Memoria runs entirely locally, analyzing the history of your Git repository without uploading any code to the cloud.Use cases
Memoria is particularly suitable for the following scenarios: 1. When refactoring large codebases 2. When modifying API interfaces or data structures 3. In team collaborative development 4. When maintaining legacy code 5. Any scenario where you need to ensure that code modifications do not break existing functionalityMain features
Git history analysis
Analyze Git commit history to find files that are often modified together, even if they don't have direct import relationships
Risk assessment
Calculate a risk score for each file based on modification frequency, coupling degree, and number of dependencies
Dependency detection
Detect various types of dependencies: type coupling, environment variable coupling, API endpoint coupling, test file coupling, etc.
History search
Search Git history to understand why the code was written this way and solve the 'Chesterton's Fence' problem
Automatic check mode
Can be configured to automatically run analysis before each code modification as a mandatory security check
Command - line tools
Provide a complete set of CLI tools, supporting manual analysis and script integration
Advantages
Runs entirely locally, and the code never leaves your computer
No API key required, completely free to use
Supports offline work
Fast analysis, usually completed within 100 milliseconds
Supports multiple AI tools: Claude, Cursor, Windsurf, etc.
Provides detailed risk reports and modification suggestions
Limitations
Requires a Git repository with commit history
Limited analysis ability for brand - new files (without Git history)
Requires a Node.js 18+ environment
Some complex indirect dependencies may not be fully detected
How to use
Install Memoria
Choose the corresponding installation method according to the AI tool you use. The easiest way is to use one - click installation or copy the configuration to the MCP configuration file.
Restart the AI tool
After installation and configuration, you need to restart your AI tool (such as Claude Desktop, Cursor, etc.) to load the Memoria server.
Verify the installation
Ask the AI about available MCP tools and confirm that the analyze_file and ask_history tools are available.
Start using
Before modifying code, let the AI analyze the target file, or enable the automatic check mode to let the AI automatically analyze before each modification.
Usage examples
Refactoring API routes
You want to refactor an API route file but are not sure which client - side code depends on it.
Modifying data structures
You need to modify a TypeScript interface but are worried about breaking code elsewhere.
Solving mysterious bugs
A strange bug appears after modifying a file, and you want to understand the history of this file.
New feature development
You want to add a new feature and need to know which existing code may be affected.
Frequently Asked Questions
Will Memoria collect or upload my code?
Does Memoria need Git history to work?
Which AI tools does Memoria support?
Why can't I see the analyze_file tool after installation?
Will Memoria affect the response speed of the AI?
How to configure Memoria for a team project?
What types of dependencies can Memoria detect?
What is the automatic check mode? How to enable it?
Related resources
GitHub repository
The source code and latest version of Memoria
npm package page
npm package information and installation statistics of Memoria
MCP protocol official website
Official documentation of the Model Context Protocol
Smithery one - click installation
Install Memoria with one click through the Smithery platform
Problem feedback
Report bugs or propose feature suggestions

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
17.5K
4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
27.6K
5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
55.2K
4.3 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
17.6K
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
24.3K
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
52.4K
4.5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
17.2K
4.5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
76.7K
4.7 points

