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.
Install Ollama MCP Host
Built from the published package, never by AI.
claude mcp add ollama-mcp-host -- npx -y ollama-mcp-hostRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"ollama-mcp-host": {
"args": [
"-y",
"ollama-mcp-host"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"ollama-mcp-host": {
"args": [
"-y",
"ollama-mcp-host"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"ollama-mcp-host": {
"args": [
"-y",
"ollama-mcp-host"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add ollama-mcp-host -- npx -y ollama-mcp-host{
"mcpServers": {
"ollama-mcp-host": {
"args": [
"-y",
"ollama-mcp-host"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add ollama-mcp-host npx -y ollama-mcp-hostGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 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.
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.
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.
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.
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.
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.
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.
