GitHub MCP Server
Stateless Streamable HTTP MCP server exposing 5 GitHub tools (user info, repository metadata, file contents, issue listing, and issue creation) with token-based authentication required only for tool calls.
README
GitHub MCP Server (Streamable HTTP, stateless)
TypeScript MCP server that exposes 5 GitHub tools over stateless Streamable HTTP.
No sessions / no mcp-session-id — each POST is independent (good for gateways and multi-instance deploy).
The GitHub access-token header is required only for tools/call.
initialize, tools/list, and other discovery methods work without a token.
Tools
| Tool | Description |
|---|---|
get_me |
Authenticated user for the token |
get_repository |
Repository metadata (owner, repo) |
get_file_contents |
File or directory contents (owner, repo, path, optional ref) |
list_issues |
List issues (PRs filtered out) |
create_issue |
Create an issue (title, optional body, labels, assignees) |
Requirements
- Node.js 18+
- A GitHub personal access token (classic or fine-grained) with the scopes your tools need
- Read tools:
repo(or public-only fine-grained read) create_issue: issues write on the target repo
- Read tools:
Setup
npm install
npm run build
npm start
Dev (no build step):
npm run dev
Docker
docker build -t github-mcp .
docker run --rm -p 3000:3000 github-mcp
MCP endpoint: http://localhost:3000/mcp.
Server listens on http://localhost:3000/mcp (override with PORT).
Authentication
| MCP method | access-token required? |
|---|---|
initialize, tools/list, ping, notifications |
No |
tools/call |
Yes |
On tool calls, send a GitHub personal access token:
access-token: ghp_your_token_here
Alternatively:
Authorization: Bearer ghp_your_token_here
Missing token on tools/call → 401 JSON-RPC error.
Client configuration
Point any Streamable HTTP MCP client at:
http://localhost:3000/mcp
Send the GitHub token on tool-call requests (many clients set it for all requests to the server):
{
"mcpServers": {
"github": {
"url": "http://localhost:3000/mcp",
"headers": {
"access-token": "ghp_your_token_here"
}
}
}
}
(Exact client config shape depends on the client.)
Health check
curl http://localhost:3000/health
Project layout
src/
index.ts # Express + stateless Streamable HTTP (POST only), access-token middleware
server.ts # McpServer factory
tools.ts # 5 tool registrations
github.ts # GitHub REST client
context.ts # AsyncLocalStorage for per-request token
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.
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.
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.
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.