MCP Catalogs
Home

ollama-mcp

by rawveg·160·Score 47

TypeScript MCP server exposing complete Ollama SDK with 14 tools for local LLM integration.

ai-llmdeveloper-toolsproductivity
28
Forks
4
Open issues
6 mo ago
Last commit
2d ago
Indexed

Overview

The ollama-mcp server is a comprehensive implementation of the Model Context Protocol for Ollama, providing seamless integration between local LLM models and MCP-compatible applications like Claude Desktop and Cline. It offers 14 tools covering model management, operations, and web search capabilities with both local and cloud deployment options. The server features hot-swap architecture, TypeScript implementation with Zod validation, and maintains high test coverage at 96%.

Try asking AI

After installing, here are 7 things you can ask your AI assistant:

you:Enable Claude Desktop to interact with local Ollama models for enhanced privacy
you:Provide AI assistants with web search capabilities through Ollama Cloud
you:Integrate local LLM functionality into VS Code via Cline
you:Manage local models with pull, delete, and create operations
you:Generate embeddings and chat completions using local models
you:Does this server work with Ollama Cloud?
you:How many tools are available?

When to choose this

Choose this MCP server if you want to integrate Ollama's local LLM capabilities with Claude Desktop or Cline, especially when you need both model operations and web search functionality through a single interface.

When NOT to choose this

Avoid this server if you're looking for open-source licensing (it's AGPL-3.0 which may have compliance implications) or if you need extensive tool calling capabilities beyond Ollama's native support.

Tools this server exposes

12 tools extracted from the README
  • ollama_list

    List all available local models

  • ollama_show

    Get detailed information about a specific model

  • ollama_pull

    Download models from Ollama library

  • ollama_push

    Push models to Ollama library

  • ollama_copy

    Create a copy of an existing model

  • ollama_delete

    Remove models from local storage

  • ollama_create

    Create custom models from Modelfile

  • ollama_ps

    List currently running models

  • ollama_generate

    Generate text completions

  • ollama_chat

    Interactive chat with models (supports tools/functions)

  • ollama_embed

    Generate embeddings for text

  • ollama_web_search

    Search the web with customizable result limits

Comparable tools

open-webui-mcplmstudio-mcplocal-ai-mcp

Installation

Quick Start with Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

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

Global Installation

npm install -g ollama-mcp

For Cline (VS Code)

Add to your Cline MCP settings (cline_mcp_settings.json):

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

FAQ

Does this server work with Ollama Cloud?
Yes, it supports both local Ollama instances and Ollama Cloud. Set OLLAMA_HOST to 'https://ollama.com' and provide an OLLAMA_API_KEY for cloud access.
How many tools are available?
The server provides 14 comprehensive tools covering model management (pull, push, copy, delete, create), model operations (chat, generate, embed), and web tools (web search, web fetch) with cloud API key.

Compare ollama-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.