MCP Server for Ollama

by vincentf305

298 downloads Not rated yet
GitHub

About

MCP Server for Ollama is a Model Control Protocol (MCP) server that enables Claude Desktop to communicate with an Ollama LLM server. It is intended for users who want to run local large language models via Ollama and interact with them through Claude Desktop.

Explore

- Integrates Claude Desktop with Ollama via Model Control Protocol
- Simple setup with pip and a configuration file
- Allows use of local Ollama models from Claude Desktop
- Environment variable configuration via .env

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server for Ollama
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. Clone the repository
2. Copy .env.example to .env and configure as needed
3. Install dependencies: pip install -r requirements.txt

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server for ollama": {
            "ollama-server": {
                "command": "python",
                "args": [
                    "-m",
                    "src.mcp_server.server"
                ],
                "env": {
                    "PYTHONPATH": "path-to-mcp-server"
                }
            }
        }
    }
}

McpServers

{
    "ollama-server": {
        "command": "python",
        "args": [
            "-m",
            "src.mcp_server.server"
        ],
        "env": {
            "PYTHONPATH": "path-to-mcp-server"
        }
    }
}

A Model Control Protocol server that allows Claude Desktop to communicate with Ollama LLM server.

Setup

1. Clone the repository
2. Copy .env.example to .env and configure as needed
3. Install dependencies: pip install -r requirements.txt

Using with Claude Desktop

Edit the claude_desktop_config.json file with the following content, change path-to-mcp-server to the path of this repo:

{
  "mcpServers": {
    "ollama-server": {
      "command": "python",
      "args": ["-m", "src.mcp_server.server"],
      "env": {
        "PYTHONPATH": "path-to-mcp-server"
      }
    }
  }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.