GitHub MCP Server
Provides tools for managing repositories (creating, listing, fetching details), reading file contents, searching code, and managing issues on GitHub.
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 Servercreate a new private repository called my-notes"
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 š
A custom Model Context Protocol (MCP) server built with Node.js and TypeScript. This server allows any MCP-compatible AI Assistant (like Gemini Code Assist, Claude Desktop, Roo Code, etc.) to interact directly with your GitHub account.
⨠Features (Available Tools)
This server exposes 7 powerful tools to your AI assistant:
create_repository: Create a new public or private repository.get_my_repositories: List the authenticated user's most recently updated repositories.get_repository: Fetch details of a specific repository.get_file_content: Read the exact content of any file inside a repository for code analysis.search_code: Search for functions, keywords, or syntax across repositories.create_issue: Open a new issue in a specific repository.list_issues: View open issues for a repository.
š ļø Installation & Setup
Clone the repository:
git clone [https://github.com/YOUR_USERNAME/mcp-github-server.git](https://github.com/YOUR_USERNAME/mcp-github-server.git) cd mcp-github-server Install dependencies:
Bash npm install Build the project:
Bash npm run build
š How to Get Your GitHub Token
To allow this server to act on your behalf, you need a Personal Access Token (PAT) from GitHub.
Go to your GitHub account settings.
Navigate to Developer settings (at the bottom of the left sidebar).
Click on Personal access tokens -> Tokens (classic).
Click Generate new token (classic).
Give your token a note (e.g., "MCP Server").
Required Scopes:
Check the repo box (This grants full control of private repositories, which is required to create repos, read files, and manage issues).
Scroll down and click Generate token.
Copy the token immediately (it starts with ghp_...).
Setting up the Environment Create a .env file in the root directory of this project:
Bash touch .env Add your token to the .env file:
Ł ŁŲŖŲ·Ł Ų§ŁŲ±Ł Ų² GITHUB_TOKEN=your_generated_token_here š Connecting to Your IDE / AI Client To use this server with an MCP-supported IDE or extension, you need to configure your client's MCP settings (usually a mcp.json or mcp_config.json file) to point to the built index.js file.
Example configuration:
JSON { "mcpServers": { "github-mcp": { "command": "node", "args": [ "--no-warnings", "ABSOLUTE_PATH_TO_YOUR_PROJECT/dist/index.js" ], "env": { "GITHUB_TOKEN": "your_generated_token_here" } } } }
Note: Make sure to replace ABSOLUTE_PATH_TO_YOUR_PROJECT with the actual path on your machine.
š¤ Contributing This is a small educational project! If you'd like to add more tools (like pull request management, or commit reading), feel free to fork the repository and submit a Pull Request.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server that integrates with Discord to provide AI-powered features.
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/amedmohmed925/MCP-Server-to-Github'
If you have feedback or need assistance with the MCP directory API, please join our Discord server