MCP Server for Ollama

by vincentf305

298 downloads
Not rated
GitHub

About

MCP server for connecting Claude Desktop to Ollama LLM server

Details

Author
vincentf305
Downloads
298
Categories
AI

- 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

Clone the repository, copy .env.example to .env and configure as needed, then install dependencies with pip install -r requirements.txt. To use with Claude Desktop, edit claude_desktop_config.json to include the server definition, setting the command to python -m src.mcp_server.server and the PYTHONPATH environment variable to the repo path.

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

MCP Server for Ollama

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.