Ollama MCP Server for allowing claude code to use local or free cloud models. This should reduce the claude code usage of token and usage limit.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"ollama-mcp-server": {
"command": "npx",
"args": [
"-y",
"Shahriar-Hossein/ollama-mcp-server"
]
}
}
}
Run in terminal:
claude mcp add ollama-mcp-server npx -y Shahriar-Hossein/ollama-mcp-server
Add to .cursor/mcp.json:
{
"mcpServers": {
"ollama-mcp-server": {
"command": "npx",
"args": [
"-y",
"Shahriar-Hossein/ollama-mcp-server"
]
}
}
}