github-mcp
GitHub MCP Server
A Spring Boot-based custom MCP (Model Context Protocol) server that provides GitHub API integration for any MCP-compatible IDE or AI agent. 1. Configure Your IDE/Agent Add to your MCP configuration: 2. GitHub Token Create token at GitHub Settings > Developer settings > Personal access tokens with scopes: repo, read:user
Summary extracted from the README.
GitHub MCP Server
A Spring Boot-based custom MCP (Model Context Protocol) server that provides GitHub API integration for any MCP-compatible IDE or AI agent.
π Quick Start
1. Configure Your IDE/Agent
Add to your MCP configuration:
{
"github": {
"serverUrl": "https://github-mcp.up.railway.app/mcp",
"headers": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
2. GitHub Token
Create token at GitHub Settings > Developer settings > Personal access tokens with scopes: repo, read:user
π οΈ Available Tools
githubListRepositories- List repositoriesgithubGetAuthenticatedUser- Get user profilegithubGetUser- Get user by usernamegithubGetRepository- Get repository detailsgithubListBranches- List repository branchesgithubListCommits- List repository commitsgithubSearchRepositories- Search repositoriesgithubSearchCode- Search code in repositorygithubAnalyzePullRequest- Analyze PR details
π Available Resources
mcp://github- GitHub overviewmcp://github/user- User profilemcp://github/repositories- Repository listmcp://github/stats- Account statisticsmcp://github/dashboard- Complete dashboard
ποΈ Architecture
IDE/Agent β HTTP POST /mcp β Spring Security β Spring AI MCP β GitHubTools β GitHub API
π³ Docker Deployment
Multi-stage Dockerfile for production:
- Build stage: Maven compilation
- Runtime stage: Lightweight JDK with JAR
π§ Development
- Java 21 + Spring Boot 3.5.11
- Spring AI MCP Framework
- Railway-ready deployment
- CORS enabled for web IDEs
π Learn More
See LEARN.md for detailed architecture, MCP protocol, and development guide.
π License
MIT License