lightrag-mcp
lightrag-mcp
Servidor MCP que conecta LightRAG a cualquier cliente MCP — Cursor, Claude Desktop y otros. Da al agente acceso a una base de conocimientos persistente: notas, decisiones, documentación, runbooks.
Dos herramientas, porque la extracción de conocimiento tiene dos escenarios diferentes:
Herramienta | Qué hace | Cuándo se necesita |
| Devuelve una respuesta lista con enlaces a las fuentes | Pregunta habitual a la base de conocimientos |
| Devuelve solo el contexto y las fuentes, sin generar una respuesta | Cuando la respuesta debe ser ensamblada por uno mismo: verificar con el código, combinar con el diálogo actual |
Ambas herramientas están marcadas como readOnlyHint, por lo que el cliente no las percibirá como modificadoras de estado.
Instalación
npm installSe requiere Node.js 18 o superior: se utiliza el fetch integrado.
Related MCP server: expert-mcp-server
Configuración
Cree un archivo .env junto a package.json:
LIGHTRAG_URL=http://localhost:9621
LIGHTRAG_API_KEY=ваш-ключLIGHTRAG_URL es opcional y por defecto es http://localhost:9621. LIGHTRAG_API_KEY es obligatorio: sin él, el servidor falla al inicio con un error claro, no en el momento de la primera solicitud.
La ruta al archivo de entorno se puede sobrescribir con la variable LIGHTRAG_MCP_ENV_FILE — útil cuando el cliente inicia el servidor desde otro directorio de trabajo.
Conexión a Cursor
En ~/.cursor/mcp.json:
{
"mcpServers": {
"lightrag": {
"command": "node",
"args": ["/абсолютный/путь/lightrag-mcp/src/server.js"],
"env": {
"LIGHTRAG_MCP_ENV_FILE": "/абсолютный/путь/lightrag-mcp/.env"
}
}
}
}Modos de búsqueda
El parámetro mode acepta mix (por defecto), hybrid, local, global y naive. Un modo desconocido se rechaza antes de la solicitud de red. Las solicitudes siempre se envían con enlaces a fuentes habilitados y reranking.
Pruebas
npm testLas pruebas utilizan el node --test integrado, sin dependencias externas. HTTP se sustituye mediante el parámetro fetchImpl, por lo que se verifican tanto respuestas exitosas como errores: clave faltante, pregunta vacía, modo desconocido, estado de respuesta no exitoso.
Licencia
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to query specialized, domain-specific knowledge bases built using the LightRAG framework for enhanced retrieval-augmented generation. It allows for managing and searching knowledge graphs and vector embeddings to provide accurate, context-aware information during an AI assistant's reasoning process.59MIT
- AlicenseAqualityDmaintenanceEnables MCP-compatible agents to query beliefs, search documents, and explore reasoning chains from expert-service knowledge bases.10MIT
- AlicenseNot gradedqualityBmaintenanceEnables document-based Q&A with multi-modal RAG, hybrid retrieval, knowledge graph reasoning, and multi-agent orchestration via MCP tools.4MIT
- FlicenseNot gradedqualityCmaintenanceEnables querying company knowledge base using RAG, providing accurate answers from internal documents via MCP.
Related MCP Connectors
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Shared, peer-validated knowledge archive for AI agents — search, contribute, and validate via MCP
Agentic search over your Dewey document collections from any MCP-compatible client.
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/TimaxLacs/lightrag-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server