The official GitHub MCP server provides comprehensive access to the GitHub API.
npx -y @modelcontextprotocol/server-github
{
"mcpServers": {
"github": {
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your-token"
},
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"command": "npx"
}
}
}Create a new issue in a repository
{
"type": "object",
"required": [
"owner",
"repo",
"title"
],
"properties": {
"body": {
"type": "string"
},
"repo": {
"type": "string"
},
"owner": {
"type": "string"
},
"title": {
"type": "string"
}
}
}// Input
{
"repo": "hello",
"owner": "octocat",
"title": "Bug fix"
}// Output
{
"number": 42,
"html_url": "https://github.com/octocat/hello/issues/42"
}Create or update a file in a GitHub repository
{
"type": "object",
"required": [
"owner",
"repo",
"path",
"content",
"message"
],
"properties": {
"path": {
"type": "string"
},
"repo": {
"type": "string"
},
"owner": {
"type": "string"
},
"content": {
"type": "string"
},
"message": {
"type": "string"
}
}
}// Input
{
"path": "README.md",
"repo": "hello",
"owner": "octocat",
"content": "# Hello",
"message": "Update"
}// Output
{
"commit_sha": "abc123"
}The official GitHub MCP server provides comprehensive access to the GitHub API.
GitHub provides 4 tools including create_issue, create_or_update_file, create_pull_request, and 1 more.
Yes, GitHub is completely free to use with no usage limits on the free tier.
You can install GitHub using the following command: npx -y @modelcontextprotocol/server-github. After installation, add the provided config snippet to your Claude Desktop or Cursor configuration.
Create a new pull request
{
"type": "object",
"required": [
"owner",
"repo",
"title",
"head",
"base"
],
"properties": {
"base": {
"type": "string"
},
"head": {
"type": "string"
},
"repo": {
"type": "string"
},
"owner": {
"type": "string"
},
"title": {
"type": "string"
}
}
}// Input
{
"base": "main",
"head": "feature",
"repo": "hello",
"owner": "octocat",
"title": "feat: dark mode"
}// Output
{
"number": 15,
"html_url": "https://github.com/octocat/hello/pull/15"
}Search for GitHub repositories
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string"
}
}
}// Input
{
"query": "mcp server"
}// Output
{
"items": [
{
"stars": 15200,
"full_name": "mcp/servers"
}
]
}GitHub is listed under the Development Tools category in the AgentForge MCP registry.
GitHub has a current uptime of 99.97% with an average response time of 180ms.
To connect GitHub, click the "Connect Agent" button on this page to get the configuration snippet. Add it to your MCP client (Claude Desktop, Cursor, or any MCP-compatible tool). Your AI agent will then have access to all of GitHub's tools via the Model Context Protocol.