What is Ollama MCP Server?
An MCP (Model Context Protocol) server that exposes the complete Ollama SDK as MCP tools, enabling seamless integration between local LLM models and MCP-compatible applications like Claude Desktop and Cline. It's for developers and AI users who want to control Ollama from any MCP client.
How to use Ollama MCP Server?
Install via npm (npm install -g ollama-mcp or npx -y ollama-mcp), then add it to your MCP client's configuration (e.g., Claude Desktop's claude_desktop_config.json or Cline's cline_mcp_settings.json). Set environment variables OLLAMA_HOST (default http://127.0.0.1:11434) and optionally OLLAMA_API_KEY for cloud features. Run the server via the configured command; tools are automatically discovered.
Key features of Ollama MCP Server
- 14 tools covering model management, operations, and web utilities
- Hot-swap architecture for automatic tool discovery
- Zero external dependencies – minimal footprint
- Hybrid mode: use local and cloud models simultaneously
- Web search and fetch tools via Ollama Cloud (requires API key)
- Type-safe implementation with TypeScript and Zod validation
Use cases of Ollama MCP Server
- Chat with local or cloud models directly from your MCP client
- Generate embeddings for text with
ollama_embed
- Search the web and fetch page content using Ollama Cloud
- Manage Ollama models: list, pull, push, copy, delete, and create custom models
- Integrate LLM capabilities into AI assistant workflows in VS Code (Cline) or desktop apps
Comments