Skip to main content
Glama

MCP RAG

by santis84

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging levelinfo
CHUNK_SIZENoText chunk size for processing1000
CHUNK_OVERLAPNoText chunk overlap size200
MCP_SERVER_NAMENoMCP server namemcp-rag
MAX_FILE_SIZE_MBNoMaximum file size in MB50
HUGGINGFACE_MODELNoHugging Face model for embeddingssentence-transformers/all-MiniLM-L6-v2
MCP_SERVER_VERSIONNoMCP server version1.0.0
EMBEDDING_DIMENSIONNoEmbedding vector dimension384
HUGGINGFACE_API_KEYYesYour Hugging Face API key
SUPPORTED_EXTENSIONSNoSupported file extensions.pdf,.docx,.txt,.md,.csv,.json
CHROMA_COLLECTION_FILESNoChromaDB collection name for filesrag_files
CHROMA_COLLECTION_MEMORYNoChromaDB collection name for agent memoryagent_memory
CHROMA_PERSIST_DIRECTORYNoChromaDB persistence directory./data/chroma

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
RAG StatisticsCurrent statistics of the RAG system

Tools

Functions exposed to the LLM to take actions

NameDescription
add_file

Add a file to the RAG system for document retrieval

search_files

Search for relevant documents in the RAG system

remove_file

Remove a file from the RAG system

list_files

List all files in the RAG system

add_memory

Add information to the agent memory system

search_memory

Search for relevant information in agent memory

remove_memory

Remove a memory entry from the agent memory system

get_memory_by_agent

Get all memory entries for a specific agent

get_stats

Get statistics about the RAG system

clear_data

Clear data from the RAG system

test_connection

Test the connection to the embedding service

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/santis84/mcp-rag'

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