Allows for managing GitHub Gists, providing tools to create, read, update, delete, search, and star or unstar gists directly through an AI assistant.
MCP Server GitHub Gist — Manage Gists from Your AI Assistant
An MCP server to create, read, update, and search GitHub Gists without leaving your AI assistant. The official GitHub MCP server handles repos and issues — this one fills the Gist gap.
You: "Save this code snippet as a gist called 'auth-middleware.ts'"
AI: ✅ Created secret gist: https://gist.github.com/abc123Works with Claude Desktop, Cursor, and VS Code Copilot.

Tools
Tool | What it does |
| List your gists (paginated) |
| Get a gist by ID (includes file contents) |
| Create a new gist (public or secret) |
| Update description or file contents |
| Delete a gist |
| List your starred gists |
| Star a gist |
| Unstar a gist |
Quick Start
With Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"github-gist": {
"command": "npx",
"args": ["-y", "mcp-server-github-gist"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}With Cursor
Add to your .cursor/mcp.json:
{
"mcpServers": {
"github-gist": {
"command": "npx",
"args": ["-y", "mcp-server-github-gist"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}Authentication
Requires a GitHub personal access token with the gist scope.
Go to GitHub Settings > Tokens
Create a token with the gist scope
Set it as
GITHUB_TOKENorGITHUB_PERSONAL_ACCESS_TOKENenvironment variable
Examples
Ask your AI assistant:
"List my recent gists"
"Create a gist with this code snippet"
"Show me gist abc123"
"Update the description of gist abc123"
"Delete gist abc123"
"Star this gist"
Development
npm install
npm test
npm run buildAuthor
README built with README Builder