# Gist — MCP server on mcp.ai > Connect your Gist account and use 20 tools for developer tools straight from your AI agent. Connect with your own API key. GitHub Gist is a service provided by GitHub that allows users to share code snippets, notes, and other text-based content. It supports both public and private gists, enabling easy sharing and collaboration. By: mcp.ai · official Page: https://mcp.ai/gist ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_gist?ms=1787293560000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/gist/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/gist/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/gist/skill.md Postman collection (v2.1): https://mcp.ai/gist/postman.json ## Tools - gist_check_gist_star(gist_id: string) — Check if the authenticated user has starred a specific gist. Returns True if the gist is starred, False if not starred or if the gist doesn't exist. This is a read-only, idempotent operation that requ - gist_create_gist(files: object, public?: boolean, description?: string) — Tool to create a new gist with one or more files. Use when you need to create a code snippet or text file to share. Note: Do not name your files 'gistfile' with a numerical suffix. - gist_create_gist_comment(body: string, gist_id: string) — Tool to create a comment on a gist. Use when you need to add a comment to an existing gist. - gist_delete_gist(gist_id: string) — Tool to delete a gist. Use when you have a gist_id and want to permanently remove that gist. Example prompt: "Delete gist 'aa5a315d61ae9438b18d'". - gist_delete_gist_comment(gist_id: string, comment_id: integer) — Tool to delete a comment on a gist. Use when you have both the gist_id and comment_id and want to remove that comment. Example prompt: "Delete comment 42 from gist 'aa5a315d61ae9438b18d'". - gist_fork_gist(gist_id: string) — Tool to fork a gist. Use when you need to create a copy of an existing gist under your own account. - gist_get_gist(gist_id: string) — Tool to retrieve a specific gist by its ID. Use when you have a gist_id and need complete gist details. - gist_get_gist_comment(gist_id: string, comment_id: integer) — Tool to get a specific comment on a gist. Use when you need to retrieve details of a particular comment given gist_id and comment_id. - gist_get_gist_revision(sha: string, gist_id: string) — Tool to retrieve a specific gist revision. Use when you need details of a past state for an existing gist by commit SHA. - gist_list_gist_comments(page?: integer, gist_id: string, per_page?: integer) — Tool to list comments on a gist. Use after confirming the gist_id to retrieve comments for a specific gist. Example: 'List comments for gist abc123'. - gist_list_gist_commits(page?: integer, accept?: string, gist_id: string, per_page?: integer) — Tool to list the commit history of a gist. Use after you have the gist ID to review its revisions. - gist_list_gist_forks(page?: integer, gist_id: string, per_page?: integer) — Tool to list forks of a gist. Use after obtaining a gist_id to retrieve all forks for the gist. - gist_list_gists(page?: integer, since?: string, accept?: string, per_page?: integer) — Tool to list the authenticated user's gists or all public gists if called anonymously. Use after setting a valid GitHub token in headers. - gist_list_public_gists(page?: integer, since?: string, per_page?: integer) — Tool to list public gists sorted by most recently updated. Use when you need to discover recent public gists. Note: with pagination, you can fetch up to 3000 gists. - gist_list_starred_gists(page?: integer, since?: string, accept?: string, per_page?: integer) — Tool to list the authenticated user's starred gists. Use when you need to retrieve all gists the user has starred. - gist_list_user_gists(page?: integer, since?: string, per_page?: integer, username: string) — Tool to list public gists for a specified GitHub user. Use when you have a username and need their gists. - gist_star_gist(gist_id: string) — Star a GitHub gist. This operation is idempotent and will succeed even if the gist is already starred. - gist_unstar_gist(gist_id: string) — Unstar a GitHub gist. This operation is idempotent and will succeed even if the gist is not currently starred. - gist_update_gist(files?: object, gist_id: string, description?: string) — Tool to update a gist's description and files. Use when you need to modify gist content, rename files, or delete files from a gist. - gist_update_gist_comment(body: string, gist_id: string, comment_id: integer) — Tool to update a Gist comment. Updates an existing comment on a gist. You must be the author of the comment to update it. ## Example prompts - "What can I do in Gist?" - "Show me a summary of my Gist account" ## Links Docs: https://mcp.ai/docs/mcps/gist Website: https://mcp.ai/mcps/gist