🦙 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. That is what the 🦙 ollama mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

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.

What it needs from you

Configuration is passed through the environment: WIN_NODEJS_NPX_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Getting it running

The server ships on npm as path, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by tappi287; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against 🦙 Ollama's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

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.