Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TRM_DATA_DIRNoOverride the default data directory (default: ${XDG_DATA_HOME:-~/.local/share}/trm-mcp)
HF_HUB_OFFLINENoSet to 1 to enable Hugging Face offline mode
TRM_QDRANT_URLNoURL for Qdrant service (example: http://127.0.0.1:6333)
TESSDATA_PREFIXNoPath to Tesseract tessdata directory
TRM_PARSE_WORKERSNoNumber of PDF parse worker processes (default: 8)
TRM_PARSE_PIN_CPUSNoSet to 1 to pin parse worker processes to CPU cores, 0 to disable
TRM_QDRANT_STORAGENoOverride the storage location for Qdrant vectors (default: .trm-data/qdrant/ under the data directory)
TRANSFORMERS_OFFLINENoSet to 1 to enable Transformers offline mode
TRM_VISUAL_BATCH_MINNoMinimum batch size for visual encoding during OOM backoff (default: 1)
TRM_PARSE_ORT_THREADSNoONNX Runtime intra-op threads per parse worker (default: 2)
TRM_VISUAL_BATCH_SIZENoStarting batch size for visual encoding (default: 8; automatically reduces on OOM)

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
list_documentsB

List indexed documents and their stable IDs, titles, page counts, and status.

searchB

Hybrid BM25/dense/visual retrieval with local reranking and page citations.

grepC

Find exact register, field, signal, address, or regex occurrences by page.

readB

Read up to 20 indexed pages as Markdown, text, HTML, or layout JSON.

renderA

Render one to four PDF pages as images for visual inspection.

compareA

Retrieve matching passages from two documents and return aligned unified diffs.

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/strongtz/trm-mcp'

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