MCP Server for Ollama
by vincentf305
This is a Model Control Protocol (MCP) server designed to enable communication between Claude Desktop and an Ollama LLM server. It acts as a bridge, allowing Claude Desktop to interact with Ollama.
View on GitHub
Last updated: N/A
MCP Server for Ollama
A Model Control Protocol server that allows Claude Desktop to communicate with Ollama LLM server.
Setup
- Clone the repository
- Copy
.env.example
to.env
and configure as needed - Install dependencies:
pip install -r requirements.txt
Using with Claude Desktop
Edit the claude_desktop_config.json
file with the following content, change path-to-mcp-server to the path of this repo:
{
"mcpServers": {
"ollama-server": {
"command": "python",
"args": ["-m", "src.mcp_server.server"],
"env": {
"PYTHONPATH": "path-to-mcp-server"
}
}
}
}