I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

github-mcp-server
Serveur GitHub MCP pour Cursor IDE
3 years
Works with Finder
1
Github Watches
0
Github Forks
1
Github Stars
GitHub MCP Server for Cursor IDE
A powerful GitHub integration server that allows you to manage your GitHub repositories directly from Cursor IDE. This server provides a RESTful API to interact with GitHub's API, making it easier to create and manage repositories.
Features
- Create new GitHub repositories
- List existing repositories
- Secure token-based authentication
- Rate limiting protection
- Comprehensive error handling
- Detailed logging
- Webhook support (coming soon)
Prerequisites
- Node.js (v14 or higher)
- npm (v6 or higher)
- A GitHub account with a Personal Access Token
- Cursor IDE
Setup
- Clone this repository:
git clone <your-repo-url>
cd github-mcp-server
- Install dependencies:
npm install
- Create a
.env
file in the root directory:
cp .env.example .env
- Configure your environment variables in
.env
:
# Server Configuration
PORT=3000
NODE_ENV=development
# GitHub Configuration
GITHUB_TOKEN=your_github_token_here
GITHUB_WEBHOOK_SECRET=your_webhook_secret_here
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000 # 15 minutes
RATE_LIMIT_MAX_REQUESTS=100
-
Generate a GitHub Personal Access Token:
- Go to GitHub.com → Settings → Developer Settings → Personal Access Tokens → Tokens (classic)
- Click "Generate new token" → "Generate new token (classic)"
- Give your token a descriptive name (e.g., "MCP Server Integration")
- Select these permissions:
-
repo
(Full control of private repositories) -
read:org
(Read organization data) -
admin:repo_hook
(Full control of repository hooks)
-
- Copy the generated token and paste it in your
.env
file
-
Start the server:
npm run dev
Using with Cursor IDE
- Open Cursor IDE
- The MCP server will run on
http://localhost:3000
by default - You can use the following endpoints:
Create a New Repository
curl -X POST http://localhost:3000/api/github/repos \
-H "Content-Type: application/json" \
-d '{
"name": "my-new-repo",
"description": "A new repository created via MCP",
"private": false,
"auto_init": true
}'
List Your Repositories
curl http://localhost:3000/api/github/repos
API Endpoints
GET /health
Health check endpoint to verify server status.
GET /api/github/repos
Lists all repositories accessible to the authenticated user.
POST /api/github/repos
Creates a new repository.
Request body:
{
"name": "repository-name",
"description": "Repository description",
"private": false,
"auto_init": true
}
Error Handling
The server includes comprehensive error handling for:
- Invalid GitHub tokens
- Rate limiting
- Validation errors
- GitHub API errors
- Server errors
All errors are logged and returned with appropriate HTTP status codes.
Security Features
- Token-based authentication
- Rate limiting protection
- Input validation
- Secure environment variable handling
- CORS protection
- Helmet security headers
Development
To run the server in development mode with auto-reload:
npm run dev
To run tests:
npm test
Logging
Logs are stored in:
-
error.log
: Error-level logs -
combined.log
: All logs
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.
Advanced software engineer GPT that excels through nailing the basics.
Therapist adept at identifying core issues and offering practical advice with images.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.
Miroir dehttps: //github.com/bitrefill/bitrefill-mcp-server
MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.
Reviews

user_tkMuFPWS
I've been using the Pdf application by jhchen2222-ui for a while now, and it's amazing! The seamless experience and intuitive interface make managing PDFs effortless. The direct link to the product is incredibly convenient: https://mcp.so/server/pdf/jhchen2222-ui. Whether you're merging, splitting, or converting, Pdf handles it all with ease. Highly recommend it!