🦙 Ollama MCP Server

Adapter to expose MCPO, the MCP-to-OpenAPI proxy server, tools in Ollama-compatible format

Local serverstdioPython

What is the 🦙 Ollama MCP Server?

Adapter to expose MCPO, the MCP-to-OpenAPI proxy server, tools in Ollama-compatible format

The short version

adapter = OllamaMCPOAdapter(host="localhost", port=5090, config_path="/path/to/mcp_config.json") # Gets tool descriptions from MCPO FastAPI /docs tools = adapter.list_tools_ollama() ``` You can omit the config path. But discovery of MCP server names is more reliable with a provided config. Otherwise, the server names will be read from the automatically generated OpenAPI docs MCPO provides which might change in the future.

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.

How to install the 🦙 Ollama MCP Server

{
  "mcpServers": {
    "ollama-mcpo-adapter": {
      "command": "npx",
      "args": ["-y", "path"],
      "env": {
        "WIN_NODEJS_NPX_PATH": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
WIN_NODEJS_NPX_PATHFilesystem location the server is allowed to use.Optional

Frequently asked questions

Python 3.8+ and the `ollama` Python package for sending tool-calling requests.