Salta l'installazione. Attivo in meno di 2 minuti.
Avvia una prova gratuita su cloud.anythingmcp.com, aggiungi GitHub con un clic, poi punta il tuo client AI (Claude, ChatGPT, Copilot o Cursor) all'endpoint MCP generato. Niente Docker, niente git clone, nessuna esperienza di sviluppo richiesta.
In breve
Lavora con GitHub da Claude, ChatGPT o Copilot tramite il server MCP ufficiale di GitHub: leggi codice e commit, cerca nei repository, smista le issue, apri e revisiona pull request.
Prova a chiedere
Prompt di esempio per GitHub
Clicca su un prompt per copiarlo. Incollalo in Claude, ChatGPT, Cursor, Gemini, Copilot o OpenClaw per eseguirlo contro questo connettore.
Claude è un'AI e può sbagliare. Verifica sempre le risposte.
💡 Niente installazione? Vai direttamente su cloud.anythingmcp.com. Accedi, clicca Connectors → GitHub, inserisci le credenziali, genera una MCP API key — fatto. Niente Docker, niente
git clone, niente server locale.
GitHub
Lavora con GitHub da Claude, ChatGPT o Copilot tramite il server MCP ufficiale di GitHub: leggi codice e commit, cerca nei repository, smista le issue, apri e revisiona pull request.
Setup
AnythingMCP si collega al server MCP remoto ufficiale di GitHub (https://api.githubcopilot.com/mcp/) con un personal access token. I tool li fornisce il server di GitHub: all'installazione AnythingMCP legge l'elenco aggiornato dei tool, e ogni tool riceve il prefisso github_. Quando GitHub aggiunge tool, apri il connettore e clicca Discover tools.
- Su GitHub apri Settings → Developer settings → Personal access tokens → Fine-grained tokens → Generate new token (link diretto). Scegli il resource owner (il tuo account o un'organizzazione), una scadenza e Only select repositories con i repository che l'AI deve raggiungere.
- In Repository permissions imposta Contents, Issues e Pull requests su Read-only, oppure su Read and write dove l'AI deve creare branch, fare commit o aprire issue e pull request. Metadata (sola lettura) viene aggiunto automaticamente. Per
github_get_teamsegithub_get_team_membersaggiungi anche il permesso di organizzazione Members: Read-only. - Se l'owner è un'organizzazione, un owner dell'organizzazione potrebbe dover prima approvare il token (nell'organizzazione, Settings → Personal access tokens → Pending requests). Le organizzazioni con SAML single sign-on richiedono anche che il token sia autorizzato per SSO.
- Incolla il token in
GITHUB_PATe installa. Funziona anche un token classico (ghp_…, scoperepo, piùread:orgper i team), ma raggiunge tutti i repository a cui hai accesso: un token fine-grained è la scelta più sicura.
Policy dell'organizzazione: con Copilot Business o Copilot Enterprise la policy MCP servers in Copilot deve essere attiva per l'organizzazione. Le organizzazioni possono limitare i personal access token, e nelle enterprise con Enterprise Managed Users possono essere del tutto disattivati. Per GitHub Enterprise Cloud con data residency cambia l'URL base del connettore in https://copilot-api.<your-subdomain>.ghe.com/mcp. GitHub Enterprise Server non ha un server MCP ospitato.
Toolset e modalità sola lettura: di default GitHub serve i toolset context, repos, issues, pull_requests e users. Per cambiarli aggiungi nell'editor del connettore l'header X-MCP-Toolsets (per esempio repos,issues,pull_requests,actions, oppure all), o X-MCP-Readonly: true per esporre solo i tool di lettura. Poi clicca Discover tools.
Disattivati all'installazione: github_merge_pull_request, github_push_files, github_create_or_update_file e github_delete_file. Anche i tool che un header di toolset aggiunge in seguito, come l'eliminazione di un repository, arrivano disattivati. Puoi attivarli uno per uno nel connettore. Tutto gira come il titolare del token, e il testo di issue e pull request nei repository pubblici è input non affidabile (X-MCP-Lockdown: true nasconde i contenuti degli autori senza permesso di push).
Prima chiamata: github_get_me mostra a chi appartiene il token; poi usa github_search_repositories, github_get_file_contents, github_list_issues e github_pull_request_read. Un 401 significa token errato, scaduto o revocato; un 403 indica un permesso mancante, un'approvazione dell'organizzazione o un'autorizzazione SSO in sospeso, oppure una policy; un 404 su un repository privato di solito significa che il token non lo include.
Prerequisiti: GITHUB_PAT
Installazione locale del connettore
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
Apri http://localhost:3000/connectors/store, scegli GitHub e inserisci le variabili elencate nei Prerequisiti.
Tool disponibili
| 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)
Prossimi passi
Questa guida ti è stata utile?