Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Logging level | info |
| CHUNK_SIZE | No | Text chunk size for processing | 1000 |
| CHUNK_OVERLAP | No | Text chunk overlap size | 200 |
| MCP_SERVER_NAME | No | MCP server name | mcp-rag |
| MAX_FILE_SIZE_MB | No | Maximum file size in MB | 50 |
| HUGGINGFACE_MODEL | No | Hugging Face model for embeddings | sentence-transformers/all-MiniLM-L6-v2 |
| MCP_SERVER_VERSION | No | MCP server version | 1.0.0 |
| EMBEDDING_DIMENSION | No | Embedding vector dimension | 384 |
| HUGGINGFACE_API_KEY | Yes | Your Hugging Face API key | |
| SUPPORTED_EXTENSIONS | No | Supported file extensions | .pdf,.docx,.txt,.md,.csv,.json |
| CHROMA_COLLECTION_FILES | No | ChromaDB collection name for files | rag_files |
| CHROMA_COLLECTION_MEMORY | No | ChromaDB collection name for agent memory | agent_memory |
| CHROMA_PERSIST_DIRECTORY | No | ChromaDB persistence directory | ./data/chroma |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| RAG Statistics | Current statistics of the RAG system |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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 |