Ollama MCP Server

Integrates Ollama's local large language models into Model Context Protocol-powered applications.

Local serverstdioTypeScript 75

What is the Ollama MCP server?

Ollama MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Integrates Ollama's local large language models into Model Context Protocol-powered applications.

What you get

🚀 A powerful bridge between Ollama and the Model Context Protocol (MCP), enabling seamless integration of Ollama's local LLM capabilities into your MCP-powered applications.

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

What the assistant can call

Once Ollama is connected, these are the calls the assistant has available:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — The Installation tool exposed by this server
  • Configuration — The Configuration tool exposed by this server

Configuration and credentials

You will need one environment variable: OLLAMA_HOST. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Ollama installed on your system - Node.js and npm/pnpm

Before you rely on it

  • 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.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the ollama mcp server does with a few real requests.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Ollama's toolset — Prerequisites, Installation, Configuration — is a fair guide to whether it matches your workflow. It is maintained by NightTrek; 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.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.
ConfigurationThe Configuration tool exposed by this server.

How to install the Ollama MCP server

{
  "mcpServers": {
    "ollama": {
      "command": "node",
      "args": ["/path/to/ollama-server/build/index.js"],
      "env": {
        "OLLAMA_HOST": "http://127.0.0.1:11434"  // Optional: customize Ollama API endpoint
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Ollama installed on your system - Node.js and npm/pnpm
VariableDescriptionRequired
OLLAMA_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • Use Ollama to Prerequisites.
  • Use Ollama to Installation.
  • Use Ollama to Configuration.

Frequently asked questions

It's a bridge that allows you to use Ollama's locally hosted large language models (LLMs) within applications built using the Model Context Protocol (MCP).