Skip to main content
Glama

MCP Docs RAG Server

by kazuph

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DOCS_PATHNoLocal directory for storing documents~/docs
GEMINI_API_KEYYesGoogle's Gemini API key for document indexing and querying

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
guide_documents_usageGuide on how to use documents and RAG functionality

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
list_documents

List all available documents in the DOCS_PATH directory. Always use this tool first to check if desired documents already exist before adding new ones.

rag_query

Query a document using RAG. Note: If the index does not exist, it will be created when you query, which may take some time.

add_git_repository

Add a git repository to the docs directory with optional sparse checkout. Please do not use 'docs' in the document name.

add_text_file

Add a text file to the docs directory with a specified name. Please do not use 'docs' in the document name.

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

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