Overview
GitHub MCP Server for Cursor IDE is a powerful integration server that allows users to manage their GitHub repositories directly from the Cursor IDE environment, providing a seamless development experience.
To use the GitHub MCP Server, clone the repository, install the dependencies, configure your environment variables, and start the server. You can then interact with the server using various API endpoints.
- Create and manage GitHub repositories directly from Cursor IDE. - Secure token-based authentication for API access. - Comprehensive error handling and logging. - Rate limiting protection to prevent abuse. - Webhook support (coming soon).
- Automating repository creation and management tasks.
- Integrating GitHub functionalities into the Cursor IDE workflow.
- Enhancing collaboration by managing repositories from a single interface.
Add to your AI client
Use these steps to connect GitHub MCP Server for Cursor IDE in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"github-mcp-server-alfie-tek": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-mcp-server-alfie-tek"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"github-mcp-server-alfie-tek": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-mcp-server-alfie-tek"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"github-mcp-server-alfie-tek": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-mcp-server-alfie-tek"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"github-mcp-server-alfie-tek": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-mcp-server-alfie-tek"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"github-mcp-server-alfie-tek": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-mcp-server-alfie-tek"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"github-mcp-server-alfie-tek": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-mcp-server-alfie-tek"
]
}
}
}FAQ
What are the prerequisites for using the GitHub MCP Server?
You need Node.js, npm, a GitHub account with a Personal Access Token, and Cursor IDE.
How do I create a new repository using the server?
You can create a new repository by sending a POST request to the `/api/github/repos` endpoint with the required parameters.
Is there support for error handling?
Yes, the server includes comprehensive error handling for various scenarios, including invalid tokens and rate limiting.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3609,"uuid":"dadda245-929a-445f-a437-72517c28308c","name":"github-mcp-server","title":"GitHub MCP Server for Cursor IDE","description":"GitHub MCP server for Cursor IDE","avatar_url":"https://avatars.githubusercontent.com/u/202756537?v=4","created_at":"2025-03-20T14:39:00.437Z","updated_at":"2025-03-20T14:47:46.059Z","status":"created","author_name":"alfie-tek","author_avatar_url":"https://avatars.githubusercontent.com/u/202756537?v=4","tags":"github,mcp-server,cursor-ide","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/alfie-tek/github-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-20 21:48:54\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]