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.
shell
git clone <your-repo-url>
cd github-mcp-server
shell
npm install
.env
file in the root directory:shell
cp .env.example .env
.env
:```dotenv
# 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
```
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:
shell
npm run dev
http://localhost:3000
by defaultcurl -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
}'
curl http://localhost:3000/api/github/repos
Health check endpoint to verify server status.
Lists all repositories accessible to the authenticated user.
Creates a new repository.
Request body:
{
"name": "repository-name",
"description": "Repository description",
"private": false,
"auto_init": true
}
The server includes comprehensive error handling for:
All errors are logged and returned with appropriate HTTP status codes.
To run the server in development mode with auto-reload:
npm run dev
To run tests:
npm test
Logs are stored in:
error.log
: Error-level logscombined.log
: All logsgit checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
GitHub MCP server for Cursor IDE
No releases published
No packages published