serve
Start Ollama server
Drive a local Ollama install — run a prompt, chat, pull, create and remove models — from the same session as everything else.
LABSCO SUMMARY
Inference and library management are the same tool list, so trying a model you do not have yet is pull then run rather than a context switch. Most tools shell out to the ollama command and the rest call the local API at OLLAMA_HOST, so the server has to run on the machine where Ollama is installed.
An Ollama client with ten tools: prompts and OpenAI-style chat completions against local models, management of the local model library, and a tool that starts the Ollama server.
An Ollama installation, with the ollama command on the same machine, and Node.js with pnpm to build the server from source.
Build from source
USE CASES
A single prompt to a named model for something short, or a conversation with system, user and assistant messages and a temperature when the task needs one.
Pull it, check its details, and remove it again when it turns out to be the wrong size for the machine.
Build a model from a Modelfile that sets its system prompt, copy it under another name to iterate, and push the version worth keeping.
Listed in project code.
serveStart Ollama server
createCreate a model from a Modelfile
showShow information for a model
runRun a model
pullPull a model from a registry
pushPush a model to a registry
listList models
cpCopy a model
rmRemove a model
chat_completionOpenAI-compatible chat completion API
BEFORE YOU INSTALL
10 tools registered in the project's code.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 10 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
You clone and build this one yourself.
git clone https://github.com/NightTrek/Ollama-mcp
cd Ollama-mcp
pnpm install
pnpm run build{
"mcpServers": {
"ollama": {
"command": "node",
"args": [
"<YOUR_PATH_TO_OLLAMA_MCP>/build/index.js"
],
"env": {
"OLLAMA_HOST": "http://127.0.0.1:11434"
}
}
}
}