GitHub MCP Server
Provides tools for interacting with GitHub issues and pull requests, including retrieving issue and pull request details, creating comments, updating issues and pull requests, and listing issues and pull requests.
Provides tools for interacting with GitHub Actions workflows, including listing workflows, checking workflow run status, getting workflow run details, canceling workflow runs, and retrying workflow runs.
Click on "Install 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 MCP Serverlist open issues in octocat/Hello-World"
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.
MCP Demo Server
This repository is a minimal Model Context Protocol (MCP) server that exposes GitHub issue, pull request, and Actions operations as tools over a Streamable HTTP transport.
Overview
The server uses:
@modelcontextprotocol/sdkfor MCP server and transport supportexpressto expose a/mcpHTTP endpointoctokitto communicate with GitHubzodto define tool input schemas
The server organizes code into two domains:
src/github/: GitHub helper functions grouped by domain (client,issues,pullRequests,actions)src/tools/: MCP tool registration for issues, pull requests, and actions
Related MCP server: mcp-github
Project structure
src/main.ts: MCP server setup, Express app, and tool registrationsrc/github/client.ts: Octokit client initialization and token validationsrc/github/issues.ts: GitHub issue helperssrc/github/pullRequests.ts: GitHub pull request helperssrc/github/actions.ts: GitHub Actions workflow helperssrc/tools/issues.ts: issue-related MCP toolssrc/tools/pullRequests.ts: pull-request-related MCP toolssrc/tools/actions.ts: action-related MCP tools.env: local environment variables (ignored in git).env.example: example environment variables.github/important-files.mdc: important file list for repo metadata
Requirements
Node.js 20+ (recommended)
corepack/pnpmGitHub Personal Access Token with repo and workflow permissions
Setup
Install dependencies:
pnpm installCopy the example environment file:
cp .env.example .envSet your GitHub token in
.env:GITHUB_TOKEN=your_github_token_here
Run locally
Start the development server:
pnpm devBuild the project:
pnpm buildServer endpoint
The MCP server listens on the port set by PORT or 8080 by default.
HTTP endpoint:
POST /mcp
This route accepts MCP requests from a compatible client and forwards them to the Streamable HTTP transport.
Connecting from VS Code
Create .vscode/mcp.json:
{
"servers": {
"github": { "type": "http", "url": "http://localhost:8080/mcp" }
}
}Ensure the server is running (pnpm dev) first, then start it via:
Command Palette → MCP: List Servers → Restart.
Available tools
Issues
getIssuecreateIssueCommentupdateIssuelistIssues
Pull Requests
getPullRequestcreatePullRequestCommentupdatePullRequestlistPullRequests
Actions
listActionsgetActionStatusgetActionDetailscancelActionretryAction
How it works
src/main.tscreates anMcpServerinstance.Domain-specific tool registrars attach GitHub tools to the server.
Express exposes
/mcpand each request creates a freshStreamableHTTPServerTransport.The transport handles the incoming request and sends the MCP response back to the client.
GitHub functions use Octokit with
GITHUB_TOKENfrom.env.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides tools for interacting with GitHub's API through the MCP protocol, allowing users to create repositories, push content, and retrieve user information.3442MIT
- Flicense-qualityCmaintenanceMCP server for the GitHub REST API that enables interaction with repositories, pull requests, issues, branches, commits, reviews, and code search, with configurable write and destructive operations.
- Alicense-qualityDmaintenanceEnables GitHub API integration via MCP, allowing search, repository details, file contents, and issue management.643ISC
- Flicense-qualityDmaintenanceEnables managing GitHub repositories, files, and user information through MCP, with support for creating, updating, and deleting repository contents, as well as fetching user profiles.1
Related MCP Connectors
GitHub Private MCP Pack — access private repos, org data via OAuth.
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/usmanzia7864561/mcp-github-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server