Lex
Lex is a TypeScript framework that provides situational memory and architecture awareness for AI agents, solving the problem of context loss in long - process development. Through memory snapshots, module dependency navigation, and architecture policy execution, it enables AI assistants to remember work progress and understand code structure.
rating : 2 points
downloads : 3.5K
What is Lex MCP Server?
Lex MCP Server is a server based on the Model Context Protocol (MCP), which exposes the memory and architecture awareness functions of the Lex framework to AI assistants. Through this server, AI assistants (such as Claude Desktop, Cursor, etc.) can access your work memory, code architecture information, and development specifications. In simple terms, it allows AI assistants to: - Remember what work you've done before - Understand the structure of your codebase - Know which code can be modified and which cannot - Adhere to the development specifications set by the teamHow to use Lex MCP Server?
Using Lex MCP Server is very simple and only requires three steps: 1. Install the Lex MCP package 2. Configure your AI assistant (VS Code or Claude Desktop) 3. Start a conversation with the AI assistant with memory After the server starts, the AI assistant will automatically gain 11 new tools, including memory search, architecture analysis, policy check, etc.Use cases
Lex MCP Server is particularly suitable for the following scenarios: - Long - term development projects: AI assistants can remember work done days or even weeks ago - Complex codebases: AI assistants can understand module dependencies - Team collaboration: Ensure that AI assistants adhere to team specifications - Onboarding of new team members: Quickly understand the project through historical memory - Architecture refactoring: AI assistants know which modules can be safely modifiedMain features
Memory management tools
Provide complete memory lifecycle management: create new memories, search historical memories, retrieve specific memories, list all memories, and verify memory formats. AI assistants can remember and recall work content like humans.
Architecture policy check
Check in real - time whether code modifications violate architecture specifications. AI assistants will check policies before suggesting modifications to prevent introducing architecture violations.
Architecture analysis
Analyze the dependencies and architecture context of code modules. AI assistants can understand the structure of the codebase and provide more accurate suggestions.
Timeline view
Visually display the development history of the project. AI assistants can see the evolution process of the work and understand why certain decisions were made.
System self - check
Check the server status and configuration. Ensure that the MCP server runs normally and detect configuration issues in a timely manner.
Help and tips
Provide usage guidance and context tips. Help users and AI assistants make better use of Lex's functions.
Advantages
Seamless integration: Seamlessly integrate with mainstream AI assistants (Claude Desktop, Cursor, etc.)
Zero - configuration memory: AI assistants automatically gain memory capabilities without additional configuration
Architecture security: Prevent AI assistants from violating important architecture specifications
Rich context: Provide accurate code context for AI assistants to avoid information overload
Cross - session persistence: Memories are retained after the AI assistant restarts
Standardized interface: Use the MCP standard protocol with good compatibility
Limitations
Requires a Node.js environment: The server needs Node.js 20+ to run
Initial configuration: Simple configuration steps are required for the first use
Text - only: Currently mainly handles text memories and does not support binary files
Depends on the Lex framework: The Lex framework needs to be installed first to use
Learning curve: Basic concepts of memory and policies need to be understood
How to use
Install the Lex MCP package
First, install the Lex MCP server package. You can choose to install it globally or run it directly using npx.
Configure VS Code
If you use VS Code, you need to create a.vscode/mcp.json configuration file in the project root directory.
Configure Claude Desktop
If you use Claude Desktop, you need to edit its configuration file to add the MCP server.
Start and use
After the configuration is completed, restart your AI assistant. Now the AI assistant can use all of Lex's tools.
Usage examples
Continue interrupted work
You were interrupted while implementing the user login function yesterday. When you come back today, the AI assistant can immediately recall yesterday's progress.
Refactor code safely
You want the AI assistant to help refactor the payment processing module but are worried that it doesn't know the architecture constraints.
Understand project history
You're new to the project and want to understand why a certain feature is implemented in a certain way.
Check architecture compliance
Before submitting the code, let the AI assistant check if there are any architecture violations.
Frequently Asked Questions
What's the difference between Lex MCP Server and Lex CLI?
Do I need to install both the Lex framework and Lex MCP?
Will the MCP server affect the response speed of the AI assistant?
Where is the memory data stored? Is it secure?
Can multiple AI assistants share the same memory?
What if the MCP server crashes?
Which AI assistants are supported?
How to update the architecture policy?
Related resources
Lex framework documentation
Complete documentation of the Lex framework, including installation, configuration, and usage guides
Model Context Protocol official website
Official documentation and specifications of the MCP protocol
Lex MCP npm package
npm package page of the Lex MCP Server
Example configuration files
Examples of various configuration files
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
24.4K
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
20.4K
4.5 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
34.3K
5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
71.9K
4.3 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#
31.1K
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
65.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
21.0K
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
48.6K
4.8 points



