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 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

Related in Development - Secure MCP Servers

ServerSummaryActions
symbolica-mcpA scientific computing Model Context Protocol (MCP) server allows AI, such as Claude, to perform sym...View
Unreal Engine Code AnalyzerA Model Context Protocol (MCP) server that provides powerful source code analysis capabilities for U...View
Auto API - YApi一个基于 Model Context Protocol (MCP) 的 YApi 接口信息获取工具View
JS Development MCP ServerA Model Context Protocol (MCP) server for better JS/TS development. It enablesView
Model Context Protocol serversThis repository is a collection of reference implementations for the Model Context Protocol (MCP), a...View
GXtractView