GitHub Issues MCP Server
This server lets an MCP client (Claude, Cursor, etc.) work with GitHub issues on a configured repository.
list_issues— List repository issues by state (open,closed, orall), most recently updated first, including number, title, state, author, and labels.create_issue— Create a new issue with a title, markdown body, and optional labels.add_comment— Comment on an existing issue by issue number.search_issues— Search repository issues using GitHub search syntax such aslabel:bugoris:open.repo://readme— Read the repository README as an MCP resource.repo://issues/recent— Read the 10 most recently updated open issues as an MCP resource.Supports running over stdio for desktop clients or as a Streamable HTTP server with token authentication.
Allows listing, creating, searching, and commenting on GitHub issues.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub Issues MCP Server show me open issues labeled bug"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
This repository is the companion code for the article Building a Custom MCP Server in TypeScript on the Snippets Ltd blog. Read the article for the step-by-step explanation: https://snippets.ltd/blog/building-custom-mcp-server-in-typescript
GitHub Issues MCP Server
A Model Context Protocol (MCP) server in TypeScript that lets Claude, Cursor, or any MCP client list, create, search, and comment on GitHub issues.
What it exposes
Type | Name | What it does |
Tool |
| List open, closed, or all issues (pull requests excluded), most recently updated first |
Tool |
| Create an issue with a title, body, and labels |
Tool |
| Comment on an existing issue |
Tool |
| Search issues with GitHub search syntax |
Resource |
| The repository README |
Resource |
| The 10 most recently updated open issues |
Related MCP server: GitHub Dev Copilot
Prerequisites
Node.js 20.12 or newer
A GitHub fine-grained personal access token with Issues: Read and write on the repository you want to use (use a test repo while experimenting)
Setup
git clone https://github.com/PaulliDev/github-issues-mcp.git
cd github-issues-mcp
npm install
cp .env.example .env # then fill in GITHUB_TOKEN, GITHUB_OWNER, GITHUB_REPO
npm run buildRun it
Command | What it does |
| Opens the MCP Inspector in your browser, connected to the server over stdio |
| Runs the stdio server (what desktop clients spawn) |
| Runs the Streamable HTTP server on |
Call the HTTP server
Add MCP_AUTH_TOKEN to .env, run npm run start:http, then from another terminal:
curl -s http://localhost:3001/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'Authorization: Bearer <your MCP_AUTH_TOKEN>' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Every MCP message is a POST to /mcp with a JSON-RPC body. Replies arrive as Server-Sent Events
(event: message / data: {...}). Without the header you get 401; GET returns 405.
The MCP Inspector can also connect: choose Streamable HTTP, URL http://localhost:3001/mcp,
and add the Authorization header. To publish online, run it on any Node host behind HTTPS.
Connect to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"github-issues": {
"command": "node",
"args": ["/absolute/path/to/github-issues-mcp/dist/index.js"],
"env": {
"GITHUB_TOKEN": "github_pat_your_token_here",
"GITHUB_OWNER": "your-org",
"GITHUB_REPO": "your-repo"
}
}
}
}Restart Claude Desktop and ask things like "show me open issues labeled bug".
Project structure
src/
├── index.ts # stdio entry point
├── http-server.ts # Streamable HTTP entry point (auth + rate limiting)
├── server.ts # createServer(): registers tools and resources
├── configuration.ts # loads .env and validates environment variables
├── github-client.ts # GitHub REST API wrapper
├── types.ts # shared and GitHub API types
├── tools/ # Zod input schemas, one file per tool
└── security/
├── sanitize-tool-output.ts
└── create-authentication-middleware.tsSecurity notes
Tool results contain text written by anyone who can open an issue. The server filters common prompt-injection phrases, but your client should still treat tool output as untrusted.
The HTTP server refuses to start without
MCP_AUTH_TOKEN. Use a long random value.Give the GitHub token the fewest permissions possible.
License
MIT
Available Tools
4 toolsadd_commentB
Add a comment to an existing issue.
Inputs: body (required), issueNumber (required).
create_issueB
Create a new issue in the GitHub repository.
Inputs: body (required), title (required), labels.
list_issuesA
List issues in the GitHub repository, most recently updated first. Returns issue number, title, state, author, and labels.
Inputs: state.
search_issuesA
Search for issues in this repository using GitHub search syntax (for example label:bug is:open).
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: listing, creating, commenting, and searching. There is no meaningful overlap between list_issues (broad browsing) and search_issues (query-based filtering), and the descriptions make this distinction explicit.
All four tool names follow a consistent verb_noun snake_case pattern: list_issues, create_issue, add_comment, search_issues. The naming is predictable and immediately communicates the action and target.
With only 4 tools, the server is quite focused but still covers core issue interaction. The count is on the low end but not unreasonably thin for a single-purpose GitHub issues server, so it earns a borderline score.
The server covers listing, creating, commenting, and searching issues, which handles the most common workflows. However, it lacks obvious lifecycle operations like updating, closing, or fetching a single issue, leaving notable gaps that agents cannot work around without external tools.
Maintenance
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with GitHub issues, pull requests, and Actions workflows through MCP tools.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with GitHub via MCP, managing repositories, issues, PRs, and analyzing repository health through tools like list_repositories, read_issues, create_issue, comment_on_pr, and analyze_repo_health.-
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible AI clients to manage GitHub repositories and issues and trigger repository dispatch events via tools and a REST API.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with GitHub repositories and issues through MCP tools, supporting listing repositories, listing and searching issues, and retrieving specific issues via the GitHub REST API.-