
ByteStash
Self-hosted code snippet manager with language filters, API keys, and an MCP endpoint for AI assistants.
ByteStash is a self-hosted web app for keeping code snippets in one place. Snippets are stored with a title and language, filtered by language, and searched by content. A Monaco editor handles editing and syntax highlighting, and snippets are organised with descriptions and custom metadata so a large collection stays navigable.
Everything lives in a SQLite database by default, or PostgreSQL if you prefer. The app runs as a single Docker image alongside a React front end and an Express API, with local accounts, optional OpenID Connect single sign-on, admin roles, API keys, and Swagger-documented REST endpoints. A built-in Model Context Protocol endpoint lets Claude, ChatGPT, Perplexity, and other MCP clients list, read, create, update, and delete snippets using the same API keys.
Where GitHub Gist or Pastebin keep your code on someone else's infrastructure, ByteStash runs on your own server with your own accounts and database, and adds organisation features those services lack, such as language filtering, metadata search, and bulk export. It suits developers who accumulate small reusable pieces and want them reachable from a browser, a script, or an AI assistant.








