MCP Server
The brewpage-mcp server lets you publish and manage BrewPage content directly from AI assistants like Claude Desktop and Claude Code.
Installation
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"brewpage": {
"command": "npx",
"args": ["-y", "brewpage-mcp"]
}
}
}
Claude Code
Add to your settings.json:
{
"mcpServers": {
"brewpage": {
"command": "npx",
"args": ["-y", "brewpage-mcp"]
}
}
}
One-liner
npx brewpage-mcp
Available Tools
| Tool | Description |
|---|---|
publish_html | Publish HTML or Markdown content. Returns URL + owner token |
publish_file | Upload a file via URL or base64 content |
publish_site | Publish a multi-file HTML site from HTML content (entryContent, optional namespace, password, ttlDays) |
delete_resource | Delete a resource by namespace/id with owner token |
get_page | Fetch published page content by namespace/id |
get_stats | Get platform-wide usage statistics |
Usage Examples
Publish a Page
Ask Claude: “Publish this HTML to BrewPage”
The publish_html tool accepts:
content— HTML or Markdown stringnamespace— Optional namespace (default: random)format—HTMLorMARKDOWNpassword— Optional password protectionttlDays— Time to live in days (30-365)
Delete a Resource
Ask Claude: “Delete my BrewPage at demo/aBcDeFgHiJ using token tok_abc123”
The delete_resource tool requires:
namespace— Resource namespaceid— Resource IDownerToken— Owner token from publish responsetype— Resource type:html,kv,json, orfile
Owner Token Reminder
Every publish response includes your owner token. This is the only way to update or delete your content later. Save it somewhere safe — it cannot be recovered if lost.
Source Code
See the full implementation: mcp-server/