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%Claudeclaude_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 sync
Test with MCP Inspector:
mcp dev src/mcp_ollama/server.py
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
Ollama Integration Server
Project Details
- emgeee/mcp-ollama
- MIT License
- Last Updated: 4/16/2025
Recomended MCP Servers
MCP server for programmatically creating and managing n8n workflows
An Extensible Model Context Protocol (MCP) server
A mcp server that bridges Dune Analytics data to AI agents.
nRepl mcp server for clojure. Enables interaction with a running Clojure nREPL instance, allowing evaluation of Clojure code,...
MCP Mail Tool - AI-powered email management tool | 基于 MCP 的智能邮件管理工具
MCP server implementation for Google's Gemini API
Ancestry MCP server made with Python that allows interactability with .ged (GEDCOM) files
MCP server implementation for using Claude API with Claude Desktop, providing advanced API integration and conversation management.
An integration that allows LLMs to interact with Raindrop.io bookmarks using the Model Context Protocol (MCP).
just-prompt is an MCP server that provides a unified interface to top LLM providers (OpenAI, Anthropic, Google Gemini,...