rlm-mcp
Transforms your local repository into a shared project brain using recursive reasoning and local LLMs to analyze, reason, and remember project architecture.
README
rlm-mcp: The Recursive Project Brain
rlm-mcp is an advanced Model Context Protocol (MCP) server that transforms your local repository into a "Shared Project Brain." It uses recursive reasoning (via RLM) and local LLMs (Ollama) to analyze, reason, and remember your project's architecture, helping teams maintain deep understanding of complex codebases like Grails Core.
Features
- Frictionless Auto-Pilot: Automatically installs Ollama, manages Python environments (
uv), and pulls optimized reasoning models. - Persistent Knowledge: Distills recursive reasoning into portable YAML knowledge bases that can be checked into Git.
- Workspace-Aware: Automatically discovers project configurations in
.mcp/or.rlm/folders. - Recursive Reasoning: Uses multi-step LLM loops to trace complex class hierarchies and architectural patterns.
Installation
For Developers (via Cargo)
If you have Rust installed:
cargo install --git https://github.com/borinquenkid/rlm-mcp
For Users (Pre-compiled Binaries)
- Download the latest binary for your OS from the Releases page.
- Rename the file to
rlm-mcpand move it to your/usr/local/bin(or equivalent). - Ensure the binary is executable:
chmod +x rlm-mcp.
Note: The first time you run rlm-mcp, it will automatically provision your local Python environment, pull the necessary reasoning models (approx. 5GB), and configure the background services.
Project Structure
.mcp/: Configuration and project-specific knowledge base.knowledge_base/: Distilled "permanent facts" about your project (version-controlled).trajectories/: Raw logs of every "thinking" session (ignored by Git).
Multi-Agent Configuration
rlm-mcp is designed to orchestrate multiple specialized AI tools. You can "inject" sub-MCP servers into the Master Brain by adding them to .mcp/rlm_config.json:
{
"sub_servers": {
"git": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-git", "--repository", "."]
}
}
}
Once defined, rlm-mcp will automatically discover these tools, making them available to your recursive reasoning engine (e.g., mcp.git.get_diff()).
Usage with MCP Clients
To use rlm-mcp in your IDE (like Claude Desktop), add this to your MCP configuration:
{
"mcpServers": {
"rlm-mcp": {
"command": "/path/to/rlm-mcp"
}
}
}
rlm-mcp will then auto-provision the local Ollama backend and Python environment on its first launch.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.