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)

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
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

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/code-lawyer/rag-retriever'

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