Provides tools for accessing GitHub repositories, issues, pull requests, and searching code across the GitHub platform
GitHub MCP Server
A FastMCP server that provides access to GitHub repositories and data for Poke integration.
π Features
get_repos: Get repositories for a GitHub user
get_issues: Get issues for a repository
get_pull_requests: Get pull requests for a repository
search_code: Search for code on GitHub
π GitHub Token Setup
This server requires a GitHub personal access token for API access:
Generate a new token with
repoandpublic_reposcopesSet the environment variable:
export GITHUB_TOKEN=your_token_here
π οΈ Local Development
π’ Deployment
Deploy to Render
Steps:
Click the "Deploy to Render" button above or go to render.com
Connect your GitHub account to Render (if you haven't already)
Create a new Web Service:
Connect this repository
Name:
github-mcpEnvironment:
Python 3Plan:
FreeBuild Command:
pip install -r requirements.txtStart Command:
python src/server.py
Set environment variable:
Go to your Render service dashboard
Click on "Environment" tab
Add environment variable:
GITHUB_TOKEN=your_github_token_hereClick "Save Changes"
Deploy!
Note: On Render's free tier, services go idle after ~15 minutes of inactivity and may require a manual "Deploy" to wake or to pick up the latest commit. Unlike Vercel, pushes do not auto-deploy by default.
Your server will be available at https://github-mcp.onrender.com/mcp
π― Poke Integration
Add the MCP URL:
https://github-mcp.onrender.com/mcpGive it a name like "GitHub"
Try: "Can you use the GitHub MCP to list my repos?"
References
Based on the Interaction MCP server template: MCP Server Template
Discovered via Interactionβs HackMIT challenge: Interaction HackMIT Challenge
π§ Available Tools
get_repos(username, limit=10): Get repositories for a userget_issues(owner, repo, state="open", limit=10): Get issues for a repositoryget_pull_requests(owner, repo, state="open", limit=10): Get PRs for a repositorysearch_code(query, language="", limit=10): Search for code
π Example Usage
β οΈ Rate Limits
GitHub API has rate limits:
With token: 5,000 requests per hour
Without token: 60 requests per hour
The server will return an error if rate limits are exceeded.
This server cannot be installed