About MCP Server for Ollama
MCP Server for Ollama connects Claude Desktop with an Ollama LLM server. It is intended for people who want Claude Desktop to communicate with Ollama.
Key features
- 01Connects Claude Desktop to Ollama
Use cases
- 01Communicating with an Ollama LLM server from Claude Desktop
MCP support
It is an MCP server that enables Claude Desktop to communicate with an Ollama LLM server.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Server for Ollama
A Model Control Protocol server that allows Claude Desktop to communicate with Ollama LLM server.
Setup
- Clone the repository
- Copy
.env.exampleto.envand 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"
}
}
}
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.