Skip to main content
Glama
enriquecatala

mcp-lightrag

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LIGHTRAG_HOSTNoLightRAG API hostlocalhost
LIGHTRAG_PORTNoLightRAG API port9621
LIGHTRAG_API_KEYNoOptional API key for LightRAG

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
query_knowledge_graphB

Search the knowledge graph for information using various strategies. Ideal for answering questions based on indexed data.

ingest_textA

Index raw text content directly into the knowledge graph. Useful for small snippets or dynamic data.

ingest_fileB

Index a specific local file from the file system. The file must be accessible by the running server.

upload_and_indexB

Upload a file to the LightRAG server's input directory and trigger indexing. Handles file transfer if the server is remote.

upsert_documentA

Intelligently upload a document: if it doesn't exist, creates it; if it exists and is identical (same content length), skips upload; if it exists but was modified, deletes the old version and re-uploads.

ingest_batchB

Recursively index all files in a directory that match specific patterns.

list_all_docsA

List ALL documents currently in the system. WARNING: Can be slow if there are many documents. Use get_latest_documents for better performance.

find_documentA

Check if a document exists by its filename or path. Returns a dictionary with detailed status: 'id', 'status' (processed/failed/pending), 'created_at', 'updated_at', 'content_length', 'chunks_count', and 'error_msg' if any.

get_latest_documentsA

Get a paginated list of the most recently updated documents. Useful for monitoring ingestion progress.

check_indexing_statusA

Check the current status of the document processing pipeline (idle or busy).

get_graph_metadataA

Retrieve schema information about the knowledge graph, including available node labels and relationship types.

verify_server_healthA

Check if the LightRAG server is reachable and healthy.

create_entitiesB

Manually insert specific entities into the knowledge graph.

remove_entitiesB

Delete one or more specific entities from the knowledge graph by name.

purge_by_documentB

Remove all entities and relationships associated with specific document IDs from the graph.

modify_entitiesB

Update the properties (type, description, source_id) of existing entities.

connect_entitiesB

Define or update relationships between entities, including edge weights and descriptions.

unify_entitiesA

Merge multiple source entities into a single target entity to resolve duplicates or synonyms.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/enriquecatala/mcp-lightrag'

If you have feedback or need assistance with the MCP directory API, please join our Discord server