Model Context Protocol server that proxies local Ollama to MCP clients like Windsurf and VS Code
MCP MCP server exists for a simple reason — assistants are far more useful when they can act on MCP directly instead of describing what you should do. Model Context Protocol server that proxies local Ollama to MCP clients like Windsurf and VS Code.
You can also wire this server into any MCP client (Windsurf, Cursor, Claude Desktop, etc.) without the extension — see Quick Start below.
Once MCP is connected, these are the calls the assistant has available:
Docs — Full documentationPyPI — mcp-ollama-pythonollama_chat — Chat with any local model (multi-turn, tool-calling)ollama_generate — Generate text completionsollama_embed — Create vector embeddingsollama_list — List installed modelsollama_show — Inspect model detailsollama_pull — Download new modelsollama_delete — Remove modelsollama_ps — List running modelsGuide — DescriptionProject — RoleThe server ships on PyPI as mcp-ollama-python, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
You will need 2 environment variables: OLLAMA_HOST, OLLAMA_ALLOW_REMOTE_HOST. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP's toolset — Docs, PyPI, ollama_chat and 9 more — is a fair guide to whether it matches your workflow. It is maintained by Pedja Blagojevic; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Docs | [Full documentation](https://pblagoje.github.io/mcp-ollama-python/) |
| PyPI | [mcp-ollama-python](https://pypi.org/project/mcp-ollama-python/) |
| ollama_chat | Chat with any local model (multi-turn, tool-calling) |
| ollama_generate | Generate text completions |
| ollama_embed | Create vector embeddings |
| ollama_list | List installed models |
| ollama_show | Inspect model details |
| ollama_pull | Download new models |
| ollama_delete | Remove models |
| ollama_ps | List running models |
| Guide | Description |
| Project | Role |
{
"mcpServers": {
"ollama-python": {
"command": "uvx",
"args": ["mcp-ollama-python"],
"env": {
"OLLAMA_HOST": "your-value",
"OLLAMA_ALLOW_REMOTE_HOST": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| OLLAMA_HOST | Endpoint or connection string the server talks to. | Optional |
| OLLAMA_ALLOW_REMOTE_HOST | Endpoint or connection string the server talks to. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.