Answer: Gemini CLI needs a GitHub personal access token (PAT) for the GitHub MCP server, stored in the environment as GITHUB_PERSONAL_ACCESS_TOKEN. Specifically, a fine-grained PAT with Read access to Metadata and Contents, and Read/Write access to Issues and Pull Requests. Status: Confirmed Entry: tool/gemini-cli/integrations/mcp-github-credentials Revision: 1 Digest: sha256:80631ffa5b01bef3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:57Z Last changed: 2026-11-13T03:17:57Z Last verified: 2026-11-20T12:51:51Z Next check: 2026-11-21T12:51:51Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Credential type | PAT | [1] | 2026-11-20 PAT type | fine-grained PAT | [1] | 2026-11-20 Metadata access | Read | [1] | 2026-11-20 Contents access | Read | [1] | 2026-11-20 Issues access | Read/Write | [1] | 2026-11-20 Pull Requests access | Read/Write | [1] | 2026-11-20 Environment variable | GITHUB_PERSONAL_ACCESS_TOKEN | [1] | 2026-11-20 Sources: [1] Google. "Set up an MCP server". https://geminicli.com/docs/cli/tutorials/mcp-setup.md Role: primary. Accessed: 2026-11-20T12:51:51Z Quote: "Most MCP servers require authentication. For GitHub, you need a PAT." (Supports: Credential type) Quote: "Create a [fine-grained PAT](https://github.com/settings/tokens?type=beta)." (Supports: PAT type) Quote: "Grant it **Read** access to **Metadata** and **Contents**" (Supports: Metadata access, Contents access) Quote: "**Read/Write** access to **Issues** and **Pull Requests**." (Supports: Issues access, Pull Requests access) Quote: "export GITHUB_PERSONAL_ACCESS_TOKEN="github_pat_..."" (Supports: Environment variable) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 0b117bd36db90f56198b5b1f2cb6f4eef1633f0a06ec5f97fb36e2e9b1a86eb3 (captured 2026-11-13T03:17:57Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:17:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:51:51Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:51Z Last attempt: 2026-11-20T12:51:51Z Notes and limitations: Extracted automatically from a single official source (section "How to prepare your credentials"). Related: https://latestn.com/tool/gemini-cli/integrations/package-hooks-as-extension How do I package Gemini CLI hooks as an extension? https://latestn.com/tool/gemini-cli/integrations/read-mcp-resource How do I read the content of a specific MCP resource by URI in Gemini CLI? https://latestn.com/tool/gemini-cli/integrations/release-extension-via-git How do I release a Gemini CLI extension through a Git repository? https://latestn.com/tool/gemini-cli/integrations/list-mcp-resources How do I list available MCP resources in Gemini CLI, optionally filtered by server? https://latestn.com/tool/gemini-cli/integrations/manage-extensions How do I manage extensions in Gemini CLI? https://latestn.com/tool/gemini-cli/integrations/manage-mcp-servers How do I manage MCP servers in Gemini CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:57Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/integrations/mcp-github-credentials/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/integrations/mcp-github-credentials POST: https://latestn.com/dispute/tool/gemini-cli/integrations/mcp-github-credentials with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/integrations/mcp-github-credentials?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What credentials does Gemini CLI need for the GitHub MCP server? Revision 1, last verified 2026-11-20T12:51:51Z. https://latestn.com/tool/gemini-cli/integrations/mcp-github-credentials (accessed 2026-11-21T09:52:30Z). @misc{LatestN_tool_gemini_cli_integrations_mcp_github_credentials_r1, title = {What credentials does Gemini CLI need for the GitHub MCP server?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/integrations/mcp-github-credentials}}, note = {Revision 1; digest sha256:80631ffa5b01bef3; last verified 2026-11-20T12:51:51Z; accessed 2026-11-21T09:52:30Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/integrations/mcp-github-credentials