Skip to main content
Glama

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

draft_code

Generate boilerplate and scaffolding

draft_commit_message

Write commit messages from diffs

draft_content

Draft documentation and prose

classify_task

Auto-route work to the right agent type

summarize_file

Summarize unfamiliar source files

triage_issues

Classify and prioritize issues

list_models

List available Ollama models

check_updates

Check for model updates

get_config

Show current configuration

Related MCP server: token-diet

VRAM Management

The server monitors GPU memory via nvidia-smi and selects models based on available VRAM. Models are loaded on demand.

Setup

npm install

Requires Ollama running locally with models pulled.

Usage

npm start

Configure in Claude Code MCP settings:

{
  "mcpServers": {
    "ollama": {
      "command": "node",
      "args": ["/path/to/ollama-mcp/index.js"]
    }
  }
}

Tech Stack

  • Node.js (>=18)

  • @modelcontextprotocol/sdk

  • Zod for schema validation

  • Ollama API for local model inference

  • nvidia-smi for VRAM monitoring

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Local-first MCP server that gives any AI coding agent per-project memory, workflow intelligence, and always-on, lossless token & context optimization.
    37
    18
    4
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    An MCP server that reduces token usage by injecting graph-ranked repo maps, decision logs, and diff-only output into AI coding tool requests.
    1
    MIT