Get the FREE Ultimate OpenClaw Setup Guide →

github

GitHub's official MCP Server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio github-github-mcp-server docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server

How to use

The GitHub MCP Server allows AI tools to interact with GitHub's platform seamlessly. Users can leverage its capabilities to manage repositories, automate issues and pull requests, analyze code, and enhance team collaboration through natural language interactions. By connecting AI agents to GitHub, developers can perform complex tasks like triaging bugs or reviewing code changes with ease. The server supports various functionalities, including CI/CD monitoring, code analysis, and team activity insights, making it a powerful tool for developers looking to streamline their workflows.

How to install

To install the GitHub MCP Server, ensure you have a compatible MCP host that supports remote servers. You can quickly install it in VS Code using the one-click install buttons provided in the README. Alternatively, you can manually configure your host by adding the appropriate JSON block to your configuration. For Docker users, you can run the server with the command:

docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server

Make sure you have Docker installed and running on your machine.

Additional notes

When using the GitHub MCP Server, ensure that you have a valid GitHub Personal Access Token (PAT) for authentication. If you're using VS Code, you may need to adjust your settings to accommodate OAuth or PAT configurations. Common issues include network connectivity problems and incorrect token permissions, so double-check your GitHub settings if you encounter errors. For advanced configurations, refer to the Remote Server Documentation for detailed instructions on toolsets and headers.

Related MCP Servers

Sponsor this space

Reach thousands of developers