lightrag-mcp
lightrag-mcp
MCP 서버로, LightRAG를 Cursor, Claude Desktop 등 모든 MCP 클라이언트에 연결합니다. 에이전트에게 노트, 결정 사항, 문서, 런북 등 영구 지식 베이스에 대한 접근 권한을 제공합니다.
지식 검색에는 두 가지 시나리오가 있으므로 도구도 두 가지입니다:
도구 | 기능 | 필요한 경우 |
| 출처 링크가 포함된 완성된 답변을 반환합니다 | 지식 베이스에 대한 일반적인 질문 |
| 답변 생성 없이 컨텍스트와 출처만 반환합니다 | 답변을 직접 구성해야 할 때: 코드와 대조하거나 현재 대화와 결합해야 할 때 |
두 도구 모두 readOnlyHint로 표시되어 있으므로 클라이언트는 이를 상태를 변경하는 도구로 인식하지 않습니다.
설치
npm installNode.js 18 이상이 필요합니다 — 내장 fetch를 사용합니다.
Related MCP server: expert-mcp-server
설정
package.json 옆에 .env를 만드세요:
LIGHTRAG_URL=http://localhost:9621
LIGHTRAG_API_KEY=ваш-ключLIGHTRAG_URL은 선택 사항이며 기본값은 http://localhost:9621입니다. LIGHTRAG_API_KEY는 필수입니다. 이 값이 없으면 서버는 첫 번째 요청 시점이 아니라 시작 시 명확한 오류와 함께 종료됩니다.
환경 파일 경로는 LIGHTRAG_MCP_ENV_FILE 변수로 재정의할 수 있습니다. 클라이언트가 다른 작업 디렉터리에서 서버를 실행할 때 유용합니다.
Cursor 연결
~/.cursor/mcp.json에 다음을 추가하세요:
{
"mcpServers": {
"lightrag": {
"command": "node",
"args": ["/абсолютный/путь/lightrag-mcp/src/server.js"],
"env": {
"LIGHTRAG_MCP_ENV_FILE": "/абсолютный/путь/lightrag-mcp/.env"
}
}
}
}검색 모드
mode 매개변수는 mix(기본값), hybrid, local, global, naive를 허용합니다. 알 수 없는 모드는 네트워크 요청 전에 거부됩니다. 요청에는 항상 출처 링크와 리랭킹이 포함됩니다.
테스트
npm test테스트는 외부 종속성 없이 내장된 node --test를 사용합니다. HTTP는 fetchImpl 매개변수를 통해 대체되므로 성공적인 응답과 오류(키 누락, 빈 질문, 알 수 없는 모드, 실패한 응답 상태)가 모두 검증됩니다.
라이선스
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