Skip to main content
Glama
code-lawyer

rag-retriever-mcp

by code-lawyer

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RAG_EMBED_BACKENDNoEmbedding backend: local, ollama, or openailocal
RAG_OPENAI_API_KEYNoAPI key for OpenAI-compatible embedding backend (required if backend is openai)

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
index_pathA

Index a file or a whole folder of documents (pdf, docx, pptx, xlsx, html, md, txt...). Extracts text, chunks it, embeds it, and stores vectors for later search. Returns a summary of how many files/chunks were indexed and what was skipped.

searchA

Search the indexed documents for passages relevant to query and return the top k chunks (with source path and similarity score). Use these passages as grounding to answer the user's question yourself — this tool does NOT answer.

list_sourcesB

List the documents currently indexed and how many chunks each has.

statsA

Show retriever status: embedding backend/model, storage location, and counts.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a distinct purpose: indexing files, searching passages, listing indexed sources, and showing system stats—no overlap or ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern (e.g., index_path, list_sources) with clear, predictable naming.

Tool Count5/5

With only 4 tools, the set is well-scoped for a document retrieval MCP, covering core operations without unnecessary bloat.

Completeness4/5

The set covers key operations (index, search, list, stats) but lacks a tool to delete indexed documents, which is a minor but notable gap.

Maintenance

ActivityInactive
ResponsivenessNo issues