LightRAG Code Brain MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LIGHTRAG_URL | Yes | URL of the LightRAG server | |
| LIGHTRAG_PASSWORD | Yes | Password for LightRAG authentication | |
| LIGHTRAG_USERNAME | Yes | Username for LightRAG authentication | |
| LIGHTRAG_DEFAULT_REPO_ID | Yes | Default repository ID | |
| LIGHTRAG_DEFAULT_REPO_ROOT | Yes | Default repository root path for indexing |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| rag_askA | Query the local LightRAG knowledge base for repository context. Use this before answering questions about code architecture, historical decisions, indexed docs, or cross-file behavior. |
| rag_get_contextA | Retrieve LightRAG context for a query without generating a final answer. |
| rag_query_dataC | Return structured LightRAG query data: entities, relations, chunks, and metadata. |
| rag_statusA | Check LightRAG health, active models, and document pipeline state. |
| rag_clearC | Clear LightRAG documents and/or cache. Destructive. |
| rag_index_repoB | Index a repository into LightRAG. Multi-repo support is provided by prefixing every source with repo_id:relative/path. |
| rag_list_documentsC | List indexed documents, optionally filtered by repo_id prefix. |
| rag_track_statusC | Get processing status for a LightRAG track_id. |
| rag_reprocess_failedB | Ask LightRAG to reprocess failed documents. |
| rag_cancel_pipelineA | Cancel the active LightRAG document processing pipeline, if any. |
| rag_webuiA | Return local LightRAG Web UI and API documentation URLs. |
| brain_rememberB | Persist a durable project memory into the local memory log and LightRAG. Use this after fixes, failed attempts, setup discoveries, architecture decisions, and session handoff notes. |
| brain_searchC | Search durable project memories and LightRAG semantic memory for prior fixes, failures, decisions, and setup outcomes. |
| brain_recentC | List recent durable project memories from the local memory log. |
| brain_reindexC | Replay the local durable memory log into LightRAG. |
| profile_bootstrapC | Build or refresh the structured senior-developer project profile from repository layout and project instruction files. |
| profile_getC | Return the structured senior-developer project profile. |
| profile_upsertC | Create or update one senior-developer knowledge item in the project profile and index it into LightRAG. |
| profile_searchC | Search the structured senior-developer project profile and semantic RAG profile. |
| senior_briefC | Return a senior-developer brief for a topic: architecture profile, conventions, hazards, workflows, and related durable memories. |
| brain_beginB | Start the mandatory project-brain workflow for a non-trivial task. Creates a local gate file and optionally runs senior_brief immediately. |
| brain_finishC | Finish the mandatory project-brain workflow and record whether memory/profile updates were made before final response. |
| brain_gate_statusB | Check whether the mandatory project-brain workflow gate is satisfied. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| LightRAG status | Current local LightRAG health and pipeline status. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Filmystar/lightrag-code-brain-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server