Model Context Protocol server that proxies local Ollama to MCP clients like Windsurf and VS Code
Project description
🦙 Ollama MCP Server (Python)
Supercharge your AI assistant with local LLM access
A Python MCP server that exposes your local Ollama models as tools for AI assistants like Windsurf, VS Code, Claude Desktop, and more.
What It Does
Connect your local LLMs to any MCP-compatible AI assistant. No cloud APIs needed.
| Tool | What it does |
|---|---|
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 |
Quick Start
Prerequisites: Python 3.10+, Ollama running locally
pip install mcp-ollama-python
Windsurf / VS Code
Add to your MCP config (mcp_config.json):
{
"mcpServers": {
"ollama": {
"command": "py",
"args": ["-m", "mcp_ollama_python"],
"disabled": false
}
}
}
Restart your editor — done. Your AI assistant can now use local Ollama models.
Try It
Type in your AI assistant's chat:
MCP Tool: ollama / ollama_chat — Use model llama3.1 and explain quantum computing
Key Features
- 🔧 8 MCP tools — Full Ollama SDK access
- 🔄 Hot-swap architecture — Drop a file in
tools/, it's auto-discovered - 🎯 Type-safe — Pydantic models throughout
- 🚀 Lightweight — Minimal dependencies, fast startup
- 🔌 Universal — Works with any MCP client
Documentation
| Guide | Description |
|---|---|
| Installation | Setup and prerequisites |
| Available Tools | All tools with examples |
| Configuration | Environment variables, model config |
| Windsurf Integration | Complete Windsurf setup guide |
| VS Code Integration | VS Code setup |
| Architecture | How it works, adding tools |
| Server Control | Start/stop/manage the server |
| Interactive Manager | Menu-driven management UI |
| Development | Contributing, code quality |
License
Made with ❤️ using Python, Poetry, and Ollama
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_ollama_python-1.0.6.tar.gz.
File metadata
- Download URL: mcp_ollama_python-1.0.6.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a52b5842d301c07bbe9c8808495a387d1fcd589646eda00a943f0f30d9262205
|
|
| MD5 |
34459c6a63a4c74ac7737ea6da02c1b0
|
|
| BLAKE2b-256 |
0663c3ea24515a34a21bac2e5e9d46cbb9eaa35e24a0589492035205b4f2d180
|
Provenance
The following attestation bundles were made for mcp_ollama_python-1.0.6.tar.gz:
Publisher:
release.yml on pblagoje/mcp-ollama-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_ollama_python-1.0.6.tar.gz -
Subject digest:
a52b5842d301c07bbe9c8808495a387d1fcd589646eda00a943f0f30d9262205 - Sigstore transparency entry: 976649712
- Sigstore integration time:
-
Permalink:
pblagoje/mcp-ollama-python@41dbdcf09a946b68821448227968c9d0c197fd09 -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/pblagoje
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@41dbdcf09a946b68821448227968c9d0c197fd09 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_ollama_python-1.0.6-py3-none-any.whl.
File metadata
- Download URL: mcp_ollama_python-1.0.6-py3-none-any.whl
- Upload date:
- Size: 46.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87db1e5617f306fe8e11bf9065be51db3bf7386474bd4c961df70b4ab9930742
|
|
| MD5 |
4cd286b737b41106b55b5eb20523b330
|
|
| BLAKE2b-256 |
93ba2c316d6feb46f3c220d64666c82abf3b8b645d1826f87f2c77357edc49f8
|
Provenance
The following attestation bundles were made for mcp_ollama_python-1.0.6-py3-none-any.whl:
Publisher:
release.yml on pblagoje/mcp-ollama-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_ollama_python-1.0.6-py3-none-any.whl -
Subject digest:
87db1e5617f306fe8e11bf9065be51db3bf7386474bd4c961df70b4ab9930742 - Sigstore transparency entry: 976649725
- Sigstore integration time:
-
Permalink:
pblagoje/mcp-ollama-python@41dbdcf09a946b68821448227968c9d0c197fd09 -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/pblagoje
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@41dbdcf09a946b68821448227968c9d0c197fd09 -
Trigger Event:
push
-
Statement type: