Skip to main content
Glama
nongtiensonpro

Document RAG MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
QDRANT_URLNoURL for the Qdrant vector store.http://localhost:6333
DUCKDB_PATHNoPath to the DuckDB database file.
RAG_RULES_DIRNoDirectory containing declarative validation rules.
RAG_DOCUMENT_ROOTNoRoot directory for document indexing.
RAG_RERANKER_MODELNoCross-encoder reranker model name.BAAI/bge-reranker-v2-m3

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_documentA

Convert and index one document from a configured document root.

path may be relative to RAG_DOCUMENT_ROOT or an absolute path. Supports: PDF, DOCX, XLSX, CSV, PPTX, HTML, Markdown, TXT, XML. Returns validation results and diff info (skipped if unchanged). Set force=True to force re-indexing even if content hash is unchanged. Set async_index=True to run in background and return job_id.

index_directoryA

Index supported files in a directory with diff reporting.

Returns which files are new, changed, unchanged, or failed. Set force=True to force re-indexing all files. Set async_index=True for large directories to prevent timeout.

search_documentsA

Search indexed documents with hybrid dense+sparse retrieval.

Optionally filter by metadata (e.g. filter={"sheet_name": "Branch_Alpha"}). Results include structured citations with sheet name and row ranges. Cross-encoder reranking is applied when configured.

query_tablesA

Execute a SQL query on extracted tables stored in DuckDB.

Use list_tables() first to discover available table names and column schemas. Supports COUNT, GROUP BY, JOIN, WHERE, etc.

aggregateB

Simplified aggregation on a DuckDB table.

Easier than SQL for common count/sum/group-by queries. Example: aggregate(table="t_abc_0", group_by=["xã"], agg="count")

list_tablesA

List all extracted tables in the DuckDB relational store.

Returns table names, source documents, column schemas, and row counts.

list_documentsA

List indexed files, hashes, chunk counts, timestamps and source paths.

get_documentA

Return all indexed chunks and provenance for one document id.

get_index_statusA

Return Qdrant/DuckDB health, counts, roots and dependency versions.

healthA

Return a read-only health snapshot for this MCP and its backends.

get_configA

Return safe read-only runtime configuration without secrets.

get_job_statusC

Check the status of an async indexing job.

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

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