htmldrop
AGENTS.md13 starsChanged 5 months agoMITView on GitHub
This is the htmldrop MCP server (htmldrop.link). It lets an agent publish an HTML artifact and receive a public URL. The MCP tool name is publish_html. The server speaks MCP over Streamable HTTP (stateless) — POST each JSON-RPC message to /mcp. No session handshake or sessionId is required. The response is returned as application/json, or as a text/event-stream message event if you send Accept: text/event-stream. Then send tools/list and tools/call the same way. Most MCP clients handle this automatically —…
- Sends data out
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 1 is common, 1 is distinctive, and 1 is very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 107
If you cannot use MCP, make a regular HTTP request:
- Very specific: line 129
All artifacts include X-Robots-Tag: noindex, nofollow, noarchive.
- Common: line 133
Ask for a fresh URL if the page returns 404 (expired) or 401 (password protected).
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
htmldrop — MCP server for publishing HTML
This is the htmldrop MCP server (htmldrop.link). It lets an agent publish an HTML artifact and receive a public URL. The MCP tool name is publish_html.
Service endpoints
| Endpoint | URL |
| Landing page | https://htmldrop.link/ |
| MCP (Streamable HTTP) | POST https://htmldrop.link/mcp |
| REST API | POST https://htmldrop.link/publish |
| This file | https://htmldrop.link/agents.md |
Connect as an MCP client
The server speaks MCP over Streamable HTTP (stateless) — POST each JSON-RPC
message to /mcp. No session handshake or sessionId is required. The response
is returned as application/json, or as a text/event-stream message event
if you send Accept: text/event-stream.
POST https://htmldrop.link/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"agent","version":"1.0"}}}Then send tools/list and tools/call the same way. Most MCP clients handle
this automatically — see the README for one-line setup (Claude Code, Cursor, …).
Available tool
publish_html
Publish HTML or Markdown and get a public link. Markdown is rendered into a clean reader page server-side.
Schema
{
"name": "publish_html",
"description": "Publish an HTML or markdown artifact to a public URL",
"inputSchema": {
"type": "object",
"properties": {
"html": { "type": "string", "description": "HTML content to publish" },
"markdown": { "type": "string", "description": "Markdown content to publish; rendered to a reader page" },
"title": { "type": "string", "description": "Title used for social cards and metadata" },
"ttl_days": { "type": "number", "description": "Days until the artifact expires" },
"password": { "type": "string", "description": "Optional password to protect the artifact" },
"owner_key": { "type": "string", "description": "Optional owner key for higher rate limits and longer TTL" }
},
"required": ["html"]
}
}Example call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "publish_html",
"arguments": {
"html": "<h1>Hello world</h1>",
"title": "Demo",
"ttl_days": 7
}
}
}Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "{\"url\":\"https://<subdomain>.htmldrop.link\",\"id\":\"...\",\"expires_at\":\"2026-07-02T...\"}"
}
]
}
}The response text is a JSON string. Parse it once to access url, id, and expires_at.
Other formats (REST)
POST /publish/raw accepts raw bodies of text/html, text/markdown,
text/plain, application/json, text/csv, application/pdf, and
image/* (png, jpeg, gif, webp, svg). Text formats render into a reader
page; PDF and images are stored and served verbatim. Pass a title via the
x-htmldrop-title header or ?title= query parameter.
REST fallback
If you cannot use MCP, make a regular HTTP request:
curl -X POST https://htmldrop.link/publish \
-H "Content-Type: application/json" \
-d '{"html":"<h1>Hello</h1>","title":"Demo","ttl_days":7}'Response:
{
"url": "https://<subdomain>.htmldrop.link",
"id": "...",
"subdomain": "...",
"expires_at": "2026-07-02T..."
}Important notes
- The returned URL is volatile. Content expires automatically based on
ttl_days. - All artifacts include
X-Robots-Tag: noindex, nofollow, noarchive. - New HTML artifacts run in a browser sandbox. Inline scripts work, but external network requests, external assets, forms, popups, and top-level navigation are blocked.
- Pass an
owner_keyfor higher rate limits and longer default TTL. - Ask for a fresh URL if the page returns 404 (expired) or 401 (password protected).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

