Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_mcp_ollama-0.1.3.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_mcp_ollama-0.1.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_mcp_ollama-0.1.3.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_mcp_ollama-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b37d20650cc8cffbc4c40cc5a037b070e488a76de50b9aa2abbe23c3d60aa246
MD5 551d44ab84b19b7e62a969ee8c6342fb
BLAKE2b-256 0b929b8ae944f4d8bbe5c168bc999ec92196da90b5af4d502ff05bf15b10bc33

See more details on using hashes here.

File details

Details for the file iflow_mcp_mcp_ollama-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_mcp_ollama-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ee014c61ce46fbe4e1514ee17ada63e8fdab7a5e2ea95c51a599f5ac9d591b6
MD5 1c5acf9d9ba615f32cbb9010d24d8da2
BLAKE2b-256 5dd1c0f32170aa47c8c92b5ba7c8699d4294c9bfb030eb44d406d6ba3d176d18

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page