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 Host

MCP server by chrisryugj Verified · npm:ollama-mcp-host

Runs multiple MCP servers with a local Ollama model so the model can pick and call tools without cloud services. Built for privacy-focused, air-gapped and on-premise setups, with a CLI and a library.

  • Score 65
  • 25 stars
  • 14 a week
  • MIT
  • Updated

Install Ollama MCP Host

Built from the published package, never by AI.

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

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

Step-by-step: install Ollama MCP Host 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-host block.

About

Ollama MCP Host is a command line tool and library that runs several MCP servers at once with a local Ollama model. The model chooses which tool to call, calls it, and answers based on the real result. The README uses two Korean public-sector MCP servers, korean-law-mcp and kordoc, as examples, but it says any stdio MCP server works. Inference stays on your own machine or private network, and the host has one runtime dependency, @modelcontextprotocol/sdk.

The host always sends think false to Ollama so that tool calls fire reliably with gemma models. You describe your servers in an mcp.config.json file. You can use an interactive terminal chat or import McpHost into your own code. The project is aimed at privacy-focused, air-gapped and on-premise setups, and the README includes steps for offline installs.

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

Tools it gives your assistant

  • search_lawSearches Korean statutes, as shown in the korean-law-mcp example.
  • generate_documentCreates documents such as HWPX files, as shown in the kordoc example.
  • /toolsLists the tools available in the current chat session.

What you need

  • Node.js 20 or later
  • Ollama with a tool-capable model such as gemma4:e4b
  • One or more MCP servers installed locally
  • LAW_OC API key from open.law.go.kr for korean-law-mcp

Try asking

  • Which agency oversees the Road Traffic Act?
  • Search Korean statutes for the Road Traffic Act and summarize it.
  • Generate an HWPX report with this content and save it to my folder.

Good to know

  • korean-law-mcp needs outbound access to law.go.kr to return statute content.
  • Ollama has no built-in authentication, so it should only be exposed on a trusted LAN.
  • The model must list the tools capability in Ollama or tool calls will not work.

Security check

C
  • Asks for administrator rights (sudo)In README.md: `sudo

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 Host

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.

AAA Remote 24k
Sim simstudioai
100

Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.

AAA Remote 30k
Omnara omnara-ai
98

Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.

AAA Remote 3.5k
strata Klavis-AI
95

Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.

AAA Remote 5.8k
voicemode mbailey
95

VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

Ollama MCP Host: common questions

Does it need an internet connection?

The README says inference runs fully locally and can run inside an offline network. The korean-law-mcp server does need outbound access to law.go.kr to fetch statutes, while kordoc only reads local files.

Why does the model sometimes not call my tools?

The README says gemma models with thinking mode can reason internally and skip the tool call. This host always sends think false to Ollama to avoid that.

Can I use it from code instead of the terminal?

Yes. The source says the package can be imported as a library with import { McpHost }.

How do I install Ollama MCP Host?

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

Is Ollama MCP Host the official server?

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

Is Ollama MCP Host free?

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

Is Ollama MCP Host safe to use?

It scores 65 of 100. Grades: maintenance B, licence A, quality C. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.

What are alternatives to Ollama MCP Host?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does Ollama MCP Host 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 Host Install

Add to stack

Loading.