A code snippet storage solution written in React & Node.js
open sourceGPL-3.0-onlyself-hostablefreeMCP
ByteStash is a self-hosted web app for storing, organising and sharing code snippets, with syntax highlighting, filtering by language and content, and public share links. Snippets live in SQLite or optionally PostgreSQL, with local accounts, optional OpenID Connect single sign-on and an admin panel, or accounts turned off for a single user. A built-in MCP endpoint lets AI assistants such as Claude search and manage your snippets with your existing API key. It runs as one Docker container, and is on the Unraid app store and PikaPods.
Problems it solves
- my useful code snippets are scattered across gists, notes and old projects
- a self-hosted place to save and search code snippets by language
- share a snippet with a teammate through a link from my own server
- let Claude search my saved code snippets through MCP
- sign in to my snippet manager with our company's OpenID Connect provider
- a private self-hosted alternative to GitHub Gists
Features
- create, edit and filter snippets by language and content
- syntax highlighting
- public sharing links
- SQLite or PostgreSQL storage
- local accounts, optional OIDC single sign-on, or no accounts
- admin panel and admin CLI script
- API keys
- built-in MCP endpoint
- Docker image and Helm/Kubernetes support
- on the Unraid app store and PikaPods
Capabilities
| Has an API | plan not known |
|---|---|
| Has an MCP server | plan not known |
| Has single sign-on | plan not known |
Alternatives
The same job
These do what ByteStash does.
- Opengist Self-hosted pastebin powered by Git, open-source alternative to GitHub Gist
- PrivateBin A minimalist, open source online pastebin where the server has zero knowledge of stored data
