Gists MCP Server
Provides tools for managing GitHub Gists, including creating, updating, deleting, listing, starring, and forking gists. Enables saving code snippets to the cloud and retrieving them as a personal code library.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gists MCP Serversave this React hook as a gist for future use"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🚀 Gists MCP Server - Your AI's Code Memory!
Transform GitHub Gists into your AI assistant's personal code snippet library! 🧠💾 (this readme totally wasn't written by Claude 😂)
Ever found yourself searching through GitHub repos and thinking "Wow, this code is gold!" only to lose it in your browser history? Or maybe you're tired of copy-pasting code between ChatGPT sessions?
Welcome to the future of AI-assisted development! 🎉
🌟 What Makes This Special?
This MCP server turns Claude into your intelligent code librarian who can:
📥 Save brilliant code you discover anywhere on GitHub directly to YOUR gists
🔍 Instantly retrieve that authentication implementation you saved 3 months ago
📝 Update and refine your code collection as you learn better patterns
🗂️ Organize snippets with descriptive names that make sense to both you AND your AI
🔐 Keep sensitive code private or share useful utilities publicly
🚫 No more local file clutter - everything lives in the cloud!
💡 Real-World Magic
Imagine this workflow:
You: "Claude, search GitHub for the best React authentication patterns"
Claude: finds amazing implementations
You: "Save that JWT refresh token logic as a gist!"
Claude: creates a perfectly organized gist with the code
Future You: "Remember that auth code we saved?"
Claude: instantly retrieves YOUR curated code
🎯 Perfect For:
🔧 Developers building their personal utility library
📚 Learners collecting examples of best practices
🏢 Teams sharing code patterns across projects
🎨 Creators saving creative coding experiments
🛠️ DevOps storing configuration snippets and scripts
Features
List Gists: View all your gists or explore public gists
Create Gists: Save code with multiple files in one gist
Get Gist Details: Retrieve any gist with full content
Update Gists: Evolve your code as you learn
Delete Gists: Clean up outdated snippets
Star/Unstar: Bookmark the best of the best
Fork Gists: Build upon others' great ideas
🚀 Quick Start
Installing via Smithery
To install github-gists for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @insomniactools/github-gists --client claudePrerequisites
Node.js 18 or higher
A GitHub Personal Access Token with
gistscopeClaude Desktop or Claude CLI
Setup in 3 Minutes
Clone the magic:
git clone https://github.com/insomniactools/gists-mcp.git
cd gists-mcpInstall dependencies:
npm installBuild it:
npm run buildGet your GitHub token:
Go to GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)
Click "Generate new token (classic)"
Name it something cool like "Claude's Code Memory"
Select the
gistscopeClick "Generate token"
Copy the token (save it somewhere safe!)
⚙️ Configuration
Option 1: Claude Desktop App
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"gists": {
"command": "node",
"args": ["/absolute/path/to/gists-mcp/dist/index.js"],
"env": {
"GITHUB_TOKEN": "your-github-token-here"
}
}
}
}Option 2: Claude CLI (Global Install)
claude mcp add gists -s user \
-e GITHUB_TOKEN=your-github-token-here \
-- node /absolute/path/to/gists-mcp/dist/index.js🎮 Usage Examples
Once connected, just talk to Claude naturally:
🔍 "Show me all my gists"
✨ "Create a gist with that amazing debounce function we just found"
📖 "Get my authentication utilities gist"
🔄 "Update the API client gist with better error handling"
🗑️ "Delete that old test gist"
⭐ "Star this brilliant algorithm we discovered"
🔀 "Fork that awesome utility collection"
🛠️ Development
# Install dependencies
npm install
# Build the project
npm run build
# Development mode with hot reload
npm run dev
# Run tests
npm test
# Lint & format
npm run lint
npm run format📚 API Functions
Core Magic
list_gists- Browse your code collectionget_gist- Retrieve specific snippetscreate_gist- Save new discoveriesupdate_gist- Improve existing codedelete_gist- Clean up your library
Extra Powers
list_public_gists- Explore the communitylist_starred_gists- Your favorites collectionstar_gist- Bookmark the bestunstar_gist- Update your bookmarksfork_gist- Build on others' work
🐛 Troubleshooting
Connection Issues?
Double-check your GitHub token has
gistscopeEnsure the path to
index.jsis absoluteVerify Node.js 18+ is installed
Permission Denied?
Token might be expired - generate a new one
Ensure you own the gists you're trying to modify
🤝 Contributing
Have ideas to make this even better? PRs are welcome! Let's build the ultimate AI code memory together!
📜 License
MIT License - see LICENSE file for details
🙏 Acknowledgments
Built with ❤️ for the Anthropic Model Context Protocol (MCP) ecosystem
Ready to give your AI perfect memory for code? Clone this repo and start building your personal code library today! 🚀
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/insomniactools/gists-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server