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
MCP Ollama Server
Project Details
- emgeee/mcp-ollama
- MIT License
- Last Updated: 4/16/2025
Recomended MCP Servers
Fewsats MCP server
Model Context Protocol (MCP) server for Excalidraw - Work in Progress
An intelligent MCP server that provides tools for collecting and documenting code from directories
Interact with your coolify server from claude desktop
Model Context Protocol (MCP) Server for reading from Google Drive and editing Google Sheets
Completely free, private, UI based Tech Documentation MCP server. Designed for coders and software developers in mind. Easily...
An advanced web browsing server for the Model Context Protocol (MCP) powered by Playwright, enabling headless browser interactions...
An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop,...
FreeCAD MCP(Model Context Protocol) server