GitHub Activity MCP Server
🚀 GitHub Activity MCP Server
Ein MCP-Server (Model Context Protocol), gebaut mit FastMCP und PyGithub, der KI-Assistenten mit GitHub verbindet — Repositories durchsuchen, Issues und PRs verwalten, Beiträge analysieren und mehr.
Was ist MCP? Das Model Context Protocol ist ein offener Standard, der KI-Assistenten über eine einheitliche Schnittstelle mit externen Daten und Tools verbindet. Stellen Sie es sich als „USB-C für KI“ vor.
✨ Funktionen
Dieser Server stellt 13 Tools, 3 Ressourcenanbieter und 3 Prompt-Vorlagen bereit und deckt damit alle drei MCP-Primitive ab.
🔧 Tools (Modellgesteuert)
Aktionen, die die KI autonom ausführen kann:
Tool | Beschreibung |
| GitHub-Repositories nach Abfrage, Sprache und Sternen durchsuchen |
| Detaillierte Repository-Infos abrufen (Sterne, Forks, Themen usw.) |
| Beliebige Datei aus einem Repository lesen |
| Letzte Commits mit Filtern auflisten |
| Issues mit Status-, Label- und Bearbeiter-Filtern auflisten |
| Vollständige Issue-Details plus Kommentare abrufen |
| Ein neues Issue erstellen |
| Ein Issue kommentieren |
| Pull Requests mit Status-/Branch-Filtern auflisten |
| PR-Details und Merge-Status abrufen |
| Code-Änderungen eines PRs ansehen |
| Öffentliches Profil eines Benutzers abrufen |
| Repositories eines Benutzers auflisten |
📦 Ressourcen (Anwendungsgesteuert)
Kontextdaten, die die KI lesen kann:
Ressourcen-URI | Beschreibung |
| Repository-README (Markdown) |
| Vollständige Auflistung des Dateibaums |
| Sprachverteilung mit Prozentanteilen |
💬 Prompts (Benutzergesteuert)
Vorgefertigte Workflow-Vorlagen:
Prompt | Beschreibung |
| Umfassende Repository-Analyse |
| Code-Review mit Best Practices |
| Offene Issues kategorisieren und priorisieren |
Related MCP server: GitHub MCP Server
🏗️ Architektur
graph LR
A[AI Assistant] <-->|MCP Protocol| B[GitHub MCP Server]
B <-->|REST API| C[GitHub API]
subgraph "MCP Server (FastMCP)"
B --> D[Tools]
B --> E[Resources]
B --> F[Prompts]
end
subgraph "Tools"
D --> D1[Repos]
D --> D2[Issues]
D --> D3[Pull Requests]
D --> D4[Users]
end🚀 Schnellstart
Voraussetzungen
Python ≥ 3.10
GitHub Personal Access Token (optional, aber empfohlen für höhere Rate Limits)
Installation
# Clone the repository
git clone https://github.com/YOUR_USERNAME/github-mcp-server.git
cd github-mcp-server
# Install dependencies
pip install fastmcp PyGithubGitHub-Token einrichten (Optional)
Erstellen Sie in Ihrem GitHub-Einstellungen einen Personal Access Token mit den Bereichen repo und read:user:
# Linux/macOS
export GITHUB_TOKEN=ghp_your_token_here
# Windows (PowerShell)
$env:GITHUB_TOKEN = "ghp_your_token_here"Hinweis: Ohne Token sind Sie auf 60 API-Anfragen pro Stunde begrenzt. Mit Token sind es 5.000 pro Stunde.
Server starten
# Run directly
fastmcp run src/server.py
# Or with Python
python -m src.serverTesten mit FastMCP Dev Mode
fastmcp dev src/server.py⚙️ Konfiguration
Claude Desktop
Fügen Sie in Ihrer Claude-Desktop-Konfiguration Folgendes hinzu (~/Library/Application Support/Claude/claude_desktop_config.json unter macOS bzw. %APPDATA%\Claude\claude_desktop_config.json unter Windows):
{
"mcpServers": {
"github": {
"command": "fastmcp",
"args": ["run", "src/server.py"],
"cwd": "/absolute/path/to/github-mcp-server",
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}Cursor
Fügen Sie in Ihrer Cursor-MCP-Konfiguration Folgendes hinzu (.cursor/mcp.json in Ihrem Projekt oder in der globalen Konfiguration):
{
"mcpServers": {
"github": {
"command": "fastmcp",
"args": ["run", "src/server.py"],
"cwd": "/absolute/path/to/github-mcp-server",
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}VS Code (GitHub Copilot)
Fügen Sie in Ihren VS-Code-Einstellungen Folgendes hinzu (.vscode/settings.json):
{
"mcp": {
"servers": {
"github": {
"command": "fastmcp",
"args": ["run", "src/server.py"],
"cwd": "/absolute/path/to/github-mcp-server",
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
}📁 Projektstruktur
github-mcp-server/
├── src/
│ ├── __init__.py
│ ├── server.py # FastMCP server instance & entry point
│ ├── github_client.py # PyGithub client wrapper & error handling
│ ├── resources.py # Resource providers (README, tree, languages)
│ ├── prompts.py # Prompt templates (analyze, review, triage)
│ └── tools/
│ ├── __init__.py
│ ├── repos.py # Repository tools (search, get, file contents, commits)
│ ├── issues.py # Issue tools (list, get, create, comment)
│ ├── pulls.py # Pull request tools (list, get, diff)
│ └── users.py # User tools (profile, repos)
├── pyproject.toml
├── README.md
├── LICENSE
└── .gitignore🛠️ Tech-Stack
Technologie | Zweck |
High-Level-MCP-Server-Framework | |
GitHub REST-API-Client | |
Der offene Standard für KI-Tool-Integration |
🤝 Mitwirken
Beiträge sind willkommen! So funktioniert's:
Forken Sie das Repository.
Erstellen Sie einen Feature-Branch (
git checkout -b feature/amazing-feature).Committen Sie Ihre Änderungen (
git commit -m 'Add amazing feature').Pushen Sie den Branch (
git push origin feature/amazing-feature).Öffnen Sie einen Pull Request.
📄 Lizenz
Dieses Projekt ist unter der MIT-Lizenz lizenziert — siehe die Datei LICENSE für Details.
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 Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze GitHub repositories, including fetching repository details, searching, and retrieving README content.4522ISC
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to perform GitHub operations such as creating repositories, issues, pull requests, and more through natural language.
- FlicenseBqualityDmaintenanceEnables AI assistants to inspect local Git repositories and interact with the GitHub API for reading commits, diffs, files, issues, comments, pull requests, and project boards.10121
- FlicenseCqualityBmaintenanceEnables AI assistants to interact with GitHub repositories via the REST API, supporting repository listing, detail retrieval, and issue management.2
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…
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
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/pranjal-sen-2004/github-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server