Learn PageFire's MCP tools, grab your connection config, and call them live in the browser with your own API Key — the same path your AI client takes.
MCP (Model Context Protocol) is the standard protocol between AI clients and external tools. Once PageFire is connected to Claude or Cursor, you describe what you want in plain language and the AI calls PageFire's tools to publish HTML, Markdown, or a full ZIP as a live public HTTPS page — done in seconds, link stays stable, zero deploy pipeline.
Copy .mcp.json from the Connect tab, fill in your Bearer Token, and add it to your AI client.
"Publish this report as a webpage" — AI picks the right tool and does it.
Instant HTTPS subdomain, share it immediately. Republish with the same name to update in place.
html title? did? access? password? ttl_days? pin? spa?markdown theme? title? did? access? pin?files[] title? theme? did? pin?files[] did? spa? pin?zip_base64 did? spa? pin?pdf|pptx title? theme? did? pin?markdown mode="slide" theme? title? pin?did access password?include_expired?diddiddidspace_id.mcp.json in your project root and add it to .gitignore:
{
"mcpServers": {
"pagefire": {
"type": "http",
"url": "https://mcp.pagefire.hkting.com/mcp",
"headers": { "Authorization": "Bearer <your-token>" }
}
}
}Failed to connect but a browser / Node can reach the domain, your client runtime's TLS fingerprint is likely being blocked. Bridge the same endpoint over stdio using mcp-remote on your local Node:{
"mcpServers": {
"pagefire": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.pagefire.hkting.com/mcp",
"--header", "Authorization:${AUTH_HEADER}", "--transport", "http-only"],
"env": { "AUTH_HEADER": "Bearer <your-token>" }
}
}
}env.AUTH_HEADER and write the header as Authorization:${AUTH_HEADER} (no space). Writing "Authorization: Bearer ..." directly splits on the space when args are joined, causing handshake success but UNAUTHORIZED on tool calls.{
"mcpServers": {
"pagefire": {
"command": "npx",
"args": ["-y", "pagefire-mcp@latest"],
"env": { "PAGEFIRE_TOKEN": "pf_<your-token>" }
}
}
}https://mcp.pagefire.hkting.com/mcpStreamable HTTP · MCP 2025-03-26Authorization: Bearer pf_xxxcodex.yaml under mcp_servers: type: http, url, headers.Authorization.npm install -g pagefire-mcp
npx pagefire-mcp@latest
# macOS / Linux export PAGEFIRE_TOKEN=pf_your_token # Windows set PAGEFIRE_TOKEN=pf_your_token
pagefire deploy ./dist # Bundle a directory and publish as a full site (equivalent to deploy_zip) pagefire deploy-docs ./docs # Multiple .md files → docs site with sidebar nav pagefire deploy-markdown ./README.md # Single Markdown file → rendered web page pagefire deploy-page ./index.html # Publish a single HTML page
pagefire --help for all commands and options.