trackmcp
Back to directory
kochetkov-ma

brewpage-openapi

View on GitHub

Open API Specification for https://brewpage.app - Free HTML, Markdown, AI Artifacts & File Instant Hosting

2 stars JavaScriptOthers Updated Jul 12, 2026
claude-codemcp-serveropenapirest-apiai-agentanthropicapi-documentationclaude-desktopmodel-context-protocolnpm-packagetypescriptbrewpagemcpai-toolsapi-hostingclaude-skilldeveloper-toolsfree-apiopenclawopencode

Documentation

BrewPage API -- Open Source Public Layer

npm
GitHub Stars
OpenAPI
License
MCP Server

> This repository is the open-source public layer of BrewPage --

> a proprietary HTML/KV/JSON/file hosting platform.

> The backend, frontend, and infrastructure remain closed-source.

Docs: https://kochetkov-ma.github.io/brewpage-openapi/ | API Reference: https://kochetkov-ma.github.io/brewpage-openapi/api-reference/

What is BrewPage

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.

No signup or API key required. Every published resource gets a short HTTPS URL

(`brewpage.app/{namespace}/{id}`) within seconds.

Key characteristics:

  • HTML and Markdown pages -- publish raw HTML or Markdown rendered to styled HTML, up to 5 MB, with instant short URLs.
  • Multi-file sites -- upload a ZIP archive or individual files (up to 20 MB / 100 files) and get a fully served static site.
  • Key-value store -- namespace-scoped KV pairs, up to 1,000 keys per namespace, mutable in place via the owner token.
  • JSON documents -- store and retrieve arbitrary JSON, up to 1 MB per document, 10,000 documents per collection.
  • File hosting -- upload any safe file type (images, PDFs, video, audio, archives, code), up to 5 MB (video 20 MB), with inline preview.
  • Public namespace -- omitting `?ns=` publishes to the shared `public` namespace, which is listed on the homepage gallery and indexed by search engines. Pass a custom namespace or `X-Password` header to keep content private.
  • Owner tokens -- every publish response includes an `ownerToken`. Use it to update content in place (stable URL), delete it, or list your own resources. No accounts, no sessions.
  • TTL -- content expires automatically. Default 15 days, maximum 30 days, configurable per request via `ttl_days`.
  • No auth required for reads. Writes are open (rate-limited to 60 uploads/hr per IP). All requests require a `User-Agent` header.

Both `brewpage.app` and `brewdata.app` serve the same API.

Why this matters for LLMs and agents

AI agents frequently need to share structured outputs -- reports, artifacts, generated HTML, intermediate JSON state -- with users or downstream systems via a stable URL. BrewPage provides that as a zero-setup REST API: one `POST` call, one URL back. No OAuth, no S3 bucket configuration, no infrastructure. The MCP server (`brewpage-mcp`) wraps the API into six typed tools that any MCP-compatible agent (Claude, Codex, Gemini, Cursor) can call directly.

Quick Start

Publish an HTML page and get a shareable link:

bash
curl -X POST https://brewpage.app/api/html \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyAgent/1.0" \
  -d '{"content": "Hello, world!", "ttlDays": 15}'

Response:

json
{
  "id": "aBcDeFgHiJ",
  "namespace": "public",
  "link": "https://brewpage.app/public/aBcDeFgHiJ",
  "ownerLink": "https://brewpage.app/api/html/public/aBcDeFgHiJ",
  "ownerToken": "your-secret-token",
  "expiresAt": "2026-06-04T02:00:00Z",
  "sizeBytes": 22
}

Open `link` in any browser -- no further steps required.

Use Cases for LLMs and Agents

ScenarioAPI call
An AI agent generates a shareable HTML report and needs a stable URL to return to the user`POST /api/html` -- returns link immediately
A GPT pipeline needs to persist JSON state between conversation turns without external storage`POST /api/json?ns=myproject` then `GET /api/json/myproject/{id}`
A code-generation tool produces a downloadable file (PDF, archive, script) and needs to host it`POST /api/files` -- file served with correct MIME type and inline preview
An agent publishes an artifact and later refines it without invalidating the shared URL`PUT /api/html/{ns}/{id}` with `X-Owner-Token` -- content replaced, URL unchanged
A multi-step pipeline deploys a complete static site (HTML + CSS + JS) from a ZIP`POST /api/sites` with `archive=@site.zip` -- all files served with relative links intact

API Features

ResourceDescriptionLimits
HTML pagesRaw HTML or Markdown with instant short URLs5 MB, TTL 1--30d
Key-value storeNamed key-value pairs grouped in namespaces1,000 keys/namespace
JSON documentsStore and retrieve arbitrary JSON with collection management1 MB, 10,000 docs/collection
FilesUpload files with automatic MIME detection and inline preview5 MB (video 20 MB), 1,000 files/namespace
SitesMulti-file HTML sites via ZIP or individual files20 MB total, 100 files, 5 MB/file, TTL 1--30d

Every resource gets a short URL (`brewpage.app/{ns}/{id}`), optional password protection, configurable TTL, and tagging. Public content appears in a browsable gallery with full-text search.

API Examples

Publish Markdown:

bash
curl -X POST "https://brewpage.app/api/html?format=markdown" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyAgent/1.0" \
  -d '{"content": "# My Document\n\nHello **world**"}'

Store a JSON document:

bash
curl -X POST https://brewpage.app/api/json \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyAgent/1.0" \
  -d '{"name": "config", "version": 1}'

Upload a site (ZIP archive):

bash
curl -X POST "https://brewpage.app/api/sites" \
  -H "User-Agent: MyAgent/1.0" \
  -F "archive=@site.zip;type=application/zip"

Update content in place (stable URL):

bash
curl -X PUT "https://brewpage.app/api/html/public/aBcDeFgHiJ" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyAgent/1.0" \
  -H "X-Owner-Token: your-secret-token" \
  -d '{"content": "Updated content"}'

Get platform stats:

bash
curl https://brewpage.app/api/stats

API Reference

Endpoints

TagDescription
HTMLPublish, retrieve, update, delete HTML/Markdown pages
KVKey-value store CRUD (get, set, list, delete keys)
JSONJSON document CRUD with collection listing
FilesFile upload, download, list, delete
SitesMulti-file site upload (ZIP or files), info, serve, delete
GalleryBrowse public content with search and pagination
StatsPlatform-wide usage statistics
Short LinksURL shortener for published content
SEOSitemap and robots.txt endpoints
ReportsAbuse reports for published content
NamespaceCollision-free namespace suggestions

MCP Server

The `brewpage-mcp` package provides a Model Context Protocol server with 6 tools for AI-assisted content publishing. See `mcp-server/README.md` for full documentation.

ToolDescription
`publish_html`Publish HTML or Markdown content with optional password, TTL, filename, and top toolbar
`publish_file`Upload a file from a URL
`publish_site`Publish a single-page or multi-file HTML site
`delete_resource`Delete any resource (HTML, KV, JSON, file) by owner token
`get_page`Fetch a published HTML page and its content
`get_stats`Get platform-wide usage statistics

Claude Desktop

Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:

json
{
  "mcpServers": {
    "brewpage": {
      "command": "npx",
      "args": ["-y", "brewpage-mcp"]
    }
  }
}

Claude Code

Add to `~/.claude/settings.json`:

json
{
  "mcpServers": {
    "brewpage": {
      "command": "npx",
      "args": ["-y", "brewpage-mcp"]
    }
  }
}

Resources

ResourceURL
Live platformhttps://brewpage.app
LLM context filehttps://brewpage.app/llms.txt
Full LLM referencehttps://brewpage.app/llms-full.txt
OpenAPI spec (YAML)`openapi/openapi.yaml`
MCP server`mcp-server/`
npm packagehttps://www.npmjs.com/package/brewpage-mcp
Interactive API docshttps://kochetkov-ma.github.io/brewpage-openapi/
Claude skillhttps://github.com/kochetkov-ma/claude-brewcode/tree/main/skills/brewpage-publish
BrewCode plugin suitehttps://github.com/kochetkov-ma/claude-brewcode
Wikihttps://github.com/kochetkov-ma/brewpage-openapi/wiki
Releaseshttps://github.com/kochetkov-ma/brewpage-openapi/releases

BrewPage is described using schema.org/SoftwareApplication structured data on the platform homepage.

What's Open Here

ComponentDescription
OpenAPI 3.1 specComplete API contract for all public endpoints (YAML + JSON)
Interactive docsAstro + Scalar documentation site (GitHub Pages)
MCP server`brewpage-mcp` -- Claude Desktop/Code integration (6 tools)
WikiCode snippets, cheatsheet, tips & tricks
Release notesChangelog for API and public tooling

What's Proprietary

ComponentDescription
BackendSpring Boot + Kotlin REST API
FrontendHTML/CSS/JS + Caddy reverse proxy
InfrastructureVPS deployment, CI/CD pipelines
E2E test suitePlaywright + Testcontainers

Project Structure

code
brewpage-openapi/
  openapi/
    openapi.json          # OpenAPI 3.1 spec (JSON)
    openapi.yaml          # OpenAPI 3.1 spec (YAML)
  docs-site/              # Astro documentation site
    src/
      pages/              # Documentation pages
      components/         # Scalar API reference
  mcp-server/             # MCP server (brewpage-mcp)
    src/
      index.ts            # Server entry point
  .github/
    workflows/            # CI/CD (docs deploy, releases)
  README.md
  RELEASE-NOTES.md
  LICENSE

License

Apache 2.0

Frequently asked questions

What is brewpage-openapi?

brewpage-openapi is Open API Specification for https://brewpage.app - Free HTML, Markdown, AI Artifacts & File Instant Hosting

How do I install brewpage-openapi?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is brewpage-openapi open source?

Yes — it is hosted on GitHub at https://github.com/kochetkov-ma/brewpage-openapi and has 2 stars.

Related MCP tools

AVIDS2memorix

Open-source cross-agent memory layer for coding agents via MCP. Compatible with Claude Code, Codex, Cursor, Windsurf, Gemini CLI, Antigravity, OpenClaw, Hermes Agent, Oh-my-Pi, Pi, Copilot, Kiro, OpenCode, and Trae.

721 TypeScript
ai-codingclaude-codecopilot+17
KnockOutEZwigolo

The go-to web for your AI coding agent — local-first search, fetch, crawl & research over MCP. No API keys, no cloud, $0/query. Public beta.

4,906 TypeScript
mcpagentai+17
IvanMurzakUnity-MCP

AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for free.

4,137 C#
aiai-integrationgame-development+16
jgravellejcodemunch-mcp

Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.

2,651 Python
claudeclaude-codeai-coding+17
riponcmprojectmem

Open-source coding agent memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.

796 Python
ai-agentsai-memoryai-tools+17
atlassianatlassian-mcp-server

Official remote MCP server for Atlassian. Securely connect Jira, Confluence, Jira Service Management, Bitbucket, and Compass to Claude, ChatGPT, Cursor, VS Code, and other AI tools using OAuth 2.1 or API tokens.

1,015 JavaScript
aiai-agentsatlassian+17

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP