Ollama MCP Server

MCP server for Ollama - exposes all Ollama SDK functionality through MCP tools

Remote serverstreamable-httpTypeScript

What is the Ollama MCP Server?

Ollama MCP connects Ollama MCP to AI assistants that speak the Model Context Protocol. MCP server for Ollama - exposes all Ollama SDK functionality through MCP tools.

What Ollama MCP does

An MCP (Model Context Protocol) server that exposes the complete Ollama SDK as MCP tools, enabling seamless integration between your local LLM models and MCP-compatible applications like Claude Desktop and Cline.

Requirements

  • Node.js v16+ - npm or pnpm - Ollama running locally

Practical notes

  • Maintained by rawveg, written in TypeScript.

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_web_searchSearch the web with customizable result limits (requires OLLAMA_API_KEY)
ollama_web_fetchFetch and parse web page content (requires OLLAMA_API_KEY)

How to install the Ollama MCP Server

{
  "mcpServers": {
    "ollama": {
      "command": "npx",
      "args": [
        "-y",
        "ollama-mcp"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js v16+ - npm or pnpm - Ollama running locally

Example prompts to try

  • “Use Ollama MCP to ollama web search.”
  • “Use Ollama MCP to ollama web fetch.”
  • “Use Ollama MCP to Prerequisites.”

Frequently asked questions

MCP server for Ollama - exposes all Ollama SDK functionality through MCP tools Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.