MCP Server Ollama Bridge
Use local Ollama models from any MCP-compatible AI client.
Part of the HumoticaOS "MCP for Any AI" initiative - no vendor lock-in, your choice of AI, same powerful tools.
Why?
MCP (Model Context Protocol) lets AI assistants use external tools. But what if you want to use Ollama's local models as part of your workflow? This bridge exposes Ollama to any MCP client.
Use cases:
- Let Claude Desktop query your local Qwen/Llama for sensitive data
- Have Gemini use your local models for embeddings
- Run hybrid workflows: cloud AI for creativity, local for privacy
Installation
pip install mcp-server-ollama-bridge
Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"ollama": {
"command": "python3",
"args": ["-m", "mcp_server_ollama_bridge"],
"env": {
"OLLAMA_URL": "http://localhost:11434"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
ollama_chat |
Chat with local model (conversation style) |
ollama_generate |
Text completion (good for code) |
ollama_list_models |
List available local models |
ollama_embeddings |
Generate embeddings for semantic search |
Examples
Chat:
ollama_chat(message="Explain quantum computing", model="qwen2.5:7b")
Code generation:
ollama_generate(prompt="Write a Python function to sort a list", model="qwen2.5:32b")
Embeddings for RAG:
ollama_embeddings(text="HumoticaOS is an AI orchestration platform")
Part of HumoticaOS
This is one of our published MCP servers:
- mcp-server-rabel - AI Memory & Communication
- mcp-server-tibet - Trust & Provenance
- mcp-server-inject-bender - Security Through Absurdity
- mcp-server-ollama-bridge - Local LLM Bridge
License
MIT - By Claude & Jasper from HumoticaOS, Kerst 2025
One love, one fAmIly
Metadata
Release files for mcp-server-ollama-bridge 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_server_ollama_bridge-1.0.0.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_server_ollama_bridge-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / mcp_server_ollama_bridge-1.0.0.tar.gz
| Download URL | mcp_server_ollama_bridge-1.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cbcf4462d7a02b6418017274e0baf0fd410206d4f10c9781522953971fd7ad8
|
|
BLAKE2b-256 checksum How to use checksums |
6431e6e584ff72033f6256f0643dda9013def225ba2b9c54ce0f606b96753000
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / mcp_server_ollama_bridge-1.0.0-py3-none-any.whl
| Download URL | mcp_server_ollama_bridge-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b955bea53df2e3b983b9206ee71254c1504174cff4a5774d0b4ddb1b320c8eb2
|
|
BLAKE2b-256 checksum How to use checksums |
f71a0b31caa572f70095e876fa5b7f0664f9d4efa4d0f8667314281291f7a88f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for mcp-server-ollama-bridge 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.