GitHub MCP Server
bmeyer99
README
GitHub MCP Server
A Model Context Protocol (MCP) server for comprehensive GitHub CLI integration. This server implements all major GitHub CLI functionality, allowing AI assistants to interact with GitHub repositories, issues, pull requests, files, and more.
Features
- Full GitHub CLI Parity: Implements the core functionality of the GitHub CLI
- Secure: Only performs actions within the permissions of your GitHub token
- Efficient: Written in Go for high performance and minimal resource usage
- Standalone Binary: No runtime dependencies required
- Multi-Platform: Works on macOS, Linux, and Windows
Installation
Download Binary
Download the pre-built binary for your platform from the Releases page.
Build from Source
# Clone the repository
git clone https://github.com/your-username/github-mcp-server-go.git
cd github-mcp-server-go
# Build the binary
go build -o github-mcp-server
# Move the binary to a directory in your PATH (optional)
sudo mv github-mcp-server /usr/local/bin/
Usage
GitHub Personal Access Token
Before using the GitHub MCP Server, you'll need a GitHub Personal Access Token with appropriate permissions:
- Go to GitHub Settings > Developer settings > Personal access tokens
- Create a new token with the
repo
scope (for full repository access) orpublic_repo
for only public repository access - Copy the generated token for use with the MCP server
Running the Server
You can run the GitHub MCP Server in two ways:
# Run with token provided as a command-line flag
./github-mcp-server -token YOUR_GITHUB_TOKEN
# Or run with token provided as an environment variable
export GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_TOKEN
./github-mcp-server
Integration with Claude Desktop
To use GitHub MCP Server with Claude Desktop:
-
Edit your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Add the GitHub MCP Server to the configuration:
{
"mcpServers": {
"github": {
"command": "/path/to/github-mcp-server",
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_TOKEN"
}
}
}
}
- Restart Claude Desktop to apply the changes
Supported Tools
GitHub MCP Server implements the following tool categories:
Repository Management
get_repository
: Get repository detailslist_repositories
: List user repositoriescreate_repository
: Create a new repository
Issue Management
get_issue
: Get issue detailslist_issues
: List repository issuescreate_issue
: Create a new issueclose_issue
: Close an existing issue
Pull Request Management
get_pull_request
: Get pull request detailslist_pull_requests
: List repository pull requestscreate_pull_request
: Create a new pull requestmerge_pull_request
: Merge an existing pull request
GitHub Actions
list_workflows
: List repository workflowslist_workflow_runs
: List workflow runstrigger_workflow
: Trigger a workflow
File Operations
get_file_content
: Get file contentcreate_file
: Create a new fileupdate_file
: Update an existing filedelete_file
: Delete a file
Search Operations
search_code
: Search repositories for codesearch_issues
: Search for issues and pull requests
Examples
Here are some examples of how to use the tools with Claude:
Create a New Repository
Please create a new GitHub repository named "awesome-project"
Get Repository Information
Get information about the "cli/cli" repository
Create an Issue
Create an issue in my "project-name" repository with the title "Fix button styling" and a description of the problem
Search for Code
Search for examples of React components that use the useState hook in my repositories
Security Considerations
- GitHub MCP Server only performs actions within the permissions of your GitHub Personal Access Token
- For maximum security, create a token with only the necessary permissions for your use case
- The server does not store your token, but transmits it with each request to the GitHub API
- Consider hosting the server locally rather than on a remote server
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Acknowledgments
- Inspired by the GitHub CLI
- Built with the Model Context Protocol specification
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.