Skip to content

JRM-FusionAL/github-mcp-safe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-mcp-safe

Production-Grade Rate Limiting for GitHub MCP Servers

License: MIT Python 3.11+ FastMCP FusionAL

"I got suspended by GitHub while building this. Now I help companies avoid the same mistake."
— Jonathan Melton, Founder of FusionAL

🌐 fusional.dev📧 Email🗓️ Book Consultation


The Problem

GitHub's API has multi-tier rate limits that are easy to violate:

  • Primary: 5,000 requests/hour
  • Secondary: 100 requests/minute (undocumented but strictly enforced)
  • Copilot API: Even stricter limits (exact numbers unknown)

Most MCP servers ignore these limits.

Result: Account suspensions, 403 errors, and broken automation. Real example: While building a GitHub Copilot assignment tool, I fired 31 API calls in 10 seconds → account suspended for rate limit abuse. This suspension led to the creation of FusionAL.


The Solution

github-mcp-safe is a hardened GitHub MCP server implementation that adds:

Automatic rate limiting with sliding windows
Exponential backoff on 429/403 errors
GraphQL batching (97% API usage reduction)
Rate-limit metrics reporting via MCP tool output
Production-tested on 10,000+ requests, zero suspensions


Quick Start

Installation

# Using UV (recommended)
uv pip install github-mcp-safe

# Using pip
pip install github-mcp-safe

Basic Usage

from github_mcp_safe import SafeGitHubClient

async with SafeGitHubClient(token="ghp_...") as client:
    # This request is automatically rate-limited
    issues = await client.get("/repos/owner/repo/issues")

Real-World Performance

Case Study: FusionAL Copilot Assignment Workflow

Before: 31 API calls → suspended in 10 seconds
After: 1 GraphQL call → completes in 2 seconds
Result: 97% fewer API calls, zero suspensions over 30 days

Metrics from Production

  • 10,000+ requests processed
  • 0 account suspensions
  • 12 hours total wait time (saved from hitting limits)
  • 99.7% success rate

Credits

Created by: Jonathan Melton (@2EfinAwesome)

Company: FusionAL — Professional AI integration consultancy specializing in production-grade MCP servers and API automation.

Origin Story: Built after getting suspended by GitHub for rate limit violations. Turned the suspension into a business helping others avoid the same mistakes.

Need help? FusionAL builds production-grade AI integrations that don't get you banned.
🌐 fusional.devProduction MCP deployments (from $3,500)
📧 jonathanmelton.fusional@gmail.com
🗓️ Book a consulting call


See Also


Star this repo if it saved you from a GitHub suspension!

💼 Hiring? FusionAL builds AI automation systems that respect platform limits and keep you online.

Services:

  • Starter Pilot ($3,500): Prove value with 1 workflow in 2 weeks
  • Growth Pilot ($9,000): Multi-workflow rollout with observability
  • Managed Ops ($3k/mo): Ongoing governance + support

🌐 fusional.dev — Self-hosted MCP governance for enterprise AI

📧 Business Contact: jonathanmelton.fusional@gmail.com
🗓️ Schedule Consultation: https://calendly.com/jonathanmelton004/30min
🐦 Follow Updates: @2EfinAwesome

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors