Installation überspringen. In unter 2 Minuten einsatzbereit.
Starte eine kostenlose Testphase auf cloud.anythingmcp.com, füge GitHub mit einem Klick hinzu und richte deinen KI-Client (Claude, ChatGPT, Copilot oder Cursor) auf den erzeugten MCP-Endpoint. Kein Docker, kein git clone, keinerlei Entwicklungserfahrung nötig.
Zusammenfassung
Arbeite mit GitHub aus Claude, ChatGPT oder Copilot über den offiziellen MCP-Server von GitHub: Code und Commits lesen, Repositories durchsuchen, Issues sichten sowie Pull Requests öffnen und reviewen.
Frag einfach
Beispiel-Prompts für GitHub
Klick auf einen Prompt, um ihn zu kopieren. In Claude, ChatGPT, Cursor, Gemini, Copilot oder OpenClaw einfügen — und gegen diesen Connector laufen lassen.
Claude ist KI und kann Fehler machen. Bitte Antworten gegenprüfen.
💡 Keine Installation? Nutze cloud.anythingmcp.com direkt. Einloggen, Connectors → GitHub klicken, Zugangsdaten einfügen, MCP-API-Key erzeugen — fertig. Kein Docker, kein
git clone, kein lokaler Server.
GitHub
Arbeite mit GitHub aus Claude, ChatGPT oder Copilot über den offiziellen MCP-Server von GitHub: Code und Commits lesen, Repositories durchsuchen, Issues sichten sowie Pull Requests öffnen und reviewen.
Einrichtung
AnythingMCP verbindet sich mit dem offiziellen Remote-MCP-Server von GitHub (https://api.githubcopilot.com/mcp/) über einen Personal Access Token. Die Tools liefert der Server von GitHub: Bei der Installation liest AnythingMCP die aktuelle Tool-Liste, und jedes Tool bekommt das Präfix github_. Wenn GitHub neue Tools ergänzt, öffne den Connector und klicke auf Discover tools.
- Öffne auf GitHub Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token (direkter Link). Wähle den Resource Owner (dein Konto oder eine Organisation), ein Ablaufdatum und Only select repositories mit den Repositories, die die KI erreichen soll.
- Setze unter Repository permissions Contents, Issues und Pull requests auf Read-only, oder auf Read and write, wo die KI Branches anlegen, committen oder Issues und Pull Requests eröffnen soll. Metadata (Read-only) kommt automatisch dazu. Für
github_get_teamsundgithub_get_team_membersbrauchst du zusätzlich die Organisationsberechtigung Members: Read-only. - Gehört das Repository einer Organisation, muss ein Organisations-Owner den Token eventuell erst freigeben (in der Organisation unter Settings → Personal access tokens → Pending requests). Bei Organisationen mit SAML Single Sign-on muss der Token außerdem für SSO autorisiert sein.
- Füge den Token in
GITHUB_PATein und installiere den Connector. Ein klassischer Token (ghp_…, Scoperepo, plusread:orgfür Teams) funktioniert auch, erreicht aber jedes Repository, auf das du Zugriff hast. Ein Fine-grained Token ist daher die sicherere Wahl.
Organisationsrichtlinien: Bei Copilot Business oder Copilot Enterprise muss die Richtlinie MCP servers in Copilot für die Organisation aktiviert sein. Organisationen können Personal Access Tokens einschränken, und bei Enterprise Managed Users sind sie eventuell ganz deaktiviert. Für GitHub Enterprise Cloud mit Datenresidenz änderst du die Basis-URL des Connectors auf https://copilot-api.<your-subdomain>.ghe.com/mcp. GitHub Enterprise Server hat keinen gehosteten MCP-Server.
Toolsets und Nur-Lese-Modus: Standardmäßig liefert GitHub die Toolsets context, repos, issues, pull_requests und users. Um das zu ändern, ergänzt du im Connector-Editor den Header X-MCP-Toolsets (zum Beispiel repos,issues,pull_requests,actions oder all), oder X-MCP-Readonly: true, damit nur lesende Tools angeboten werden. Klicke danach auf Discover tools.
Bei der Installation ausgeschaltet: github_merge_pull_request, github_push_files, github_create_or_update_file und github_delete_file. Tools, die ein Toolset-Header später hinzufügt, etwa das Löschen von Repositories, kommen ebenfalls ausgeschaltet an. Du kannst jedes davon einzeln im Connector einschalten. Alles läuft im Namen des Token-Inhabers, und Texte in Issues und Pull Requests öffentlicher Repositories sind nicht vertrauenswürdige Eingaben (X-MCP-Lockdown: true blendet Inhalte von Autoren ohne Push-Rechte aus).
Erster Aufruf: github_get_me zeigt, wem der Token gehört; danach nutzt du github_search_repositories, github_get_file_contents, github_list_issues und github_pull_request_read. Ein 401 bedeutet, dass der Token falsch, abgelaufen oder widerrufen ist; ein 403 deutet auf eine fehlende Berechtigung, eine ausstehende Freigabe der Organisation oder SSO-Autorisierung oder eine Richtlinie hin; ein 404 bei einem privaten Repository heißt meist, dass der Token es nicht enthält.
Voraussetzungen: GITHUB_PAT
Connector lokal installieren
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Öffne http://localhost:3000/connectors/store, wähle GitHub und trage die unter Voraussetzungen aufgelisteten Variablen ein.
Verfügbare Tools
| Tool | What it does |
|---|---|
github_add_comment_to_pending_review | Add review comment to the requester's latest pending pull request review |
github_add_issue_comment | Add a comment and/or reaction to a specific issue or issue comment in a GitHub repository |
github_add_reply_to_pull_request_comment | Add a reply and/or reaction to an existing pull request comment |
github_create_branch | Create a new branch in a GitHub repository, starting from from_branch or, when it is omitted, from the repository's default branch |
github_create_or_update_file | Create or update a single file in a GitHub repository |
github_create_pull_request | Create a new pull request in a GitHub repository from the head branch into the base branch, optionally as a draft and with reviewers… |
github_create_repository | Create a new GitHub repository in your account or specified organization |
github_delete_file | Delete a file from a GitHub repository by committing its removal to the given branch with a commit message |
github_fork_repository | Fork a GitHub repository to your account or specified organization |
github_get_commit | Get details for a commit from a GitHub repository: message, author and, depending on detail, the stats or the full patch of the changed… |
github_get_file_contents | Get the contents of a file or directory from a GitHub repository |
github_get_label | Get a specific label from a repository by its name, with its color and description |
github_get_latest_release | Get the latest release in a GitHub repository, with its tag, name, release notes and assets |
github_get_me | Get details of the authenticated GitHub user |
github_get_release_by_tag | Get a specific release by its tag name in a GitHub repository |
github_get_tag | Get details about a specific git tag in a GitHub repository, including the object the tag points to |
github_get_team_members | Get member usernames of a specific team in an organization |
github_get_teams | Get details of the teams the user is a member of |
github_issue_read | Get information about a specific issue in a GitHub repository |
github_issue_write | Create a new or update an existing issue in a GitHub repository |
github_list_branches | List branches in a GitHub repository with the commit each one points to; paginated with page and perPage |
github_list_commits | Get list of commits of a branch in a GitHub repository |
github_list_issue_fields | List issue fields for a repository or organization |
github_list_issue_types | List supported issue types for a repository or its owner organization |
github_list_issues | List issues in a GitHub repository |
github_list_pull_requests | List pull requests in a GitHub repository |
github_list_releases | List releases in a GitHub repository with their tags, names and release notes; paginated with page and perPage |
github_list_repository_collaborators | List collaborators of a GitHub repository |
github_list_tags | List git tags in a GitHub repository with the commit each tag points to; paginated with page and perPage |
github_merge_pull_request | Merge a pull request in a GitHub repository with the merge, squash or rebase method, optionally only while its head is still expectedHeadSha |
(showing 30 of 46 tools — install the connector to see them all)
Nächste Schritte
War dieser Guide hilfreich?