Skip to main content
Glama
mcp-server-github-gist

mcp-server-github-gist

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

Tool

What it does

gist_list

List your gists (paginated)

gist_get

Get a gist by ID (includes file contents)

gist_create

Create a new gist (public or secret)

gist_update

Update description or file contents

gist_delete

Delete a gist

gist_starred

List your starred gists

gist_star

Star a gist

gist_unstar

Unstar a gist

Related MCP server: GistPad MCP

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

Available Tools

8 tools
gist_createC

Create a new GitHub Gist

Inputs: files (required), description, public.

gist_deleteC

Delete a Gist by ID

Inputs: gistId (required).

gist_getA

Get a specific Gist by ID (includes file contents)

Inputs: gistId (required).

gist_listB

List your GitHub Gists

Inputs: perPage, page.

gist_starC

Star a Gist

Inputs: gistId (required).

gist_starredB

List your starred Gists

Inputs: perPage, page.

gist_unstarC

Unstar a Gist

Inputs: gistId (required).

gist_updateC

Update an existing Gist (description or file contents)

Inputs: gistId (required), description, files.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific Gist operations: create, delete, get, list, star, list starred, unstar, and update. There is no overlap in functionality, and the descriptions make the distinctions unambiguous.

    Naming Consistency5/5

    All tools follow a consistent 'gist_verb' naming pattern (e.g., gist_create, gist_delete, gist_get). This uniform structure makes the tool set predictable and easy to understand, with no deviations in style.

    Tool Count5/5

    With 8 tools, the server is well-scoped for managing GitHub Gists. This number covers essential CRUD operations and additional features like starring, without being too sparse or overwhelming for the domain.

    Completeness5/5

    The tool set provides complete coverage for Gist management, including create, read (get/list), update, and delete, plus full lifecycle support for starring (star, unstar, list starred). There are no obvious gaps in the surface for this purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers