Skip to main content
Glama
claude-ollama-mcp

claude-ollama-mcp

by LukeLamb

Claude Ollama

Claude Desktop이 로컬 Ollama 서버를 쿼리하고 관리할 수 있게 합니다. 터미널을 열지 않고도 설치된 모델 목록 확인, 모델 검사, 로컬 모델에 대한 일회성 generate/chat 완성 실행, 또는 레지스트리에서 모델 가져오기/삭제를 수행할 수 있습니다.

일반적인 사용 사례: 동일한 프롬프트에 대해 Claude의 답변과 로컬 모델의 답변 비교, 양자화된 모델에 대한 저비용 대량 완성 실행, 또는 Ollama로 가져온 사용자 지정 학습 체크포인트 모델 확인 등이 있습니다.

요구 사항

  • 실행 중인 Ollama 서버 (ollama serve 또는 Ollama 앱).

  • 기본 엔드포인트는 http://localhost:11434입니다. Ollama를 다른 호스트나 포트에서 실행하는 경우 Claude Desktop의 확장 설정에서 ollama_url 사용자 구성을 통해 재정의하십시오.

  • npm 의존성 없음 — HTTP API를 통한 순수 Node.js.

Related MCP server: Ollama MCP Server

설치 (Claude Desktop)

  1. Releases 페이지에서 최신 Ollama.mcpb를 다운로드합니다.

  2. Claude Desktop에서: 설정 → 확장 → 확장 개발자 → 확장 설치 → .mcpb 파일을 선택합니다.

  3. (선택 사항) 확장 설정에서 Ollama를 기본값이 아닌 호스트/포트에서 실행하는 경우 Ollama server URL을 설정합니다. http://localhost:11434를 사용하려면 비워 두십시오.

도구

도구

주석

목적

ollama_status

읽기 전용

상태 확인 + 서버 버전

list_models

읽기 전용

크기, 다이제스트, 패밀리, 파라미터 크기, 양자화가 포함된 로컬 모델

list_running

읽기 전용

현재 VRAM에 로드된 모델

show_model

읽기 전용

모델 세부 정보: modelfile, 파라미터, 템플릿, 기능

generate

오픈 월드

일회성 텍스트 완성 (비스트리밍)

chat

오픈 월드

메시지 기록이 포함된 채팅 완성 (비스트리밍)

pull_model

오픈 월드

레지스트리에서 모델 다운로드

delete_model

파괴적

로컬에 설치된 모델 제거

예시 프롬프트

"설치된 로컬 모델은 무엇이며, 현재 VRAM에 로드된 모델은 무엇인가요?"

"이 프롬프트에 대해 forge:b6c1을 실행하세요: ''. 그 결과를 당신의 답변과 비교해 보세요."

"forge:b7c1의 modelfile을 보여주세요. 온도 설정을 확인하고 싶습니다."

"llama3.1:70b를 가져오세요." (대형 모델의 경우 오래 걸릴 수 있음)

"forge:b5c3 모델을 삭제하세요. 더 이상 해당 체크포인트가 필요하지 않습니다."

개인정보 보호정책

이 확장은 전적으로 로컬 머신에서 실행되며 Ollama 서버(기본값 http://localhost:11434)로만 HTTP 요청을 보냅니다. 사용자가 명시적으로 ollama_url을 원격 Ollama 인스턴스를 가리키도록 구성하지 않는 한 데이터는 머신을 떠나지 않으며, 원격으로 설정한 경우에만 프롬프트와 응답이 해당 서버로 전송됩니다.

Claude가 볼 수 있는 정보는 다음과 같습니다:

  • generate 및 chat에 전달하는 모든 프롬프트와 채팅 메시지 (이 내용은 Ollama 서버로 전송되며, 서버 구성에 따라 로그가 남을 수 있습니다).

  • Ollama가 반환하는 완성된 텍스트 전체.

  • 설치된 모든 모델의 메타데이터 (이름, 다이제스트, 크기, 양자화, modelfile 내용).

  • 현재 VRAM에 로드된 모델 및 해당 모델의 크기 점유율.

독점적인 파인튜닝 모델이나 민감한 메타데이터가 포함된 modelfile을 설치한 경우, show_model 또는 list_models를 호출할 때 Claude가 해당 정보를 볼 수 있음을 유의하십시오.

delete_model은 파괴적이며 이 확장 프로그램에서 되돌릴 수 없습니다. 실수로 삭제한 경우 레지스트리에서 다시 가져오거나(또는 소스 블롭에서 다시 가져와야) 합니다.

문제 해결

"cannot reach Ollama at http://localhost:11434 — is the server running?" — ollama serve로 Ollama를 시작하거나 Ollama 앱을 실행하십시오. curl http://localhost:11434/로 확인하십시오 ("Ollama is running"이 반환되어야 합니다).

pull_model이 오랫동안 멈춤 — stream: false를 사용하는 Ollama의 pull API는 전체 다운로드가 완료될 때까지 차단되며, 다중 GB 모델의 경우 몇 분이 걸릴 수 있습니다. 대형 모델을 가져오는 경우 터미널에서 ollama pull <name>을 대신 실행하십시오. 거기서는 스트리밍 진행 상황을 볼 수 있으며, 이후 MCP 호출 시 모델이 이미 설치된 것을 확인할 수 있습니다.

사용자 지정/원격 Ollama 엔드포인트 — 확장 설정에서 ollama_url을 설정하십시오 (예: http://192.168.1.42:11434). 확장 프로그램을 다시 시작해야 합니다.

사용을 중단한 후에도 list_running에 모델이 표시됨 — Ollama는 구성 가능한 TTL(기본값 5분) 동안 모델을 VRAM에 유지합니다. expires_at 타임스탬프는 모델이 언로드될 시간을 알려줍니다. 이는 확장 프로그램이 아닌 Ollama의 동작입니다.

개발

약 400줄의 단일 Node.js 스크립트이며, npm 의존성은 없습니다. .mcpb를 다시 빌드하려면:

cd bundle-source
zip -j ../Ollama.mcpb manifest.json package.json server.js README.md LICENSE icon.png glama.json

라이선스

MIT. LICENSE를 참조하십시오.

관련 항목

Available Tools

8 tools
chatA

Run a chat completion against a local model with message history (non-streaming). Returns the assistant's reply plus timing.

Inputs: model (required), messages (required), options.

delete_modelA
Destructive

Delete a locally-installed model. Does not affect the remote registry copy. Free the disk space of a model you no longer need.

Inputs: name (required).

generateA

Run a one-shot text completion against a local model (non-streaming). Returns the full response text plus timing and tokens/second.

Inputs: model (required), prompt (required), system, options.

list_modelsA
Read-only

List locally-installed models: name, size in bytes, digest, modified timestamp, family (e.g. llama), parameter size (e.g. 8.0B), and quantization level (e.g. Q4_K_M).

Inputs: no named parameters.

list_runningA
Read-only

List models currently loaded into VRAM with their size, VRAM footprint, and expiry timestamp. Empty list means Ollama is idle.

Inputs: no named parameters.

ollama_statusA
Read-only

Health check: whether the Ollama server is reachable and its version. Use this as a precondition before other tools if you're unsure whether Ollama is running.

Inputs: no named parameters.

pull_modelA

Download a model from the Ollama registry. Blocks until complete — can take a long time for multi-GB models. For very large pulls, prefer ollama pull in a terminal where you can watch progress.

Inputs: name (required).

show_modelA
Read-only

Show detailed information for a specific model: modelfile excerpt, parameters, template, capabilities, architecture details, quantization level.

Inputs: name (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: chat vs generate differentiate by context (with/without history); model management tools (list, pull, delete, show, list_running) are non-overlapping; ollama_status is a standalone health check. No ambiguity in roles.

    Naming Consistency4/5

    Most names follow a verb_noun pattern (e.g., delete_model, list_models, pull_model). 'chat' and 'generate' are single verbs but still actions. 'ollama_status' deviates slightly (noun_noun) but is readable. Overall consistent with minor exceptions.

    Tool Count5/5

    8 tools cover the essential operations for a local Ollama server: model management (list, pull, delete, show, list_running), two inference modes (chat, generate), and a health check. Well-scoped without bloat or deficiency.

    Completeness4/5

    Core CRUD and inference are covered, but streaming support is absent (only non-streaming provided). No tool to adjust model parameters or embeddings. Minor gaps for advanced use, but sufficient for standard workflows.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with locally running Ollama models through chat, generation, and model management operations. Supports listing, downloading, and deleting models while maintaining conversation history for interactive sessions.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      A bridge that enables Claude Code to interact with local Ollama instances for text generation, multi-turn chat, and vision-based analysis. It supports model management tasks such as listing, pulling, and showing details, alongside generating text embeddings.
      6
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Exposes local Ollama instances as tools for Claude Code, allowing users to offload code generation, text drafting, and embedding tasks to local GPUs. It supports multi-turn conversations and model management through the Model Context Protocol.
      MIT