GitHub MCP by usefulapi

Read repositories, pull requests, issues and CI runs; create issues and comments in GitHub.

我該用這個嗎

品質與安全性

A
說明品質
98%
結構描述完整度
96%
命名品質
79%
汙染風險
80%
權限相符程度
100%
協定合規性
100%

發現項目(3)

  • HIGHTool poisoning patterns detected
  • LOWTool 'github_list_pull_request_reviews' name length outside 3-30 range在 github_list_pull_request_reviews 中
  • LOWTool description contains role marker that could confuse chat models在 github_search_repositories 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~4,787Token(工具定義)
~2.0 KB典型回應大小
顯著的注意力影響(128k 上下文的 3.74%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "github": {
      "url": "https://github.usefulapi.io/mcp"
    }
  }
}

遠端端點

https://github.usefulapi.io/mcpstreamable-http

它能做什麼

工具清單

工具(21)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢github_get_authenticated_user

Return the GitHub account the token belongs to (login, name, plan, public repo count). Good first call to confirm which account is connected. REST: GET /user.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_my_repos(visibility, affiliation, sort, direction, page, ...)

List repositories the token can access: owned, collaborator and organization repositories. Filter by visibility or affiliation. REST: GET /user/repos.

輸入結構描述

{
  "type": "object",
  "properties": {
    "visibility": {
      "description": "Filter by visibility (default all).",
      "type": "string",
      "enum": [
        "all",
        "public",
        "private"
      ]
    },
    "affiliation": {
      "description": "Comma-separated: owner, collaborator, organization_member (default all three).",
      "type": "string"
    },
    "sort": {
      "description": "Sort field.",
      "type": "string",
      "enum": [
        "created",
        "updated",
        "pushed",
        "full_name"
      ]
    },
    "direction": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_my_orgs(page, per_page)

List the organizations the authenticated user belongs to. REST: GET /user/orgs.

輸入結構描述

{
  "type": "object",
  "properties": {
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_get_repo(owner, repo)

Return one repository: default branch, visibility, language, stars, open issue count, last push time. REST: GET /repos/{owner}/{repo}.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_branches(owner, repo, protected, page, per_page)

List branches of a repository. REST: GET /repos/{owner}/{repo}/branches.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "protected": {
      "description": "Only protected branches when true.",
      "type": "boolean"
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_releases(owner, repo, page, per_page)

List releases of a repository, newest first. REST: GET /repos/{owner}/{repo}/releases.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_commits(owner, repo, sha, path, author, ...)

List commits on a branch, tag or SHA, optionally for one file path or author and a date range. REST: GET /repos/{owner}/{repo}/commits.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "sha": {
      "description": "Branch, tag or commit SHA to list from (default: default branch).",
      "type": "string"
    },
    "path": {
      "description": "Only commits that touched this file or directory path.",
      "type": "string"
    },
    "author": {
      "description": "GitHub login or email of the author.",
      "type": "string"
    },
    "since": {
      "description": "ISO 8601 timestamp, e.g. 2026-11-01T00:00:00Z.",
      "type": "string"
    },
    "until": {
      "description": "ISO 8601 timestamp.",
      "type": "string"
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_get_commit(owner, repo, ref)

Return one commit with its message, author, stats and changed files (with patch text). REST: GET /repos/{owner}/{repo}/commits/{ref}.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "ref": {
      "type": "string",
      "minLength": 1,
      "description": "Commit SHA, branch or tag name."
    }
  },
  "required": [
    "owner",
    "repo",
    "ref"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_issues(owner, repo, state, labels, assignee, ...)

List issues of a repository. The API also returns pull requests here; check the pull_request field. REST: GET /repos/{owner}/{repo}/issues.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "state": {
      "description": "Issue state (default open).",
      "type": "string",
      "enum": [
        "open",
        "closed",
        "all"
      ]
    },
    "labels": {
      "description": "Comma-separated label names, e.g. bug,help wanted.",
      "type": "string"
    },
    "assignee": {
      "description": "Login, 'none' or '*'.",
      "type": "string"
    },
    "creator": {
      "description": "Login of the issue creator.",
      "type": "string"
    },
    "sort": {
      "description": "Sort field.",
      "type": "string",
      "enum": [
        "created",
        "updated",
        "comments"
      ]
    },
    "direction": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "since": {
      "description": "ISO 8601 timestamp: only issues updated after this time.",
      "type": "string"
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_get_issue(owner, repo, issue_number)

Return one issue with its body, labels, assignees and state. REST: GET /repos/{owner}/{repo}/issues/{issue_number}.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "issue_number": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Issue number shown in the URL, e.g. 42."
    }
  },
  "required": [
    "owner",
    "repo",
    "issue_number"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_issue_comments(owner, repo, issue_number, since, page, ...)

List comments on an issue or pull request conversation. REST: GET /repos/{owner}/{repo}/issues/{issue_number}/comments.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "issue_number": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Issue number shown in the URL, e.g. 42."
    },
    "since": {
      "description": "ISO 8601 timestamp: only comments updated after this time.",
      "type": "string"
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "owner",
    "repo",
    "issue_number"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_pull_requests(owner, repo, state, head, base, ...)

List pull requests of a repository. REST: GET /repos/{owner}/{repo}/pulls.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "state": {
      "description": "Pull request state (default open).",
      "type": "string",
      "enum": [
        "open",
        "closed",
        "all"
      ]
    },
    "head": {
      "description": "Filter by head branch, as user:branch.",
      "type": "string"
    },
    "base": {
      "description": "Filter by base branch name.",
      "type": "string"
    },
    "sort": {
      "description": "Sort field.",
      "type": "string",
      "enum": [
        "created",
        "updated",
        "popularity",
        "long-running"
      ]
    },
    "direction": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_get_pull_request(owner, repo, pull_number)

Return one pull request: title, body, state, merge status, head and base branches, author. REST: GET /repos/{owner}/{repo}/pulls/{pull_number}.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "pull_number": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Pull request number shown in the URL, e.g. 7."
    }
  },
  "required": [
    "owner",
    "repo",
    "pull_number"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_pull_request_files(owner, repo, pull_number, page, per_page)

List files changed by a pull request, with status, additions, deletions and patch text. REST: GET /repos/{owner}/{repo}/pulls/{pull_number}/files.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "pull_number": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Pull request number shown in the URL, e.g. 7."
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "owner",
    "repo",
    "pull_number"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_pull_request_reviews(owner, repo, pull_number, page, per_page)

List reviews on a pull request (approved, changes requested, commented). REST: GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "pull_number": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Pull request number shown in the URL, e.g. 7."
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "owner",
    "repo",
    "pull_number"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_list_workflow_runs(owner, repo, branch, event, status, ...)

List GitHub Actions workflow runs of a repository, newest first. Filter by branch, event, status or actor. REST: GET /repos/{owner}/{repo}/actions/runs.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "branch": {
      "description": "Branch name.",
      "type": "string"
    },
    "event": {
      "description": "Trigger event, e.g. push or pull_request.",
      "type": "string"
    },
    "status": {
      "description": "Run status or conclusion.",
      "type": "string",
      "enum": [
        "queued",
        "in_progress",
        "completed",
        "success",
        "failure",
        "cancelled",
        "skipped"
      ]
    },
    "actor": {
      "description": "Login of the user who triggered the run.",
      "type": "string"
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "owner",
    "repo"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_search_repositories(q, sort, order, page, per_page)

Search public and accessible repositories with GitHub qualifiers (language:, stars:, topic:, user:). Search has a lower rate limit than other reads. REST: GET /search/repositories.

輸入結構描述

{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 1,
      "description": "GitHub search query with qualifiers, e.g. 'mcp language:typescript stars:>100'."
    },
    "sort": {
      "description": "Sort field.",
      "type": "string",
      "enum": [
        "stars",
        "forks",
        "help-wanted-issues",
        "updated"
      ]
    },
    "order": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "q"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢github_search_issues(q, sort, order, page, per_page)

Search issues and pull requests with qualifiers such as repo:, is:issue, is:pr, is:open, label:, author:. Search has a lower rate limit than other reads. REST: GET /search/issues.

輸入結構描述

{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 1,
      "description": "GitHub search query with qualifiers, e.g. 'mcp language:typescript stars:>100'."
    },
    "sort": {
      "description": "Sort field.",
      "type": "string",
      "enum": [
        "comments",
        "reactions",
        "created",
        "updated"
      ]
    },
    "order": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "q"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴github_create_issue(owner, repo, title, body, labels, ...)

Create a new issue in a repository. Visible to everyone who can read the repository. Requires issues write permission. REST: POST /repos/{owner}/{repo}/issues.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "description": "Issue title."
    },
    "body": {
      "description": "Issue body in Markdown.",
      "type": "string"
    },
    "labels": {
      "description": "Label names to add.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "assignees": {
      "description": "Logins to assign.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "owner",
    "repo",
    "title"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴github_add_issue_comment(owner, repo, issue_number, body)

Post a comment on an issue or pull request conversation. Visible to everyone who can read the repository. REST: POST /repos/{owner}/{repo}/issues/{issue_number}/comments.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "issue_number": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Issue number shown in the URL, e.g. 42."
    },
    "body": {
      "type": "string",
      "minLength": 1,
      "description": "Comment text in Markdown."
    }
  },
  "required": [
    "owner",
    "repo",
    "issue_number",
    "body"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴github_update_issue(owner, repo, issue_number, title, body, ...)

Change an issue's title, body, state (open or closed), labels or assignees. A given labels or assignees list replaces the current one. REST: PATCH /repos/{owner}/{repo}/issues/{issue_number}.

輸入結構描述

{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "minLength": 1,
      "description": "Account or organization that owns the repository, e.g. octocat."
    },
    "repo": {
      "type": "string",
      "minLength": 1,
      "description": "Repository name without the owner, e.g. Hello-World."
    },
    "issue_number": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Issue number shown in the URL, e.g. 42."
    },
    "title": {
      "description": "New title.",
      "type": "string"
    },
    "body": {
      "description": "New body in Markdown.",
      "type": "string"
    },
    "state": {
      "description": "New state.",
      "type": "string",
      "enum": [
        "open",
        "closed"
      ]
    },
    "state_reason": {
      "description": "Reason for the state change.",
      "type": "string",
      "enum": [
        "completed",
        "not_planned",
        "reopened"
      ]
    },
    "labels": {
      "description": "Replaces all labels with this list.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "assignees": {
      "description": "Replaces all assignees with this list.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "owner",
    "repo",
    "issue_number"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本21 個工具