Back to Home
jonigl icon

ollama-mcp-bridge

Verified Safe

by jonigl

Overview

Proxies Ollama API requests, enriching /api/chat with tools from multiple Model Context Protocol (MCP) servers and orchestrating multi-round tool execution.

Installation

Run Command
docker-compose up

Environment Variables

  • OLLAMA_URL
  • CORS_ORIGINS
  • MAX_TOOL_ROUNDS
  • SYSTEM_PROMPT
  • OLLAMA_PROXY_TIMEOUT

Security Notes

The server allows defining local MCP servers via 'command' in 'mcp-config.json'. This enables arbitrary command execution on the host system based on the configuration file, posing a significant security risk if the 'mcp-config.json' is compromised or not securely managed. Additionally, the default 'CORS_ORIGINS' setting of '*' allows requests from all origins, which is explicitly warned against for production environments and could lead to Cross-Origin Request Forgery (CSRF) vulnerabilities if not properly configured by the user. Ensure 'mcp-config.json' is secure and 'CORS_ORIGINS' is restricted to trusted domains.

Similar Servers

Stats

Interest Score46
Security Score5
Cost ClassMedium
Avg Tokens1200
Stars42
Forks12
Last Update2025-12-13

Tags

OllamaMCPAPI ProxyTool IntegrationFastAPI