GitHub MCP for any AI agent — without sharing your token.
Let Claude, ChatGPT, Cursor or your own agent read pull requests, search code, file issues and check workflow runs on GitHub. The agent connects to one Apitell URL; your GitHub token stays in the vault and is added at the last hop. Comments, merges and other write actions wait for your approval.
> ai_discover
github connected · fine-grained token in the vault
linear connected · API key in the vault
> ai_call github GET /repos/acme/web/actions/runs
?branch=main&status=failure&per_page=5
200 · 203 ms · token added at the edge
The GitHub REST API, from the chat.
Apitell exposes GitHub’s own REST operations. The agent searches for the one it needs, reads its parameters and calls it.
Review pull requests
List open PRs, read the diff and the review comments, and summarize what is blocking a merge. /repos/{owner}/{repo}/pulls, /pulls/{number}/files.
Issues
Search issues, file a new one from a bug report, label it and comment. POST /repos/{owner}/{repo}/issues, /issues/{number}/comments.
Search code
Find where a function, config key or error message lives across your repositories. GET /search/code.
Read files
Fetch a file or a directory at any branch or commit to answer from the source. GET /repos/{owner}/{repo}/contents/{path}.
GitHub Actions
Find the failing workflow run, read its jobs, and re-run it once you approve. /repos/{owner}/{repo}/actions/runs, /runs/{id}/rerun.
Releases
See what shipped in the latest release, or draft release notes from merged PRs. /repos/{owner}/{repo}/releases/latest, POST /releases.
A fine-grained token or OAuth, kept where the agent cannot reach it.
The GitHub REST API accepts personal access tokens, OAuth app tokens and GitHub App tokens. GitHub recommends fine-grained tokens over classic ones, and GitHub Apps for organizations and long-lived integrations.
Use a fine-grained token
Create a fine-grained personal access token (github_pat_…) limited to the repositories the agent needs, with read-only permissions such as Contents and Pull requests. Or sign in with GitHub over OAuth, with your own OAuth app if you prefer.
Stored once, in the vault
Paste the token once, or sign in with GitHub. It is encrypted, bound to api.github.com and added at the last hop. It is never logged and no tool can read it back.
Write actions wait for a human
Comments, merges, re-runs and every other write are off by default. Turn them on per client and require an approval for each: in the console, with approvers notified by email, Slack, Telegram or webhook.
Write approvals →Rules for this connector
Allow or deny operations, limit argument values, and rate-limit each agent so a loop cannot use up your GitHub rate limit.
Policies →GitHub’s official server, or one gateway for every API?
GitHub runs a remote MCP server at https://api.githubcopilot.com/mcp/, and an open-source local one. It signs in with OAuth or a personal access token, and supports toolsets and a read-only mode. Organizations on Copilot Business or Enterprise must enable the MCP policy. A good choice if GitHub is the only API your agent needs.
| Apitell | GitHub's MCP server | |
|---|---|---|
| APIs | GitHub and every other API you connect, behind one URL | GitHub only |
| Sign-in | OAuth to Apitell; the GitHub token stays in the vault | OAuth, or a PAT in the client’s config |
| Access | The token’s repositories and permissions, plus Apitell policies | Your GitHub access or the PAT’s permissions, narrowed by toolsets |
| Write actions | Off by default; approval per call in the console, with approvers notified by email, Slack, Telegram or webhook | Read-only mode, plus your client’s confirmations |
| Audit | One audit log for GitHub and every other API | Separate from your other APIs’ logs |
| Revoke | Disconnect a client or delete the connector | Revoke the OAuth app or the PAT in GitHub |
More on this choice: Apitell vs running MCP servers. Tickets too? See Jira MCP and Linear MCP.
GitHub MCP questions.
Is there a GitHub MCP server?
Yes. GitHub runs an official remote server at https://api.githubcopilot.com/mcp/ and publishes a local one. Apitell is the alternative when you want GitHub next to your other APIs behind one URL, with the token in a vault and approvals for write actions.
What is the GitHub MCP URL with Apitell?
https://mcp.apitell.com/mcp, the same URL for GitHub and every other API in your workspace. Connect GitHub once in the console and every client you sign in can reach it.
How do I use GitHub MCP in Claude Code?
Run claude mcp add --transport http apitell https://mcp.apitell.com/mcp, sign in, and allow the GitHub connector. No PAT in your shell or config. See Claude Code setup.
How do I connect Claude to GitHub?
In Claude, open Customize → Connectors → Add custom connector, paste https://mcp.apitell.com/mcp and sign in. See connect Claude.
How do I connect ChatGPT to GitHub?
In ChatGPT, open Settings → Apps → Create (with Developer mode on), paste the Apitell URL and choose OAuth. See connect ChatGPT.
Is it safe to give an AI agent my GitHub token?
Not directly: a token in a prompt, .env or mcp.json can leak, with every repository it can reach. With Apitell the agent never gets it. A fine-grained token sits in the vault and write actions wait for approval.
Give the agent your repos. Keep the token.
GitHub is not connected yet. Tell us you need it and we will put it next in line.