ask-ollama-mcp
v0.3.4
Published
MCP server for local Ollama LLM integration - for Claude IDE and other IDEs
Downloads
899
Maintainers
Readme
Ask Ollama MCP
MCP server for local Ollama LLMs — no API keys, fully private
An MCP server for AI-to-AI collaboration via local Ollama models. Works with Claude Code, Claude Desktop, Cursor, Warp, Copilot, and 40+ other MCP clients. Run code reviews and analysis entirely locally — no data leaves your machine, no API keys needed, zero cost.
Part of the Ask LLM monorepo.
Quick Start
Claude Code
claude mcp add ollama -- npx -y ask-ollama-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ollama": {
"command": "npx",
"args": ["-y", "ask-ollama-mcp"]
}
}
}Any MCP Client
{
"command": "npx",
"args": ["-y", "ask-ollama-mcp"]
}Prerequisites
- Node.js v20.0.0 or higher
- Ollama installed and running locally
- A model pulled:
ollama pull qwen2.5-coder:7b
Tools
| Tool | Purpose |
|------|---------|
| ask-ollama | Send prompts to local Ollama via HTTP. Defaults to qwen2.5-coder:7b |
| ping | Lists locally available Ollama models via /api/tags |
Models
| Model | Use Case |
|-------|----------|
| qwen2.5-coder:7b | Default — good balance of speed and capability |
| qwen2.5-coder:1.5b | Automatic fallback if 7b not available |
Configuration
Set OLLAMA_HOST to customize the Ollama server address (default: http://localhost:11434).
Documentation
Full docs at lykhoyda.github.io/ask-llm
License
MIT
