ollama-mcp
by rawveg·★ 160·Score 47
TypeScript MCP server exposing complete Ollama SDK with 14 tools for local LLM integration.
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:
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 READMEollama_listList all available local models
ollama_showGet detailed information about a specific model
ollama_pullDownload models from Ollama library
ollama_pushPush models to Ollama library
ollama_copyCreate a copy of an existing model
ollama_deleteRemove models from local storage
ollama_createCreate custom models from Modelfile
ollama_psList currently running models
ollama_generateGenerate text completions
ollama_chatInteractive chat with models (supports tools/functions)
ollama_embedGenerate embeddings for text
ollama_web_searchSearch the web with customizable result limits
Comparable tools
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-mcpFor 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
Last updated · Auto-generated from public README + GitHub signals.