mcpField
M
Mcp Server Github Gist

Mcp Server Github Gist

Local
github.com/ofershapVersion Control2Updated 33w ago

About Mcp Server Github Gist

Mcp Server Github Gist is an MCP server for managing GitHub Gists from an AI assistant or IDE. It covers listing, searching, creating, editing, starring, and deleting gists, including their file contents.

Key features

  1. 01List and search gists
  2. 02Read gist files and contents
  3. 03Create public or secret gists
  4. 04Edit descriptions and files
  5. 05Star and unstar gists
  6. 06Delete gists

Use cases

  1. 01Save a code snippet as a gist
  2. 02Find and inspect an existing gist
  3. 03Update or remove a gist from an IDE

MCP support

The MCP server exposes tools for listing, reading, creating, updating, deleting, and starring GitHub Gists. It requires a GitHub personal access token with the `gist` scope.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"github-gist": {
"command": "npx",
"args": [
"-y",
"mcp-server-github-gist"
]
}
}
}
Run commandnpx -y mcp-server-github-gist

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmmcp-server-github-gist1.0.2

Tools

8

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
perPageintegerNoNumber of gists per page
pageintegerNoPage number

Details

From the project README

MCP Server GitHub Gist — Manage Gists from Your AI Assistant

npm version npm downloads CI License: MIT

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/abc123

Works with Claude Desktop, Cursor, and VS Code Copilot.

MCP server GitHub Gist demo — creating and listing gists from Claude Desktop

Tools

ToolWhat it does
gist_listList your gists (paginated)
gist_getGet a gist by ID (includes file contents)
gist_createCreate a new gist (public or secret)
gist_updateUpdate description or file contents
gist_deleteDelete a gist
gist_starredList your starred gists
gist_starStar a gist
gist_unstarUnstar 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.

  1. Go to GitHub Settings > Tokens
  2. Create a token with the gist scope
  3. Set it as GITHUB_TOKEN or GITHUB_PERSONAL_ACCESS_TOKEN environment 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 build

Author

Made by ofershap

LinkedIn GitHub


README built with README Builder

License

MIT © Ofer Shapira

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.