GistPad MCP is a server that allows you to manage your knowledge, notes, and prompts through GitHub Gists. It works with VS Code via the GistPad extension and GistPad.dev, enabling you to access and edit your gists from any MCP-enabled AI tool like GitHub Copilot or Claude Desktop.
Install the GistPad extension and reload VS Code:
Open the GistPad tab and sign in with your GitHub account. This completes setup - you can immediately use GistPad from Copilot chat in Agent mode.
Generate a GitHub personal access token with only the gist
scope:
Add the following to your client's MCP config file:
{
"mcpServers": {
"gistpad": {
"command": "npx",
"args": ["-y", "gistpad-mcp"],
"env": {
"GITHUB_TOKEN": "<YOUR_PAT>"
}
}
}
}
Once set up, you can interact with your gists in various ways:
Try asking:
list_gists
- Lists all your gists (excluding daily notes and archived gists)get_gist
- Retrieves contents of a specific gist by IDcreate_gist
- Creates a new gist with specified description and initial filedelete_gist
- Deletes a gist by IDupdate_gist_description
- Updates a gist's descriptionduplicate_gist
- Creates a copy of an existing gist with all its filesrefresh_gists
- Reloads your gist lists, ignoring cached dataupdate_gist_file
- Updates contents of a specific file in a gistadd_gist_file
- Adds a new file to an existing gistdelete_gist_file
- Deletes a file from a gistrename_gist_file
- Renames an existing file within a gistget_todays_note
- Gets or creates today's daily noteupdate_todays_note
- Updates content of today's daily notelist_daily_notes
- Lists all your daily notesget_daily_note
- Gets contents of a specific daily note by datedelete_daily_note
- Deletes a specific daily note by datelist_starred_gists
- Lists all your starred gistsstar_gist
- Stars a specific gistunstar_gist
- Unstars a gistlist_archived_gists
- Lists all your archived gistsarchive_gist
- Archives one of your gistsunarchive_gist
- Unarchives a gistlist_gist_comments
- Lists all comments for a specified gistadd_gist_comment
- Adds a new comment to a gistedit_gist_comment
- Updates content of an existing commentdelete_gist_comment
- Deletes a comment from a gistlist_gist_prompts
- Lists prompts in your collectionadd_gist_prompt
- Adds a new prompt to your collectiondelete_gist_prompt
- Deletes a prompt from your collectionIf you want to expose archived gists, starred gists, and/or daily notes as resources, update your MCP server config with flags:
{
"mcpServers": {
"gistpad": {
"command": "npx",
"args": ["-y", "gistpad-mcp", "--archived", "--starred", "--daily"],
"env": {
"GITHUB_TOKEN": "<YOUR_PAT>"
}
}
}
}
If you're not seeing a gist in your list, GistPad MCP might be using cached data. The server updates when you make changes through it or every hour. For immediate refresh, use the refresh_gists
tool (e.g., run #refresh_gists
in VS Code Copilot chat).
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "gistpad" '{"command":"npx","args":["-y","gistpad-mcp"],"env":{"GITHUB_TOKEN":"<YOUR_PAT>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"gistpad": {
"command": "npx",
"args": [
"-y",
"gistpad-mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_PAT>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"gistpad": {
"command": "npx",
"args": [
"-y",
"gistpad-mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_PAT>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect