A Model Control Protocol server that allows Claude Desktop to communicate with Ollama LLM server.
- Clone the repository
- Copy
.env.example
to.env
and configure as needed - Install dependencies:
pip install -r requirements.txt
- Run server:
python -m src.mcp_server.server
docker build -t mcp-server-ollama .
Edit the claude_desktop_config.json
file with the following content:
{
"mcpServers": {
"ollama-server": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp-server-ollama"]
}
}
}