Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OLLAMA_HOSTNoDaemon addresshttp://localhost:11434
DEBUG_OLLAMA_MCPNo1 for verbose stderr
OLLAMA_MCP_CONFIGNoExplicit config path
OLLAMA_MCP_DETAILNoDefault response verbosityconcise
OLLAMA_MCP_RANKINGNoTie-break policy among capable modelsresident-then-smallest
OLLAMA_MCP_FILE_ROOTSNoColon-separated readable rootscwd
OLLAMA_MCP_KEEP_ALIVENoLonger than Ollama's default; batch-friendly10m
OLLAMA_MCP_TIMEOUT_MSNoTotal request timeout600000
OLLAMA_MCP_ROLE_<NAME>NoComma-separated chain; defines new roles
OLLAMA_MCP_ALIAS_<NAME>NoShorthand → real model name
OLLAMA_MCP_DEFAULT_ROLENoRole used when model is omittedgeneral
OLLAMA_MCP_DEFAULT_THINKNoSee the trap abovefalse
OLLAMA_MCP_REGISTRY_TTL_MSNoModel-list cache TTL60000
OLLAMA_MCP_MAX_OUTPUT_CHARSNoOutput cap before truncation100000
OLLAMA_MCP_BATCH_CONCURRENCYNoWithin-group concurrency; 1 is VRAM-safe1
OLLAMA_MCP_CONNECT_TIMEOUT_MSNoSeparate and short, so a down daemon fails fast3000
OLLAMA_MCP_DEFAULT_TEMPERATURENoDeterminism by default0

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": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ollama_dispatchA

Run one generation on a local Ollama model and return its output. Use for summarization, extraction, reformatting and other mechanical work you do not want to spend your own context on. Supports structured output (format), multi-turn messages, tool definitions, and server-side file reading via files/file_globs so file contents never enter your context. Select the model with model: a literal name, role:NAME, or caps:a+b. Note that reasoning tokens and answer tokens share one num_predict budget — thinking is off by default for that reason. Every response ends with a metrics line naming the model actually used and how it was resolved.

ollama_dispatch_batchA

Run many generations in one call. Items are grouped by resolved model and the groups run sequentially, so a cold model load is paid at most once per model instead of thrashing VRAM. Results are returned in input order regardless of execution order, and one failing item never voids the run. Prefer this over many separate ollama_dispatch calls: it is faster and costs you far less context.

ollama_modelsA

List the models installed on the Ollama host with their capabilities, context window, size and whether they are currently loaded. Filter with capability or resident_only; pass refresh after pulling a new model. Pass explain_selector to dry-run the model resolver — it reports exactly which model a selector would run and the full fallback chain, without spending a generation. Start there whenever routing surprises you.

ollama_lifecycleA

Manage model residency. status lists loaded models with their VRAM use and time until unload. warm pre-loads a model so a following dispatch skips the cold-load cost (which can be ~12s for a large model) — useful before a batch. unload frees the VRAM immediately, which matters because a large model can hold tens of GB and starve everything else on the machine.

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/Clickt-Digital-Marketing-Inc/ollama-mcp'

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