Ollama MCP Server
by lykhoydaio.github.Lykhoyda/ask-ollamav0.7.0
Bridge Claude with local Ollama LLMs for private AI-to-AI collaboration — no API keys, fully local
context tax
queued
security
queued
cold start
queued
freshness
Active3d ago
Install Ollama MCP server
Install in Claude Code
claude mcp add ollama -- npx -y @ask-llm/ollama-mcpInstall in Cursor
{
"mcpServers": {
"ollama": {
"command": "npx",
"args": [
"-y",
"@ask-llm/ollama-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"ollama": {
"command": "npx",
"args": [
"-y",
"@ask-llm/ollama-mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"ollama": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ask-llm/ollama-mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"ollama": {
"command": "npx",
"args": [
"-y",
"@ask-llm/ollama-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| OLLAMA_HOST | — | — | Ollama server address (default: http://localhost:11434) |
| GMCPT_TIMEOUT_MS | — | — | Timeout for Ollama execution in milliseconds (default: 300000 = 5 minutes) |
| GMCPT_LOG_LEVEL | — | — | Log verbosity: debug, info, warn, error (default: warn) |
Freshness
Active — last maintenance signal 3d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-07 · 3d ago · GitHub
Latest release
2026-09-29 · 11d ago · GitHub · @ask-llm/mcp@1.1.0
Package published
no data · npm/PyPI
Registry entry updated
2026-09-27 · 13d ago · official registry · v0.7.0
FAQ
›How do I install the Ollama MCP server in Claude Code?
Run: claude mcp add ollama -- npx -y @ask-llm/ollama-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Ollama require an API key?
No required environment variables are declared in its published metadata.
›Can I use Ollama as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Ollama in the official MCP registry?
Yes, as io.github.Lykhoyda/ask-ollama.
Alternatives to Ollama
Other ai & llm tools MCP servers.