GitHub MCP Server
GitHub MCP CLI with Ollama
Ollama を使ったターミナルベースのプロジェクトで、Model Context Protocol (MCP) とローカル LLM を使用して GitHub データを照会・要約します。
概要
このプロジェクトは、以下の2つのコンポーネントに分かれています。
MCP サーバー (
server.py):fastmcpで構築されており、GitHub リポジトリの詳細、最近の issue、最近のコミットを取得するためのツールを提供します。CLI クライアント (
client.py):richと LangChain を使用した対話型ターミナルインターフェースで、ローカルの Ollama モデルと通信して MCP ツールと対話します。
Related MCP server: GitHub MCP Server
セットアップ
依存関係をインストールします:
pip install -r requirements.txtGitHub アクセスを設定します: レート制限を増やし、プライベートリポジトリにアクセスするには、GitHub Personal Access Token (PAT) を環境変数としてエクスポートします(または
.envファイルに入れます):export GITHUB_TOKEN="your_personal_access_token_here"Ollama を起動します: ローカルで Ollama がツール対応モデル(
llama3.2など)で実行されていることを確認します:ollama run llama3.2クライアントを実行します:
python client.py
開発
現在、server.py と client.py はどちらも完全に動作します。クライアントは MultiServerMCPClient と LangChain の React Agent を使用して、ツールにシームレスに接続し、質問を Ollama にルーティングします。
MCP サーバーが公開するツール:
get_repo(owner, repo): リポジトリの基本情報を取得します。list_issues(owner, repo, state, limit): 最近の issue を取得します。list_commits(owner, repo, limit): 最近のコミットを取得します。
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server that exposes GitHub operations as tools for AI agents, enabling code search, issue management, and PR review.1228 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools for interacting with the GitHub API, enabling AI assistants to query repositories, pull requests, issues, commits, users, and more.522 npmISC
- AlicenseBqualityDmaintenanceA comprehensive MCP server that exposes 73 GitHub API tools for managing repositories, pull requests, issues, actions, releases, search, and more, enabling natural language control of GitHub.73MIT
- AlicenseAqualityDmaintenanceA lightweight MCP server that enables fetching public GitHub user profiles, repository stats, recent events, and pull request insights through simple tool calls.2137 npm1MIT