MCPcopy Index your code
hub / github.com/emgeee/mcp-ollama

github.com/emgeee/mcp-ollama @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
5 symbols 16 edges 3 files 4 documented · 80%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MCP Ollama

A Model Context Protocol (MCP) server for integrating Ollama with Claude Desktop or other MCP clients.

Ollama Server MCP server

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 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 models - show_model - Get detailed information about a specific model - ask_model - Ask a question to a specified model

License

MIT

Core symbols most depended-on inside this repo

Shape

Function 5

Languages

Python100%

Modules by API surface

src/mcp_ollama/server.py4 symbols
src/mcp_ollama/__main__.py1 symbols

For agents

$ claude mcp add mcp-ollama \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page