ollama-mcp-bridge
Verified Safeby 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
docker-compose upEnvironment 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
fastapi_mcp
Automatically converts FastAPI endpoints into Model Context Protocol (MCP) tools for seamless integration with LLM agents.
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-context-forge
An MCP server for retrieving web content and files, then converting them to high-quality markdown format.
mcp-client-for-ollama
An interactive terminal client for connecting local Ollama LLMs to Model Context Protocol (MCP) servers, enabling advanced tool use and workflow automation.