MCP Ollama
Provides tools for listing downloaded models, viewing model details, and asking questions to models via Ollama.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Ollama Ask llama3.2 'What is the capital of France?'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Ollama
A Model Context Protocol (MCP) server for integrating Ollama with Claude Desktop or other MCP clients.
Requirements
Python 3.10 or higher
Ollama installed and running (https://ollama.com/download)
At least one model pulled with Ollama (e.g.,
ollama pull llama2)
Configure Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"ollama": {
"command": "uvx",
"args": [
"mcp-ollama"
]
}
}
}Development
Install in development mode:
git clone https://github.com/yourusername/mcp-ollama.git
cd mcp-ollama
uv syncTest with MCP Inspector:
mcp dev src/mcp_ollama/server.pyRelated MCP server: Ollama MCP Server
Features
The server provides four main tools:
list_models- List all downloaded Ollama modelsshow_model- Get detailed information about a specific modelask_model- Ask a question to a specified model
License
MIT
Available Tools
3 toolsask_modelA
Ask a question to a specific Ollama model
Args:
model: Name of the model to use (e.g., 'llama2')
question: The question to ask the model
Inputs: model (required), question (required).
list_modelsA
List all downloaded Ollama models
Inputs: no named parameters.
show_modelA
Get detailed information about a specific model
Args:
name: Name of the model to show information about
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: listing models, showing model details, and asking a model a question. No overlap or ambiguity between them.
All tool names follow a consistent verb_noun pattern using snake_case: list_models, show_model, ask_model. This is predictable and easy to remember.
With 3 tools, the server is well-scoped for its purpose of interacting with Ollama models. Each tool earns its place, and the count falls within the typical 3-15 range.
The tools cover the core workflow of listing, inspecting, and querying models. Missing pull/delete operations are minor gaps since the server focuses on using existing models rather than managing the full model lifecycle.
Maintenance
Related MCP Connectors
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Connect MCP clients to 2,000+ AI models without managing provider API keys.
MCP-Native LLM Orchestration Agent
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables seamless integration between Ollama's local LLM models and MCP-compatible applications, supporting model management and chat interactions.13923 npm178AGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible AI assistants to manage and use local or cloud Ollama models for text generation, chat, embeddings, model operations, web search, and web content fetching.923 npmAGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to access local or cloud LLMs, manage and run models, generate completions and embeddings, chat with tool/function support, and use web search/fetch through Ollama Cloud.923 npmAGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to manage and interact with local or cloud-hosted Ollama models, including listing, pulling, generating, chatting, embeddings, and web search/fetch operations.923 npmAGPL 3.0