GitHub MCP Server
Allows interaction with the GitHub REST API, providing tools for listing repositories, fetching repository details, managing issues, reading file contents, and searching code.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub MCP Serverlist open issues in the facebook/react repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub MCP Server
Custom MCP (Model Context Protocol) server, written in TypeScript, that connects GitHub to the GitHub REST API.
What it does
It exposes 6 tools that Claude can call:
Tool | Description |
| Lists the authenticated user's repositories |
| Details of a specific repository |
| Lists a repository's issues |
| Creates a new issue |
| Reads the contents of a file in the repository |
| Searches code on GitHub |
Related MCP server: remote-mcp-oauth-github
1. Generate a GitHub Personal Access Token
Go to GitHub β Settings β Developer settings β Personal access tokens β Fine-grained tokens
Create a token with the minimum required permissions:
Contents: Read(forget_file_content)Issues: Read and write(forlist_issues/create_issue)Metadata: Read(always required)
Copy the generated token (it starts with
github_pat_...)
Security tip: never commit the token to the repository. Use an environment variable.
2. Install and build
npm install
npm run buildThis generates build/index.js, which is the server executable (it communicates via stdio, the standard MCP protocol).
3. Test locally (optional, without Claude)
export GITHUB_PERSONAL_ACCESS_TOKEN="seu_token_aqui"
npm startIf GitHub MCP server rodando via stdio. appears in stderr, it is working. To test the tools interactively, use the MCP Inspector:
npx @modelcontextprotocol/inspector node build/index.js4. Connect to Claude Desktop
Edit the Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add:
{
"mcpServers": {
"github": {
"command": "node",
"args": ["/caminho/absoluto/para/github-mcp-server/build/index.js"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "seu_token_aqui"
}
}
}
}Restart Claude Desktop. The GitHub tools should appear in the conversation's tools icon (π¨).
5. Next steps (ideas to expand and boost your portfolio)
Add authoring tools:
create_pull_request,merge_pull_request,create_branchAdd real (cursor-based) pagination instead of just
per_pageRate limiting and caching (GitHub limits authenticated requests to 5000 req/h)
Automated tests with Vitest/Jest
CI with GitHub Actions running lint + tests + build on every push
Publish as a npm package (
npx github-mcp-server)Dockerize the server (good hook to connect with your other DevOps projects)
Project structure
github-mcp-server/
βββ src/
β βββ index.ts # lΓ³gica do servidor e definiΓ§Γ£o das tools
βββ build/ # gerado pelo `npm run build`
βββ package.json
βββ tsconfig.json
βββ README.mdMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceConnects Claude Desktop to GitHub repositories, enabling users to perform git operations and GitHub API interactions through natural conversation.452
- AlicenseNot gradedqualityDmaintenanceEnables Claude to authenticate with GitHub OAuth and access tools for user information, calculations, and GitHub repositories.5MIT
- FlicenseAqualityBmaintenanceConnects Claude to GitHub, enabling listing repositories, browsing open pull requests, and inspecting PR diffs for code review.4
- FlicenseNot gradedqualityCmaintenanceEnables to interact with GitHub repositories directly from Claude, supporting actions like viewing repos, checking status, committing and pushing changes, and managing pull requests.
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analyβ¦
Connect Claude to Fathom meeting recordings, transcripts, and summaries
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/luizHramoss/github-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server