GitHub MCP Server
@jasona7
About GitHub MCP Server
A MCP Server with tools for interfacing with Discussions on Github
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp_github_discussions": {
"command": "python",
"args": [
"scripts/mcp/github/mcp_github_server.py"
]
}
}
}Tools
5Search for repositories based on various criteria
Get detailed information about a repository
Fetch issues from a repository
Fetch discussions from a repository
Get trending repositories by activity
Overview
What is GitHub MCP Server?
GitHub MCP Server is an implementation of the Model Context Protocol (MCP) that bridges AI assistants with the GitHub API. It allows AI models to search repositories, view discussions, analyze repository activity, and fetch repository statistics.
How to use GitHub MCP Server?
After installing dependencies (pip install requests) and setting the GITHUB_TOKEN environment variable, start the server with python scripts/mcp/github/mcp_github_server.py. Use the included client (python scripts/mcp/github/mcp_github_client.py) to interact via a terminal UI or call the exposed tools directly.
Key features of GitHub MCP Server
- Repository management and advanced search
- GitHub Discussions integration
- Activity analysis and trending repos
- Terminal UI client for exploration
- Configurable host and port via environment variables
Use cases of GitHub MCP Server
- Automate retrieval of repository metadata and issues
- Analyze GitHub Discussions for community insights
- Find trending repositories by recent activity or stars
- Integrate AI assistants with GitHub workflows
FAQ from GitHub MCP Server
What prerequisites are needed?
Python 3.8+ and a GitHub Personal Access Token with appropriate permissions.
How do I configure the server?
Set environment variables: GITHUB_TOKEN (required), MCP_HOST (default localhost), and MCP_PORT (default 8004).
What tools does the server provide?
search_repositories, get_repository_details, get_repository_issues, get_repository_discussions, and get_top_repos_by_activity.
How to troubleshoot connection refused errors?
Ensure the server is running and the port is not blocked by a firewall.
What about GitHub API rate limiting?
The server handles rate limits but may slow down during heavy usage.
Frequently asked questions
What prerequisites are needed?
Python 3.8+ and a GitHub Personal Access Token with appropriate permissions.
How do I configure the server?
Set environment variables: `GITHUB_TOKEN` (required), `MCP_HOST` (default localhost), and `MCP_PORT` (default 8004).
What tools does the server provide?
`search_repositories`, `get_repository_details`, `get_repository_issues`, `get_repository_discussions`, and `get_top_repos_by_activity`.
How to troubleshoot connection refused errors?
Ensure the server is running and the port is not blocked by a firewall.
What about GitHub API rate limiting?
The server handles rate limits but may slow down during heavy usage.
Basic information
More Version Control MCP servers
Jira MCP
nguyenvanduocitA Go-based MCP (Model Control Protocol) connector for Jira that enables AI assistants like Claude to interact with Atlassian Jira. This tool provides a seamless interface for AI models to perform common Jira operations including issue management, sprint planning, and workflow tra
๐ GitLab MR MCP
kopfrechnerInteract seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
Git MCP Server
cyanheadsA Git MCP server for AI agents. STDIO & Streamable HTTP.
Github Mcp Server
githubGitHub's official MCP Server
GitLab MCP Server
yoda-digitalProduction-grade GitLab MCP server with 86 tools โ full GitLab control from any AI agent (Claude, Cursor, Zed).
Comments