github-mcp
v0.1.1MCP server for the GitHub REST API: issues, PRs, repos; read always on, write env-gated.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_repo
Get metadata for a repository: description, language, stars, forks, open issues, default branch, archived flag, license, last-push time.
| Parameter | Type | Description |
|---|---|---|
owner * | string | |
repo * | string |
list_issues
List issues for a repository (pull requests filtered out), most-recently-updated first.
| Parameter | Type | Description |
|---|---|---|
owner * | string | |
repo * | string | |
limit | integer | |
state | string |
get_issue
Fetch a single issue's full detail: title, body, state, labels, comment count.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | |
owner * | string | |
repo * | string |
list_pull_requests
List pull requests for a repository, most-recently-updated first.
| Parameter | Type | Description |
|---|---|---|
owner * | string | |
repo * | string | |
limit | integer | |
state | string |
get_pull_request
Fetch a single pull request's full detail, including merge state.
| Parameter | Type | Description |
|---|---|---|
owner * | string | |
pr_number * | integer | |
repo * | string |
get_file_content
Read a UTF-8 text file from a repo at a given path (base64-decoded). Reports binary files rather than decoding them.
| Parameter | Type | Description |
|---|---|---|
owner * | string | |
path * | string | |
repo * | string | |
ref |
search_repos
Search public repositories by keyword/qualifiers, sorted by best match.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer |
get_user
Get a public profile for a GitHub user or organization.
| Parameter | Type | Description |
|---|---|---|
username * | string |
list_commits
List commits on a repo's default branch (or a given ref), newest first.
| Parameter | Type | Description |
|---|---|---|
owner * | string | |
repo * | string | |
limit | integer | |
sha |
create_issue
Open a new issue on a repository. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.
| Parameter | Type | Description |
|---|---|---|
owner * | string | |
repo * | string | |
title * | string | |
body | ||
labels |
comment_on_issue
Post a comment on an issue or pull request. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
issue_number * | integer | |
owner * | string | |
repo * | string |
update_issue_state
Set an issue's state to 'open' or 'closed'. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | |
owner * | string | |
repo * | string | |
state * | string |
add_labels
Add one or more labels to an issue or pull request. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | |
labels * | array | |
owner * | string | |
repo * | string |
create_pr_review_comment
Create a review comment on a specific line of a pull request's diff. Requires GITHUB_MCP_ENABLE_WRITE=1 and GITHUB_TOKEN.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
commit_id * | string | |
line * | integer | |
owner * | string | |
path * | string | |
pr_number * | integer | |
repo * | string |