GitHub Activity MCP Server
Provides tools for interacting with GitHub, including searching repositories, accessing repository contents and commit history, managing issues and pull requests, and retrieving user profile information via the GitHub API.
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 Activity MCP ServerSearch for Python projects about machine learning"
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 Activity MCP Server
An MCP (Model Context Protocol) server built with FastMCP and PyGithub that connects AI assistants to GitHub β search repos, manage issues & PRs, analyze contributions, and more.
What is MCP? The Model Context Protocol is an open standard that lets AI assistants connect to external data and tools through a unified interface. Think of it as "USB-C for AI".
β¨ Features
This server exposes 13 tools, 3 resource providers, and 3 prompt templates β covering all three MCP primitives.
π§ Tools (Model-Controlled)
Actions the AI can take autonomously:
Tool | Description |
| Search GitHub repos by query, language, stars |
| Get detailed repo info (stars, forks, topics, etc.) |
| Read any file from a repo |
| List recent commits with filters |
| List issues with state/label/assignee filters |
| Get full issue details + comments |
| Create a new issue |
| Comment on an issue |
| List PRs with state/branch filters |
| Get PR details + merge status |
| View PR code changes |
| Get a user's public profile |
| List a user's repositories |
π¦ Resources (Application-Controlled)
Contextual data the AI can read:
Resource URI | Description |
| Repository README (markdown) |
| Full file tree listing |
| Language breakdown with percentages |
π¬ Prompts (User-Triggered)
Pre-built workflow templates:
Prompt | Description |
| Comprehensive repository analysis |
| Code review with best practices |
| Categorize and prioritize open issues |
Related MCP server: GitHub MCP Server
ποΈ Architecture
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π Quick Start
Prerequisites
Python β₯ 3.10
GitHub Personal Access Token (optional, but recommended for higher 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 PyGithubSet up your GitHub Token (Optional)
Create a Personal Access Token with repo and read:user scopes:
# Linux/macOS
export GITHUB_TOKEN=ghp_your_token_here
# Windows (PowerShell)
$env:GITHUB_TOKEN = "ghp_your_token_here"Note: Without a token, you're limited to 60 API requests/hour. With a token, you get 5,000/hour.
Run the Server
# Run directly
fastmcp run src/server.py
# Or with Python
python -m src.serverTest with FastMCP Dev Mode
fastmcp dev src/server.pyβοΈ Configuration
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, or %APPDATA%\Claude\claude_desktop_config.json on 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
Add to your Cursor MCP config (.cursor/mcp.json in your project or global config):
{
"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)
Add to your VS Code settings (.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"
}
}
}
}
}π Project Structure
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
Technology | Purpose |
High-level MCP server framework | |
GitHub REST API client | |
The open standard for AI-tool integration |
π€ Contributing
Contributions are welcome! Here's how:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
π License
This project is licensed under the MIT License β see the LICENSE file for 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