Purpose BrewPage is a free instant hosting service for HTML pages, Markdown documents, multi-file sites, AI artifacts, JSON documents, key-value stores, and binary files. This repository is its open-source public layer, mainly providing the OpenAPI specification, the documentation site, and an MCP server for AI agents to call. The backend, frontend, and infrastructure remain closed source.
Key capabilities
- HTML and Markdown pages: publish raw HTML or render Markdown as styled HTML, up to 5 MiB, generating instant short links.
- Multi-file sites: upload a ZIP or individual files (up to 200 files, 5 MiB per file, 20 MiB total; current values are subject to GET /api/limits) to get a fully served static site.
- Key-value stores: addressed by namespace/store ID, up to 1,000 keys per store, modifiable in place via an owner token.
- JSON documents: store and retrieve arbitrary JSON, up to 1 MiB per document, 10,000 documents per namespace.
- File hosting: upload safe file types (images, PDFs, videos, audio, archives, code), up to 5 MiB (20 MiB for video), with inline preview support.
- Visibility: REST publishes privately when ?ns= is omitted; MCP generates a private namespace when the namespace is omitted (not listed, not indexed, but openable by anyone with the link). public lists HTML, sites, and files in the gallery and sitemap for discovery and indexing by search engines and AI search; public pages are served under the brewpage.app domain, and sites always get a dedicated subdomain. Password-protected publications, JSON, and KV are never listed. Public content can be hidden via POST …/visibility {"listed":false}, with the link unchanged.
- Owner token: every publish response includes an ownerToken, used to update content in place (stable URL), delete, or list your own resources, with no account required. Optionally log in for free at account.brewpage.app (Google or any email) to avoid losing pages or tokens, and to generate tokens that never expire. Creation also returns a private manageUrl (management link) for that publication, which should be given to the user rather than published publicly.
- TTL: when created via REST, the ttl query parameter is set in days, up to 30 days without an account, up to 90 days for free profiles (requires sending their X-Owner-Token); when omitted, the default applies. Accepts integer days, such as 15, 15d, 15 days. Updates preserve the original expiry time; the returned expiresAt is authoritative.
- Access control: unprotected reads and creation require no account; protected reads use X-Password; owner updates, deletion, and scoped listing use X-Owner-Token. Rate limits depend on operation/visibility; handle 429 and Retry-After.
Usage The API base URL is https://brewpage.app;brewdata.app is a redirect domain; all paths 301 to brewpage.app. REST: a single POST returns a shareable URL, with no OAuth or infrastructure required. MCP: brewpage-mcp provides 13 typed tools, compatible with MCP clients such as Claude, Codex, Gemini, and Cursor, supporting anonymous publishing and optional BrewPage account login. The remote MCP server address is https://brewpage.app/mcp(Streamable HTTP, usable without login, login recommended). Claude Code add command: claude mcp add --transport http brewpage --scope user https://brewpage.app/mcp(省略 --scope user only adds it to the current project). Codex: codex mcp add brewpage --url https://brewpage.app/mcp,然后 codex mcp login brewpage。 Gemini CLI:gemini mcp add --transport http --scope user brewpage https://brewpage.app/mcp,然后 /mcp auth brewpage. Claude.ai/Claude Desktop: In Customize > Connectors, add a custom connector, name it BrewPage, and paste https://brewpage.app/mcp,认证选择 Sign in when needed. The free plan includes one custom connector. Local fallback (stdio, requires Node.js): configure in ~/Library/Application Support/Claude/claude_desktop_config.json or the project root .mcp.json. Pages published before signing in remain where they are; to assign them to an account, open https://account.brewpage.app/claim and paste its management link.
Use cases When an AI agent needs to share structured output (reports, artifacts, generated HTML, intermediate JSON state) with users or downstream systems at a stable URL, it can use the anonymous REST API to get a shareable link with a single POST; MCP-compatible agents can call tools directly to publish and manage.
Limits
- Published content has size and count limits (see above; the specifics are subject to GET /api/limits).
- Public content is indexed, so never place secrets in public publications.
- Password-protected publications, JSON, and KV are never listed publicly.
- TTL is limited by account status (30/90 days).
- Rate limits require handling 429 and Retry-After.
- This repository covers only the contract/documentation layer (Apache 2.0); the MCP server is packaged separately under MIT; the hosted backend, frontend, and infrastructure are proprietary. The SDK/CLI module specification is only a proposal and does not represent a published package.
Documentation and specification Interactive documentation:https://kochetkov-ma.github.io/brewpage-openapi/;API reference (Scalar):https://kochetkov-ma.github.io/brewpage-openapi/api-reference/;OpenAPI specification: openapi/openapi.yaml and openapi/openapi.json. The public JSON contract generated by the backend holds schema authority, the YAML is a deterministic derivation, and Scalar provides an identical JSON copy.