Ollama MCP

AIstdio
Repository

A self-contained MCP server for managing local Ollama models with no external dependencies. Agents can list installed models, pull or remove them, start and stop the Ollama server, run local completions, and use a model-advisor tool that recommends which locally available model best fits a given task.

Verbinden

Fügen Sie diese Konfiguration hinzu zu .claude/mcp.json

{
  "mcpServers": {
    "ollama": {
      "command": "npx",
      "args": [],
      "env": {
        "OLLAMA_HOST": "<YOUR_OLLAMA_HOST>"
      }
    }
  }
}

Werkzeuge (3)

list_local_models

List models currently installed in the local Ollama instance.

{
  "type": "object",
  "properties": {}
}

pull_model

Download a model into the local Ollama instance.

{
  "type": "object",
  "required": [
    "model"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "Model name to pull (e.g. llama3.1:8b)"
    }
  }
}

run_completion

Run a prompt against a local Ollama model.

{
  "type": "object",
  "required": [
    "model",
    "prompt"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "Local model name"
    },
    "prompt": {
      "type": "string",
      "description": "Prompt text"
    }
  }
}

Ressourcen

Dieser Server stellt keine Ressourcen bereit.

Prompts

Dieser Server stellt keine Prompts bereit.

Serverinformationen

Autor
Paolo Dal Prato (@paolodalprato)
Repository
https://github.com/paolodalprato/ollama-mcp-server
Lizenz
MIT
Sterne
0
Zuletzt aktualisiert
3. August 2026