# Ollama MCP Server

> Use Ollama local and cloud models through MCP.

- **URL**: https://followmcp.com/en/servers/rawveg-ollama-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 181
- **FMRS Score**: 48/100 (Grade D)
- **Source**: https://github.com/rawveg/ollama-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 16+
- **Auth**: Optional API key

## Overview
Ollama MCP Server exposes Ollama SDK functionality as MCP tools, including model management, text generation, chat, embeddings, and web search and fetch that require an Ollama Cloud API key. The README provides configuration examples for Claude Desktop and Cline.

## Best for
- Users who already run Ollama and want to access its functionality from an MCP client.
- Users who need local model operations and may also enable Ollama Cloud web tools.

## Not for
- Users without an accessible Ollama server who do not plan to configure Ollama Cloud.
- Users who need model hosting or web capabilities not described in the README.

## Required permissions
- Needs to connect to the configured Ollama server; available model operations include downloading, pushing, creating, and deleting models.
- Web search and fetch require an Ollama Cloud API key; cloud models also require appropriate cloud configuration.
- Server configuration can set OLLAMA_HOST and OLLAMA_API_KEY.

## Risks
- Downloading, pushing, creating, or deleting models changes local storage or remote state; check the operation and target before invoking it.
- Cloud models and web tools involve Ollama Cloud; fetched web content may be inaccurate or untrusted.
- API keys are sensitive credentials and should be configured and stored carefully.

## Client config (JSON)
```json
{"mcpServers":{"ollama":{"command":"npx","args":["-y","ollama-mcp"]}}}
```

## Tools (13)
- `ollama_list`: List all available local models.
- `ollama_show`: Get detailed information about a specified model.
- `ollama_pull`: Download models from the Ollama library.
- `ollama_push`: Push models to the Ollama library.
- `ollama_copy`: Copy an existing model.
- `ollama_delete`: Remove models from local storage.
- `ollama_create`: Create a custom model from a Modelfile.
- `ollama_ps`: List currently running models.
- `ollama_generate`: Generate text completions.
- `ollama_chat`: Chat with models, with support for tools or functions.
- `ollama_embed`: Generate embeddings for text.
- `ollama_web_search`: Search the web through Ollama Cloud; requires an API key.
- `ollama_web_fetch`: Fetch and parse web page content through Ollama Cloud; requires an API key.
