Ollama Mcp Proxy — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Ollama Mcp Proxy (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A comprehensive Model Context Protocol (MCP) proxy server that bridges MCP clients with Ollama's local language models, providing advanced features like RAG integration, context management, caching, and production-ready security.
┌─────────────────┐ ┌──────────────────────┐ ┌─────────────────┐
│ MCP Client │ │ Ollama MCP Proxy │ │ Ollama Server │
│ (Claude, etc.) │◄──►│ │◄──►│ (Local AI) │
└─────────────────┘ └──────────────────────┘ └─────────────────┘
│
▼
┌─────────────────┐
│ Configuration │
│ & Storage │
└─────────────────┘git clone https://github.com/ollama-mcp-proxy/ollama-mcp-proxy.git
cd ollama-mcp-proxypython -m venv venv
# Windows
venv\Scripts\activate
# Unix/macOS
source venv/bin/activatepip install -r requirements.txtollama servepython -m ollama_mcp_proxy.server --config config/development.jsonOr using the CLI:
ollama-mcp-proxy --config config/development.jsonThe proxy uses JSON configuration files for different environments:
config/development.json - Development settings with debug modeconfig/production.json - Production-ready configuration{
"ollama": {
"host": "localhost",
"port": 11434,
"timeout": 30,
"max_retries": 3
},
"mcp": {
"port": 8000,
"transport": "http",
"auth_enabled": false
},
"cache": {
"enabled": true,
"type": "hybrid",
"redis": {
"enabled": true,
"host": "localhost",
"port": 6379
}
},
"rag": {
"enabled": false,
"vector_store": "faiss",
"embedding_model": "all-MiniLM-L6-v2"
}
}OLLAMA_HOST - Ollama server host (default: localhost:11434)MCP_PROXY_PORT - MCP proxy port (default: 8000)OLLAMA_MCP_CONFIG - Path to configuration fileAdd to your Claude Desktop MCP configuration:
{
"mcpServers": {
"ollama-proxy": {
"command": "python",
"args": ["-m", "ollama_mcp_proxy"],
"env": {
"OLLAMA_HOST": "localhost:11434",
"MCP_PROXY_PORT": "8000"
}
}
}
}The proxy exposes several MCP tools:
{
"name": "ollama_completion",
"arguments": {
"prompt": "Explain quantum computing",
"model": "llama2",
"temperature": 0.7,
"max_tokens": 500
}
}{
"name": "code_completion",
"arguments": {
"code": "def factorial(n):",
"language": "python",
"model": "codellama"
}
}{
"name": "tool_chain",
"arguments": {
"tools": [
{"tool": "research", "args": {"topic": "AI ethics"}},
{"tool": "summarize", "args": {"input": "{{previous}}"}}
]
}
}MCP resources provide access to:
/models/{model_name} - Model capabilities and metadata/system/status - Health and performance metrics/config/current - Current configuration settings/sessions/{session_id} - Session context and historypip install -e ".[dev]"pre-commit installpython -m ollama_mcp_proxy.server --config config/development.json --debug# Format code
black src/ tests/
# Sort imports
isort src/ tests/
# Run linting
flake8 src/ tests/
# Type checking
mypy src/The project includes comprehensive testing with pytest:
# Run all tests
pytest
# Run with coverage
pytest --cov=ollama_mcp_proxy --cov-report=html
# Run specific test categories
pytest -m unit # Unit tests only
pytest -m integration # Integration tests only
pytest -m load # Load tests only
# Run specific test file
pytest tests/test_auth.py -vTests use comprehensive fixtures defined in conftest.py:
# Build Docker image
docker build -t ollama-mcp-proxy .
# Run with Docker Compose
docker-compose up -d# Production environment variables
export OLLAMA_MCP_CONFIG=/app/config/production.json
export REDIS_URL=redis://localhost:6379
export LOG_LEVEL=INFO/health and /metrics endpointsWe welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ for the MCP community
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.