Markdown in, hosted page out
Turn Markdown into a hosted web page with one HTTP request: REST (POST /api/publish) or MCP, fields, status codes, limits. No account needed to try.
You have Markdown — a report, a summary, a changelog — and you need a URL for it. Not a static-site generator, not a repo, not a build step: one HTTP request that returns a link you can paste.
MintPage is that request. Send Markdown (or HTML), get back a hosted page. Nothing to install, no account needed to try it, and the same endpoint works from a shell script, a cron job or an AI agent.
One request, one URL
curl -sS https://mintpage.ai/api/publish \
-H 'Content-Type: application/json' \
-d '{"title":"Weekly report","content":"# Weekly report\n\nShipped 14 of 16 items."}'
HTTP 201 with a JSON body: url, page_id, slug, title, format, theme, expires_at, the plan the page was published under, and warnings if anything in your content was stripped. The url is live immediately.
Publishing a file is the same call with the body built from disk:
curl -sS https://mintpage.ai/api/publish \
-H 'Content-Type: application/json' \
-d "$(jq -n --arg md "$(cat report.md)" '{title:"Weekly report", content:$md}')"
With a free API key, add -H 'Authorization: Bearer mp_…' and the page belongs to your account: it lives longer and you can edit it later.
Fields
| Field | What it does |
|---|---|
title |
Page title, used in the page heading and the link-preview card. |
content |
Markdown by default, or HTML with format: "html". |
format |
markdown (default) or html. |
theme |
paper (light), ink (dark) or terminal (dark, monospace). |
byline |
A line under the title, e.g. who or what produced the page. |
expires_in_hours |
Let the link die on its own — handy for a page that is only useful today. |
slug |
Your own path instead of a random one (Pro and minted pages). |
Anything else is refused with HTTP 400 and nothing is published; the error names the field and lists the accepted ones. That is deliberate: a field that silently did nothing would be worse than an error — in particular password, which MintPage does not have.
Status codes
201 published · 400 unknown or invalid field (nothing published) · 401 the key isn't a MintPage key, or was revoked — remove it to publish as a guest instead · 413 content larger than the plan allows · 415 the body wasn't sent as application/json · 429 over the page limit for now.
What the Markdown becomes
GitHub-flavored Markdown: tables, task lists, fenced code, strikethrough, autolinks. The result is a clean, readable page with a link-preview image generated for it, so the link looks right in a chat app or a social card.
If you send HTML instead, it is sanitized every time the page is served. Inline style attributes, <style> blocks, images and inline SVG survive. Scripts, forms, iframes, event handlers and external stylesheets do not — which is also why an unattended agent can publish here without anyone reviewing the output first. Whatever was removed comes back in warnings, so you know before you share the link.
No JavaScript runs on a page. If your document needs scripts to work, this is the wrong tool. If it needs to be read, it is probably the right one.
Updating the same URL
With a key, publish once and keep editing: update_page takes the page_id and replaces the content, keeping the URL. A nightly job can republish the same report link every morning instead of handing out a new one. Guest pages can't be updated — they simply expire.
From an agent instead of curl
The same server speaks the Model Context Protocol at https://mintpage.ai/mcp (Streamable HTTP, stateless). An agent calls tools/list, finds publish_page, and gets typed arguments without reading any documentation:
curl -X POST https://mintpage.ai/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"publish_page","arguments":{"title":"Hello","content":"# Hi"}}}'
That is why MintPage is an MCP server first and a REST endpoint second: the callers are usually agents. The transport underneath is still plain HTTP, which is why curl works with no SDK.
Limits and price
Guest, no account: 3 pages a day, 250 KB each, 24 hours. Free key: 10 live pages, 1 MB each, up to 7 days. Pro, $5/month or $39/year: 500 pages, 2 MB each, permanent, custom slugs, indexable, no badge. Guest and free pages are not indexed by search engines.
FAQ
Is there a REST API as well as MCP? Yes — POST /api/publish takes the same fields and returns the same result as the publish_page tool. It is JSON only.
Do I need an API key? No, to try: guest publishing works with no account and no OAuth. A key (emailed from /start) is what lets you edit, pause or delete a page afterwards.
Can I convert Markdown to HTML without hosting it? That isn't what this does — you get a hosted page at a URL. If you only want the HTML, use any Markdown library locally.
Can the page be private? No. Anyone with the link can open it, and there are no passwords. Don't publish anything that must stay private.
How long does a link last? As long as the plan says, or expires_in_hours if you set it. Pro pages are permanent; a single page can be made permanent on any plan with a mint.
Related
Publishing from a specific client: Claude Code, Claude.ai & Desktop, ChatGPT, Cursor, Codex CLI, Gemini CLI, VS Code, Windsurf, n8n. Also: one HTML file online, agent reports as links, a link that expires. Full tool reference in the docs; live examples on the showcase.
Try it in one line
No account needed. Pages last 24 hours as a guest, 7 days with a free key, forever on Pro.
claude mcp add --transport http mintpage https://mintpage.ai/mcp