ollama-mcp
Provides tools for generating code, commit messages, documentation, task classification, file summarization, and issue triage using local Ollama models with VRAM-aware model selection.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ollama-mcpdraft a basic Express.js route handler for a user API"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ollama-mcp
VRAM-aware MCP server that offloads token-heavy development tasks to local Ollama models, saving API tokens for complex reasoning.
Tools
Tool | Description |
| Generate boilerplate and scaffolding |
| Write commit messages from diffs |
| Draft documentation and prose |
| Auto-route work to the right agent type |
| Summarize unfamiliar source files |
| Classify and prioritize issues |
| List available Ollama models |
| Check for model updates |
| Show current configuration |
Related MCP server: Ollama MCP Server
VRAM Management
The server monitors GPU memory via nvidia-smi and selects models based on available VRAM. Models are loaded on demand.
Setup
npm installRequires Ollama running locally with models pulled.
Usage
npm startConfigure in Claude Code MCP settings:
{
"mcpServers": {
"ollama": {
"command": "node",
"args": ["/path/to/ollama-mcp/index.js"]
}
}
}Tech Stack
Node.js (>=18)
@modelcontextprotocol/sdkZod for schema validation
Ollama API for local model inference
nvidia-smifor VRAM monitoring
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DTG404/ollama-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server