Provides lightweight tools for analyzing GitHub repository issues and pull requests, returning minimal essential data (id, URL, title, body, comments) optimized for bulk analysis with 90%+ smaller responses than full GitHub API.
GitHub MCP Lightweight
A lightweight GitHub MCP (Model Context Protocol) server optimized for efficient issue and pull request analysis. This server provides minimal response sizes by returning only essential fields, making it perfect for bulk analysis of GitHub repositories.
🚀 Features
Lightweight responses: 90%+ smaller than full GitHub API responses
Essential data only: Returns only id, html_url, title, body, and comment bodies
Efficient bulk analysis: Optimized for processing large numbers of issues/PRs
Simple setup: Easy installation and configuration
Rate limit aware: Built-in GitHub API rate limiting awareness
📦 Installation
🔧 Configuration
1. Get a GitHub Personal Access Token
Go to GitHub Settings > Developer settings > Personal access tokens
Click "Generate new token (classic)"
Select the following scopes:
repo(for private repositories) orpublic_repo(for public repositories only)read:org(if accessing organization repositories)
Copy the generated token
2. Configure MCP Settings
Add the server to your MCP settings configuration file:
For Cline/Claude Dev:
Edit ~/.vscode-server/data/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json:
For Claude Desktop:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or equivalent:
🛠️ Available Tools
list_repository_issues
List issues from a GitHub repository with minimal response size.
Parameters:
owner(string, required): Repository owner (username or organization)repo(string, required): Repository namesince(string, required): Only show issues updated at or after this time (ISO 8601 format)
Example:
list_repository_pull_requests
List pull requests from a GitHub repository with minimal response size.
Parameters:
owner(string, required): Repository owner (username or organization)repo(string, required): Repository namesince(string, required): Only show pull requests updated at or after this time (ISO 8601 format)
Example:
📊 Response Format
Both tools return a lightweight response containing only essential fields:
🔄 Comparison with Full GitHub MCP
Feature | Full GitHub MCP | Lightweight MCP |
Response size | ~50+ fields per issue | 5 fields per issue |
Bandwidth usage | High | Low (90%+ reduction) |
Processing speed | Slower | Faster |
Use case | Comprehensive operations | Bulk analysis |
Comment data | Full metadata | Body text only |
🚨 Error Handling
The server provides clear error messages for common issues:
401 Unauthorized: Invalid or expired GitHub token
403 Forbidden: Rate limit exceeded or insufficient permissions
404 Not Found: Repository not found or access denied
🔒 Security Best Practices
Token Storage: Store your GitHub token securely in environment variables
Token Permissions: Use minimal required scopes for your use case
Token Rotation: Regularly rotate your personal access tokens
Environment Isolation: Use different tokens for different environments
📈 Rate Limiting
GitHub allows 5,000 requests per hour for authenticated requests
The server is aware of rate limits and will provide appropriate error messages
For large repositories, consider using more specific
sinceparameters to reduce API calls
🐛 Troubleshooting
Server won't start
Verify
GITHUB_TOKENenvironment variable is setCheck token permissions include required scopes
Ensure token is not expired
Authentication errors
Regenerate your GitHub personal access token
Verify token has access to the target repository
Check if repository is private and token has
reposcope
Empty responses
Verify repository exists and is accessible
Check
sinceparameter isn't too recentEnsure repository has issues/PRs updated after the
sincedate
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
MIT License - see LICENSE file for details.