Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Ollama MCP

MCP server by rawveg Verified · npm:ollama-mcp

Exposes the Ollama SDK as MCP tools so AI assistants can list, pull, run and embed local models. Web search and fetch are available through Ollama Cloud with an API key. Built for users of Claude Desktop, Cline and other MCP clients.

  • Score 67
  • 181 stars
  • 733 a week
  • AGPL-3.0
  • Updated

Install Ollama MCP

Built from the published package, never by AI.

claude mcp add ollama-mcp -- npx -y ollama-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Ollama MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the ollama-mcp block.

About

Ollama MCP is an MCP server that exposes the Ollama SDK as MCP tools. It lets MCP-compatible applications such as Claude Desktop and Cline manage and run local models. Tools cover model management, such as listing, pulling, copying and deleting models, plus text generation, chat, and embeddings. The server uses a hot-swap autoloader that discovers tools placed in the src/tools folder.

Web search and fetch tools are available through Ollama Cloud when an API key is set. The server can also run in hybrid mode, using a local Ollama host together with cloud web tools. It retries rate-limited and some transient errors with exponential backoff. The project is licensed under AGPL-3.0 and is aimed at developers and Ollama users who want their assistant to work with local LLMs.

Written from the project's README and checked against it.

Tools it gives your assistant

  • ollama_listList all available local models.
  • ollama_showGet detailed information about a specific model.
  • ollama_pullDownload models from the Ollama library.
  • ollama_createCreate custom models from a Modelfile.
  • ollama_psList currently running models.
  • ollama_generateGenerate text completions.
  • ollama_chatInteractive chat with models, including tools and functions.
  • ollama_embedGenerate embeddings for text.
  • ollama_web_searchSearch the web with customizable result limits. Requires OLLAMA_API_KEY.
  • ollama_web_fetchFetch and parse web page content. Requires OLLAMA_API_KEY.

What you need

  • Node.js v16 or later
  • Ollama running locally or a reachable Ollama host
  • Ollama Cloud API key for web tools and cloud models
  • An MCP client such as Claude Desktop or Cline

Try asking

  • List the models I have installed locally with Ollama
  • Chat with llama3.2 and explain quantum computing simply
  • Search the web for the latest AI developments and give five results

Good to know

  • Web tools require an Ollama Cloud API key.
  • Web tool requests time out after 30 seconds and retry up to 3 times on rate limits and some server errors.
  • Development setup expects Ollama to be running locally.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Ollama MCP

All alternatives →
Agent Skills Search Server agentskills
100

Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.

BAA Remote 28k
Exa exa-labs
100

Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.

AAA Remote 5.3k
Apify apify
100

Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.

AAA Remote 19k
changedetection.io (official) dgtlmoon
100

Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.

AAA Remote 36k
brave brave
95

Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.

AAA Remote 1.6k
Scrapling MCP ServerD4Vinci
94

Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.

AAA Local 107k

Compare with Agent Skills Search Server, Exa or Apify

Ollama MCP: common questions

Does Ollama MCP work with Claude Desktop?

The source says it works with Claude Desktop, Cline and other MCP clients. It is configured as an MCP server in the client's settings file.

Do I need an API key to use it?

Only the web tools and cloud models need an Ollama Cloud API key, set as OLLAMA_API_KEY. Local models run through a local Ollama instance without one.

How do I add a new tool to the server?

Create a file in src/tools that exports a toolDefinition and add tests for it. The autoloader discovers the new tool without server code changes.

How do I install Ollama MCP?

In Claude Code run claude mcp add ollama-mcp -- npx -y ollama-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Ollama MCP the official server?

Ollama MCP is published by npm:ollama-mcp from its verified domain in the official MCP Registry.

Is Ollama MCP free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is Ollama MCP safe to use?

It scores 67 of 100. Grades: maintenance C, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Ollama MCP?

Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).

Does Ollama MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Ollama MCP Install

Add to stack

Loading.