Complete reference for all tools available in the GitHub MCP Server
Get information about a GitHub repository
owner: (Required) Repository owner
repo: (Required) Repository name
{
"content": [
{
"type": "text",
"text": "Repository: owner/repo\nDescription: Repository description\nStars: 1250\nForks: 320\nDefault Branch: main\nURL: https://github.com/owner/repo"
}
]
}
Get the directory structure of a GitHub repository
owner: (Required) Repository owner
repo: (Required) Repository name
path: (Optional) Directory path (defaults to root)
branch: (Optional) Branch name (defaults to main branch)
{
"content": [
{
"type": "text",
"text": "š src\nš docs\nš examples\nš README.md\nš package.json\nš tsconfig.json"
}
]
}
Read a file from a GitHub repository
owner: (Required) Repository owner
repo: (Required) Repository name
path: (Required) File path
branch: (Optional) Branch name (defaults to main branch)
{
"content": [
{
"type": "text",
"text": "# File content will appear here\n\nThis is the content of the requested file from the GitHub repository."
}
]
}
List branches in a GitHub repository
owner: (Required) Repository owner
repo: (Required) Repository name
{
"content": [
{
"type": "text",
"text": "main\ndevelop\nfeature/new-api\nbugfix/issue-42"
}
]
}
List issues in a GitHub repository
owner: (Required) Repository owner
repo: (Required) Repository name
state: (Optional) Issue state (open, closed, or all, defaults to open)
{
"content": [
{
"type": "text",
"text": "#42: Add support for GitHub Projects API v2 (open)\n#37: Improve error handling in MCP server (open)\n#28: Add documentation for SSE transport (closed)"
}
]
}
Create a new issue in a GitHub repository
owner: (Required) Repository owner
repo: (Required) Repository name
title: (Required) Issue title
body: (Required) Issue body
labels: (Optional) Issue labels
assignees: (Optional) Issue assignees
{
"content": [
{
"type": "text",
"text": "Issue created: #43 - Add support for GitHub Actions\nURL: https://github.com/owner/repo/issues/43"
}
]
}
List GitHub projects
owner: (Required) Repository owner
repo: (Optional) Repository name (optional for organization projects)
{
"content": [
{
"type": "text",
"text": "1: MCP Development (open)\n2: Documentation Improvements (open)\n3: Q2 2025 Roadmap (open)"
}
]
}
Create a new GitHub project
owner: (Required) Repository owner or organization
name: (Required) Project name
body: (Required) Project description
repo: (Optional) Repository name (optional for organization projects)
{
"content": [
{
"type": "text",
"text": "Project created: 4 - New Feature Development\nURL: https://github.com/owner/repo/projects/4"
}
]
}