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: 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 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

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

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