GitHub Dev Copilot
Provides tools to interact with the GitHub API, enabling AI agents to manage repositories, issues, pull requests, and analyze repository health.
Click on "Deploy 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 Dev CopilotAnalyze the health of the repository 'expressjs/express' and suggest improvements."
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 Dev Copilot - MCP Server
A production-ready Model Context Protocol (MCP) server that acts as a GitHub Copilot for AI agents. It provides tools to interact with the GitHub API, allowing agents to manage repositories, issues, PRs, and analyze repository health.
Architecture
+----------------+ +-----------------------+ +-------------+
| AI Agent | ---> | GitHub MCP Server | <--> | GitHub API |
| (Client) | STDI | (Python / FastMCP) | HTTP | |
+----------------+ +-----------------------+ +-------------+
|
+-----------------------+
| Tools |
| - list_repositories |
| - read_issues |
| - create_issue |
| - comment_on_pr |
| - analyze_repo_health |
+-----------------------+Related MCP server: github-mcp-server
Features
Authentication: Securely connects using a GitHub Personal Access Token (PAT).
Tooling: Exposes robust, strictly-typed MCP tools.
Safety:
Validates inputs using Pydantic.
Rate limits API calls to prevent blocking.
Never exposes tokens.
Analysis: intelligent
analyze_repo_healthtool to score repositories.
Setup
Clone the repository (if applicable) or navigate to the project directory.
Install Dependencies:
pip install -r requirements.txtConfigure Environment: Copy
.env.exampleto.envand add your GitHub PAT.cp .env.example .env # Edit .env and set GITHUB_TOKENRun the Server: You can run it directly with Python, or via an MCP client inspector.
python main.py
Using with Claude Desktop or MCP Clients
Add the server config to your claude_desktop_config.json:
{
"mcpServers": {
"github-copilot": {
"command": "python",
"args": ["/path/to/mcp_github_dev_copilot/main.py"]
}
}
}Available Tools
1. list_repositories
Lists repositories accessible to the authenticated user.
Returns: Name, owner, private/public status, stars, language.
2. read_issues
Fetches issues from a repository.
Input:
repo_owner,repo_name,state("open", "closed", "all")Output: List of issues with ID, title, labels.
3. create_issue
Creates a new issue.
Input:
repo_owner,repo_name,title,body(markdown),labelsOutput: Issue URL and number.
4. comment_on_pr
Adds a comment to a Pull Request.
Input:
repo_owner,repo_name,pr_number,comment_textOutput: Comment URL.
5. analyze_repo_health
Performs a health check on a repository.
Checks: Open issues count, stale issues (>30 days), recent commit activity, tests presence, CI config.
Output: Health score (0-100) and improvement suggestions.
Security & Limitations
Rate Limiting: The server implements a decorator to handle GitHub rate limits by waiting or retrying.
Scopes: Ensure your PAT has
repo,read:org, andworkflowscopes.No Browser: This server uses the official GitHub API, not web scraping.
Logs: Activities are logged to
stderrto avoid interfering with MCP stdio communication.
Future Improvements
Add
update_issueandmerge_prtools.Implement file content reading/searching.
Add support for GitHub App authentication.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with GitHub repositories, issues, pull requests, code, and more through a comprehensive set of tools.-
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with GitHub issues, pull requests, and Actions workflows through MCP tools.-
- FlicenseNot gradedqualityCmaintenanceEnables natural-language analysis of GitHub repositories by exposing repository metadata, source code retrieval, search, and file reading as MCP tools, with answers grounded in the actual repository content.-
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI clients to manage GitHub repositories and issues and trigger repository dispatch events via tools and a REST API.MIT