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: github-mcp-tool
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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Manage repositories, users, releases, and automate GitHub workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables GitHub API integration via MCP, allowing search, repository details, file contents, and issue management.467ISC
- FlicenseNot gradedqualityDmaintenanceEnables 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
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with GitHub issues, pull requests, and Actions workflows through MCP tools.
- FlicenseNot gradedqualityCmaintenanceEnables read-only browsing and querying of GitHub repositories, including listing repos, reading files, fetching READMEs, searching code, and viewing commit history via 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