Ollama集成
STDIO连接Claude与Ollama的MCP服务器
连接Claude与Ollama的MCP服务器
A Model Control Protocol server that allows Claude Desktop to communicate with Ollama LLM server.
.env.example
to .env
and configure as neededpip install -r requirements.txt
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" } } } }