ollama_chat
Chat with a model using conversation messages. Supports system messages, multi-turn conversations, tool calling, and generation options.
Work a local Ollama from inside the task: chat or complete against an installed model, embed text, and pull, create, copy or delete models without dropping to a shell.
LABSCO SUMMARY
Inference and library administration sit in the same tool list, so an agent that needs a model it does not have can pull it, check what is loaded, run the task and delete it afterwards inside one session. The two web tools are the only ones that reach off the machine, and they are the only ones that need a key, which keeps the boundary easy to reason about. AGPL-3.0 is the one detail to settle before this goes inside something you ship.
A server over a local Ollama instance covering inference, embeddings and the model library, plus Ollama's hosted web search and fetch.
An Ollama instance the server can reach, with the models you intend to call already pulled into it. OLLAMA_API_KEY is needed by ollama_web_search and ollama_web_fetch, which call Ollama's hosted APIs; nothing else in the list asks for it. Licensed AGPL-3.0.
One command — npm install -g ollama-mcp
USE CASES
Pull the weights, confirm they landed, and read what the model actually is — its modelfile, parameters and architecture — before building anything on it.
Run the work against an installed model instead of a hosted one — multi-turn where the conversation matters, single-turn completion where it does not.
Create the variant with its own system prompt and template, keep a copy under a second name before you change it further, and push it when it is worth sharing.
Check what is still resident in memory as opposed to merely installed, then remove the models the experiment left behind.
Search the web through Ollama's hosted API and fetch the page that looks right, taking back its title, content and links. Both calls need OLLAMA_API_KEY.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
ollama_chatChat with a model using conversation messages. Supports system messages, multi-turn conversations, tool calling, and generation options.
ollama_copyCopy a model. Creates a duplicate of an existing model with a new name.
ollama_createCreate a new model with structured parameters. Allows customization of model behavior, system prompts, and templates.
ollama_deleteDelete a model from local storage. Removes the model and frees up disk space.
ollama_embedGenerate embeddings for text input. Returns numerical vector representations.
ollama_generateGenerate completion from a prompt. Simpler than chat, useful for single-turn completions.
ollama_listList all available Ollama models installed locally. Returns model names, sizes, and modification dates.
ollama_psList running models. Shows which models are currently loaded in memory.
ollama_pullPull a model from the Ollama registry. Downloads the model to make it available locally.
ollama_pushPush a model to the Ollama registry. Uploads a local model to make it available remotely.
ollama_showShow detailed information about a specific model including modelfile, parameters, and architecture details.
ollama_web_fetchFetch a web page by URL using Ollama's web fetch API. Returns the page title, content, and links. Requires OLLAMA_API_KEY environment variable.
ollama_web_searchPerform a web search using Ollama's web search API. Augments models with latest information to reduce hallucinations. Requires OLLAMA_API_KEY environment variable.
BEFORE YOU INSTALL
13 tools when we connected. ollama_web_search and ollama_web_fetch require an Ollama Cloud OLLAMA_API_KEY, so a purely local install has eleven working tools. The project's 14-tool figure is stale, and ollama_your_tool is example scaffolding, not a tool.
All 3 documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 13 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npm install -g ollama-mcp{
"mcpServers": {
"ollama": {
"command": "npx",
"args": [
"-y",
"ollama-mcp"
]
}
}
}~/Library/Application Support/Claude/claude_desktop_config.json on macOS
{
"mcpServers": {
"ollama": {
"command": "npx",
"args": [
"-y",
"ollama-mcp"
]
}
}
}cline_mcp_settings.json
{
"mcpServers": {
"ollama": {
"command": "npx",
"args": [
"-y",
"ollama-mcp"
],
"env": {
"OLLAMA_HOST": "http://127.0.0.1:11434",
"OLLAMA_API_KEY": "<YOUR_OLLAMA_API_KEY>"
}
}
}
}