Ollama MCP Server

Lightweight CLI client for a remote Ollama server

Local serverstdioPython

What is the Ollama MCP Server?

Lightweight CLI client for a remote Ollama server

The short version

A lightweight CLI client for a remote Ollama server. Designed to be a drop-in replacement for the ollama CLI when you need to talk to a server running on a different machine — output formats, column names, and flag names match the official client character-for-character wherever possible.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
launchConfigure and launch an AI coding tool backed by the local Ollama server.
help

How to install the Ollama MCP Server

{
  "mcpServers": {
    "ollama-client": {
      "command": "uvx",
      "args": ["ollama-client"],
      "env": {
        "OLLAMA_HOST": "your-value",
        "OLLAMA_CLIENT_HOST": "your-value",
        "ANTHROPIC_BASE_URL": "your-value",
        "COPILOT_PROVIDER_BASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
OLLAMA_HOSTEndpoint or connection string the server talks to.Optional
OLLAMA_CLIENT_HOSTEndpoint or connection string the server talks to.Optional
ANTHROPIC_BASE_URLEndpoint or connection string the server talks to.Yes
COPILOT_PROVIDER_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Ollama to launch.”
  • “Use Ollama to help.”
  • “Use Ollama to Divergencies.”

Frequently asked questions

Lightweight CLI client for a remote Ollama server Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.