Github

69 tools. 41 can modify or destroy data without limits.

4 destructive tools with no built-in limits. Policy required.

Last updated:

41 can modify or destroy data
28 read-only
69 tools total

Community server · catalogue entry checked 02/07/2026

How to control Github ↓

What Github exposes to your agents

Read (28) Write / Execute (37) Destructive / Financial (4)
Critical Risk

The most dangerous Github tools

41 of Github's 69 tools can modify, destroy, or commit something on every call — and an agent calls them with no built-in limits.

How to control Github

PolicyLayer is an MCP gateway — it sits between your AI agents and Github, and nothing reaches the server without passing your rules. These are the rules we recommend:

Block financial tools by default
{
  "github_transfer_repo": {
    "deny_if": [
      {
        "conditions": [],
        "on_deny": "Requires human approval."
      }
    ]
  }
}

Financial tools should be explicitly enabled per use case, not open by default.

Deny destructive operations
{
  "github_delete_repo": {
    "deny_if": [
      {
        "conditions": [],
        "on_deny": "Blocked by default. Requires approval."
      }
    ]
  }
}

Destructive tools should never be available to autonomous agents without human approval.

Rate limit write operations
{
  "github_add_readme_badges": {
    "limits": [
      {
        "counter": "github_add_readme_badges_per_hour",
        "window": "hour",
        "max": 30,
        "scope": "grant"
      }
    ]
  }
}

Prevents bulk unintended modifications from agents caught in loops.

Cap read operations
{
  "github_analyze_workflow_failure": {
    "limits": [
      {
        "counter": "github_analyze_workflow_failure_per_minute",
        "window": "minute",
        "max": 60,
        "scope": "grant"
      }
    ]
  }
}

Controls API costs and prevents retry loops from exhausting upstream rate limits.

  1. Create a free account and register Github — nothing to install.
  2. Add these rules — paste them, or build them visually. Tune the limits to your setup.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
ENFORCE POLICY ON GITHUB →

Instant setup, no code required.

All 69 Github tools

WRITE 34 tools
Write github_add_readme_badges github_add_readme_badges Write github_archive_repo Archive (or unarchive) a repository — read-only marker without deleting. Write github_batch_commit github_batch_commit Write github_clone_repo github_clone_repo Write github_close_issue Close an issue. Write github_close_pr Close a PR without merging. Write github_comment_on_issue Add a comment to an issue (or PR). Write github_create_issue Create a new issue. Write github_create_pr github_create_pr Write github_create_release github_create_release Write github_create_repo github_create_repo Write github_create_tag github_create_tag Write github_enable_dependabot Enable Dependabot version updates by committing .github/dependabot.yml. Write github_enable_pages Enable GitHub Pages on the repo, served from the given branch + path. Write github_enable_secret_scanning Enable GitHub secret scanning + push protection on a repo (public repos free; private may require GHAS). Write github_generate_release_notes github_generate_release_notes Write github_generate_workflow github_generate_workflow Write github_init_and_push github_init_and_push Write github_merge_pr github_merge_pr Write github_pin_repos Pin up to 6 repos to your GitHub profile. Uses the GraphQL API. Write github_push_portfolio github_push_portfolio Write github_review_pr Submit a review on a PR. Write github_set_branch_protection github_set_branch_protection Write github_set_description Set the short description shown under the repo title. Write github_set_homepage Set the homepage URL displayed on the repo card. Write github_set_secret Create / update a repo secret for GitHub Actions. Write github_set_topics Replace the topic tags on a repo (used for GitHub search ranking). Write github_set_variable Create / update a repo Actions variable (non-secret). Write github_star_repo Star a repo (curate your starred list — visible on your profile). Write github_unstar_repo Unstar a repo. Write github_update_file github_update_file Write github_update_profile github_update_profile Write github_update_profile_readme Create / update your profile README — the special <username>/<username> repo. Write github_update_repo_settings Patch repo settings. Pass only the fields you want to change.
READ 28 tools
Read github_analyze_workflow_failure Read failed-job logs, classify the error type, suggest a fix. Read github_audit_repo Single-call repo health check: README, license, branch protection, Dependabot, secret scanning, etc. Read github_check_token_scopes Check whether the current token has the required (classic) scopes. Read github_get_branch_protection Get the current protection rules on a branch. Read github_get_file Read a file from a remote repo without cloning. Read github_get_issue Get full details for one issue, including comments. Read github_get_pr Get full details for a single PR, including review status. Read github_get_profile_stats Aggregate profile stats: followers, public repos, total stars across owned repos. Read github_get_repo Get full details for a single repo. Read github_get_repo_stats Stars, forks, watchers, traffic counts. Useful for tracking portfolio reception. Read github_get_traffic Detailed 14-day traffic breakdown: views per day, top referrers, top paths. Read github_get_user Get a GitHub user's profile. Read github_get_workflow_logs Download the logs zip for a workflow run and return the tail. Read github_get_workflow_run Get details for a single workflow run, including job-level status. Read github_list_issues github_list_issues Read github_list_prs github_list_prs Read github_list_releases List releases for a repo (newest first). Read github_list_repos github_list_repos Read github_list_secrets List repo secret NAMES (values are not retrievable from the API). Read github_list_security_alerts github_list_security_alerts Read github_list_stargazers List users who starred the repo. Read github_list_variables List repo Actions variables. Read github_list_workflow_runs github_list_workflow_runs Read github_list_workflows List workflows defined in .github/workflows/. Read github_search_code Search code across GitHub (or scoped to a repo / user). Read github_search_repos Search public repositories. Read github_search_users Search users (people / organizations). Read github_validate_auth Health check: confirm the configured GITHUB_TOKEN works and report user, scopes, rate limit.

Related servers

Other MCP servers with similar tools — same risk classification, starter policies for each.

Questions about Github

Can an AI agent move money through the Github MCP server? +

Yes. The Github server exposes 1 financial tools including github_transfer_repo. Without a policy, an autonomous agent can call these with no spend caps, no rate limits, and no approval flow. PolicyLayer lets you block financial tools by default, require human approval, or set per-tool rate limits — enforced on every call.

Can an AI agent delete data through the Github MCP server? +

Yes. The Github server exposes 3 destructive tools including github_delete_repo, github_delete_secret, github_remove_branch_protection. These permanently remove resources with no undo. PolicyLayer blocks destructive tools by default so they never reach the upstream server.

How do I prevent bulk modifications through Github? +

The Github server has 34 write tools including github_add_readme_badges, github_archive_repo, github_batch_commit. Set a rate limit in your policy -- for example, 10 calls per hour prevents an agent from making more than 10 modifications per hour. PolicyLayer enforces this at the gateway, before calls reach Github.

How many tools does the Github MCP server expose? +

69 tools across 5 categories: Destructive, Execute, Financial, Read, Write. 28 are read-only. 41 can modify, create, or delete data.

How do I enforce a policy on Github? +

Register the Github MCP server in PolicyLayer, apply the suggested rules above (adjust the limits to your use case), and point your AI client at the PolicyLayer proxy URL instead of the server directly. Your agents keep the same tools; PolicyLayer evaluates every call against policy before it executes. Nothing to install, live in minutes.

Enforce policy on every Github tool call.

Deterministic rules across all 69 Github tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Instant setup, no code required.

69 Github tools catalogued and risk-classified — across an index of 46,500+ MCP servers.

// WHERE THIS COMES FROM

These policies come from Github's registry record.

The record behind this page: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.