EM

emgeee/mcp-ollama

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

34 stars 14 forks 品質 49 トレンド 0MIT

emgeee/mcp-ollama は [https://github.com/emgeee/mcp-ollama. からインポートされた MCP サーバーの候補です

概要

emgeee/mcp-ollama は [https://github.com/emgeee/mcp-ollama. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

Claude Desktopや他のMCPクライアントとOllamaを統合するためのモデルコンテキストプロトコル(MCP)サーバー。

要件

  • Python 3.10以上
  • Ollama のインストールと実行 ([https://ollama.com/download))
  • Ollama(例、ollama pull llama2)で引き出される少なくとも1つのモデル)

###Claudeデスクトップの設定

macOS の %APPDATA%\Claude\claude_desktop_config.json で Claude デスクトップの設定 ([~/Library/Application Support/Claude/claude_desktop_config.json) に追加します。

###開発

開発モードに取付けて下さい:

MCP の検査器とテストして下さい:

##特徴

サーバは4つの主要なツールを提供しています。

  • [list_models - ダウンロードしたすべてのオラマモデルのリスト
  • [show_model - 特定のモデルに関する詳細情報を入手
  • [ask_model - 指定されたモデルに質問をします

ライセンス

ログイン

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

MCP Ollama

A Model Context Protocol (MCP) server for integrating Ollama with Claude Desktop or other MCP clients.

Requirements

  • Python 3.10 or higher
  • Ollama installed and running (https://ollama.com/download)
  • At least one model pulled with Ollama (e.g., ollama pull llama2)

Configure Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "ollama": {
      "command": "uvx",
      "args": [
        "mcp-ollama"
      ]
    }
  }
}

Development

Install in development mode:

git clone https://github.com/yourusername/mcp-ollama.git
cd mcp-ollama
uv sync

Test with MCP Inspector:

mcp dev src/mcp_ollama/server.py

Features

The server provides four main tools:

  • list_models - List all downloaded Ollama models
  • show_model - Get detailed information about a specific model
  • ask_model - Ask a question to a specified model

License

MIT

GitHub で README 全文を見る

インストール

uvx mcp-ollama
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "ollama": { "command": "uvx", "args": [ "mcp-ollama" ] } } }