MCP Server — pblagoje/mcp-ollama-python

Model Context Protocol server that proxies local Ollama to MCP clients like Windsurf and VS Code

Local serverstdioPython

What is the MCP Server?

Model Context Protocol server that proxies local Ollama to MCP clients like Windsurf and VS Code

What you get

You can also wire this server into any MCP client (Windsurf, Cursor, Claude Desktop, etc.) without the extension — see Quick Start below.

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
ollama_chatChat with any local model (multi-turn, tool-calling)
ollama_generateGenerate text completions
ollama_embedCreate vector embeddings
ollama_listList installed models
ollama_showInspect model details
ollama_pullDownload new models
ollama_deleteRemove models
ollama_psList running models

How to install the MCP Server

{
  "mcpServers": {
    "ollama-python": {
      "command": "uvx",
      "args": ["mcp-ollama-python"],
      "env": {
        "OLLAMA_HOST": "your-value",
        "OLLAMA_ALLOW_REMOTE_HOST": "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_ALLOW_REMOTE_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • “Use MCP to Docs.”
  • “Use MCP to PyPI.”
  • “Use MCP to ollama chat.”

Frequently asked questions

Model Context Protocol server that proxies local Ollama to MCP clients like Windsurf and VS Code Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.