mcp-server-ollama¶
An MCP server that exposes local Ollama models as tools: list/show/ps, chat,
generate, embeddings, pull/delete, and an opt-in code-execution tool. Companion
package: mcprack-mcp-server-ollama. Binary: /usr/bin/mcp-server-ollama.
Packaged fork of pblagoje/mcp-ollama-python.
sudo apt install mcprack-mcp-server-ollama
Configuration¶
Variable |
Required |
Meaning |
|---|---|---|
|
no |
Ollama URL (default |
|
no |
API key for a remote or cloud Ollama endpoint (secret store) |
|
no |
|
|
no |
Opt-in for the code-execution tool |
|
no |
Allow |
Registration:
sudo mcprack server show mcp-server-ollama
sudo mcprack server edit mcp-server-ollama \
--set-env OLLAMA_HOST=http://127.0.0.1:11434
Read-only behaviour: companion sets OLLAMA_READ_ONLY=true.
Tools¶
Model listing, chat, generate and embeddings stay available in read-only mode; pull, delete and execute require turning read-only off (and enabling execute explicitly for that tool).