Skip to main content

MCP server for Ollama integration

Project description

Add to Cursor Add to VS Code Add to Claude Add to ChatGPT Add to Codex Add to Gemini

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

Project details


Download files

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

Source Distribution

mcp_ollama_fastmcp-0.1.4.tar.gz (43.2 kB view details)

Uploaded Source

Built Distribution

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

mcp_ollama_fastmcp-0.1.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_ollama_fastmcp-0.1.4.tar.gz.

File metadata

  • Download URL: mcp_ollama_fastmcp-0.1.4.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for mcp_ollama_fastmcp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1cec1fa6c143349a047f178b2a31a0297dc3f225820b73026909d79357912a12
MD5 de94a95b0b73d1752baeb3a6ed39f9b2
BLAKE2b-256 939de92a8093e97bb019bee97d403ad8a81a025d646009d9dfeb0dbdb2efdc2b

See more details on using hashes here.

File details

Details for the file mcp_ollama_fastmcp-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_ollama_fastmcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3f0647a9b3e619a6e6d73171cb9590cbb0bcbd63065437d8441d57dc723a6e2b
MD5 26fdabfa1ac33ed540eb37c8f108bfcb
BLAKE2b-256 9de6467b359f28eb41be2a5a85a85fbf2b608b6ce6dce91f170618d4474809c0

See more details on using hashes here.

Supported by

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