The Github Issues Manager MCP is a server implementation of the Model Context Protocol specification that allows controlling issue management on Github repositories. This implementation enables seamless integration with Github's issue tracking system through a standardized MCP interface.
You can install the Github Issues Manager MCP server using npm:
npm install -g github-issues-mcp
Alternatively, you can clone the repository and install dependencies:
git clone https://github.com/yourusername/github-issues-mcp.git
cd github-issues-mcp
npm install
Before running the server, you need to set up your Github authentication details.
repo
scope at https://github.com/settings/tokensUsing environment variables:
export GITHUB_TOKEN=your_personal_access_token
Or create a .env
file in the project root:
GITHUB_TOKEN=your_personal_access_token
Start the MCP server by running:
github-issues-mcp --port 8080
Or if you cloned the repository:
npm start -- --port 8080
The server will start on the specified port (defaults to 3000 if not specified).
To create a new issue, send a POST request with the appropriate JSON payload:
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-d '{
"command": "create_issue",
"repository": "owner/repo",
"title": "Bug: Application crashes when saving",
"body": "The application crashes when trying to save a file larger than 1MB.",
"labels": ["bug", "high-priority"]
}'
To list issues from a repository:
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-d '{
"command": "list_issues",
"repository": "owner/repo",
"state": "open",
"limit": 10
}'
To update an existing issue:
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-d '{
"command": "update_issue",
"repository": "owner/repo",
"issue_number": 42,
"title": "Updated: Application crashes when saving",
"body": "Updated description with more details...",
"state": "closed"
}'
To add a comment to an issue:
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-d '{
"command": "add_comment",
"repository": "owner/repo",
"issue_number": 42,
"body": "I've been able to reproduce this issue on version 1.2.3"
}'
The server supports various parameters for each command:
The server returns standardized error responses with HTTP status codes and descriptive messages:
{
"error": true,
"message": "Repository not found or unauthorized access",
"status": 404
}
Common error codes include:
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.