Labsco
wipiano logo

GitHub MCP Lightweight

from wipiano

A lightweight server for analyzing GitHub issues and pull requests using a Personal Access Token.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

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

๐Ÿ› ๏ธ 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 name
  • since (string, required): Only show issues updated at or after this time (ISO 8601 format)

Example:

{
  "owner": "microsoft",
  "repo": "vscode",
  "since": "2024-01-01T00:00:00Z"
}

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 name
  • since (string, required): Only show pull requests updated at or after this time (ISO 8601 format)

Example:

{
  "owner": "microsoft",
  "repo": "vscode",
  "since": "2024-01-01T00:00:00Z"
}

๐Ÿ“Š Response Format

Both tools return a lightweight response containing only essential fields:

{
  "repository": "owner/repo",
  "since": "2024-01-01T00:00:00Z",
  "total_issues": 42,
  "issues": [
    {
      "id": 123456789,
      "html_url": "https://github.com/owner/repo/issues/1",
      "title": "Issue title",
      "body": "Issue description...",
      "comments": [
        "First comment body...",
        "Second comment body..."
      ]
    }
  ]
}

๐Ÿ”„ Comparison with Full GitHub MCP

FeatureFull GitHub MCPLightweight MCP
Response size~50+ fields per issue5 fields per issue
Bandwidth usageHighLow (90%+ reduction)
Processing speedSlowerFaster
Use caseComprehensive operationsBulk analysis
Comment dataFull metadataBody 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

  1. Token Storage: Store your GitHub token securely in environment variables
  2. Token Permissions: Use minimal required scopes for your use case
  3. Token Rotation: Regularly rotate your personal access tokens
  4. 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 since parameters to reduce API calls

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿ”— Links