github-mcp-server
Enables AI assistants to interact with GitHub issues, pull requests, and Actions workflows through MCP tools.
README
GitHub MCP Server
A Model Context Protocol (MCP) server that exposes GitHub issues, pull requests, and Actions workflows as tools for AI assistants.
Built with TypeScript, Express, and the MCP SDK. Uses SSE transport so it can be connected from Cursor or other MCP clients over HTTP.
Features
Issues
| Tool | Description |
|---|---|
getIssue |
Get a GitHub issue by number |
createIssueComment |
Create a comment on an issue |
updateIssue |
Update an issue |
listIssues |
List issues for a repository |
Pull Requests
| Tool | Description |
|---|---|
getPullRequest |
Get a pull request by number |
createPullRequestComment |
Create a comment on a pull request |
updatePullRequest |
Update a pull request |
listPullRequests |
List pull requests for a repository |
GitHub Actions
| Tool | Description |
|---|---|
listActions |
List workflow runs for a repository |
getActionStatus |
Get the status of a workflow run |
getActionDetails |
Get details of a workflow run |
cancelAction |
Cancel a workflow run |
retryAction |
Retry a workflow run |
Prerequisites
Setup
- Clone the repository and install dependencies:
pnpm install
- Copy the environment template and add your GitHub token:
cp .env.example .env
Edit .env and set GITHUB_TOKEN to your personal access token.
- Build the project:
pnpm build
Development
Start the server in watch mode:
pnpm dev
The server listens on port 8080 and exposes:
GET /sse— SSE endpoint for MCP client connectionsPOST /messages— Message endpoint for MCP transport
Project Structure
src/
├── main.ts # MCP server entry point (SSE transport)
├── tools/
│ ├── index.ts # Registers all MCP tools
│ ├── issues.ts # Issue tools
│ ├── pull-requests.ts # Pull request tools
│ └── actions.ts # GitHub Actions tools
└── github-functions/
├── client.ts # Shared Octokit client
├── types.ts # Shared types
├── issues.ts # Issue API wrappers
├── pull-requests.ts # Pull request API wrappers
└── actions.ts # Actions API wrappers
Scripts
| Command | Description |
|---|---|
pnpm build |
Compile TypeScript to dist/ |
pnpm dev |
Run the server in development mode with hot reload |
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.