GitHub MCP Server
by ds231
GitHub MCP Server
A FastAPI server implementing the Model Context Protocol for GitHub interactions.
Setup
Clone the repository
Create a virtual environment:
python -m venv venv source venv/bin/activateInstall dependencies:
pip install -r requirements.txtCreate a
.envfile with your GitHub Personal Access Token:GITHUB_TOKEN=your_token_here
Usage
Start the server:
uvicorn server:app --reload --port 8000API Endpoints
Get Repository Details
GET /repository/{owner}/{repo}List Issues
GET /repository/{owner}/{repo}/issuesCreate Issue
POST /repository/{owner}/{repo}/issuesCreate Comment
POST /repository/{owner}/{repo}/issues/{issue_number}/commentsError Handling
The server implements comprehensive error handling for all GitHub API interactions. Errors are logged and appropriate HTTP status codes are returned.
Type Hints
The codebase uses type hints throughout for better maintainability and IDE support.
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/ds231/MCP-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server