GitHub MCP Server
GitHub MCP CLI mit Ollama
Ein terminalbasiertes Projekt, das das Model Context Protocol (MCP) und lokale LLMs (über Ollama) verwendet, um GitHub-Daten abzufragen und zusammenzufassen.
Überblick
Dieses Projekt ist in zwei Komponenten aufgeteilt:
MCP-Server (
server.py): Mitfastmcperstellt, stellt er Tools bereit, um GitHub-Repository-Details, aktuelle Issues und aktuelle Commits abzurufen.CLI-Client (
client.py): Eine interaktive Terminal-Oberfläche, dierichund LangChain verwendet und mit einem lokalen Ollama-Modell kommuniziert, um mit den MCP-Tools zu interagieren.
Related MCP server: GitHub MCP Server
Einrichtung
Abhängigkeiten installieren:
pip install -r requirements.txtGitHub-Zugriff konfigurieren: Für erhöhte Rate-Limits und Zugriff auf private Repositories exportieren Sie Ihr GitHub Personal Access Token (PAT) als Umgebungsvariable (oder legen Sie es in einer
.env-Datei ab):export GITHUB_TOKEN="your_personal_access_token_here"Ollama starten: Stellen Sie sicher, dass Ollama lokal mit einem tool-fähigen Modell (wie
llama3.2) läuft:ollama run llama3.2Client ausführen:
python client.py
Entwicklung
Derzeit sind sowohl server.py als auch client.py voll funktionsfähig. Der Client verwendet MultiServerMCPClient und den React Agent von LangChain, um nahtlos eine Verbindung zu den Tools herzustellen und Ihre Fragen an Ollama weiterzuleiten.
Vom MCP-Server bereitgestellte Tools:
get_repo(owner, repo): Grundlegende Details zu einem Repository abrufen.list_issues(owner, repo, state, limit): Aktuelle Issues abrufen.list_commits(owner, repo, limit): Aktuelle Commits abrufen.
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