tmphost.io ephemeral static file hosting for ai agents

Cursor plugin

The tmphost plugin connects Cursor to the tmphost.io MCP server and adds a tmphost skill, a rule and two commands, so Cursor's agent can host files at temporary public URLs when you ask it to share something.

Install

  1. Install tmphost from the Cursor Marketplace, or import the repository github.com/tmphost/tmphost as a team marketplace: its .cursor-plugin/marketplace.json lists one plugin, tmphost, from plugin/cursor.
  2. Open Cursor Settings → Tools & MCP and enable the tmphost server.
  3. Select Connect, sign in with your tmphost.io account and approve access.

What it adds

PartWhat it does
MCP server tmphostHTTP server at https://mcp.tmphost.io/mcp with the tools uploadFile, downloadFile, listFiles, getUrl, extendFolder, addPinToFolder (MCP tools).
Skill tmphostWhen and how to use each tool: textContent for text files, multi-file sites, folder PINs, Markdown as a page and credits.
Rule prefer-tmphost-mcpRoutes "share this" requests (a file, a report, an image or a static site) to the right tool, and keeps secrets, .env files and keys out of public links.
Command /share-fileUploads one file into a new folder and replies with its link, when it expires and the credits spent.
Command /share-siteUploads a static site (a directory with index.html at its root, such as dist) into one folder and replies with the folder URL.

Sign in

The server answers the first request with 401; Cursor discovers the OAuth endpoints of app.tmphost.io, registers itself (Dynamic Client Registration) and opens the browser. Sign in or sign up, and Cursor keeps the token. There is no API key to paste: never paste a token into the chat.

Try it

Cursor
> Host this HTML report with tmphost and give me a link that works for an hour.
> /share-site dist

The second uploads dist/index.html into a new folder, the other files into the same folder by its folderId, and answers with the folder URL, such as https://k7q2m9xa.file.tmphost.io/. The id and URL here are examples. Anyone with a link can open the files until the folder expires.

For large or binary files, Cursor's agent does better with the tmphost CLI in its terminal: it uploads from disk without passing the bytes through the conversation. See plugin or CLI?

Load from a checkout

To try the plugin from a clone of the repository, copy it into Cursor's local plugin folder (Cursor skips symlinks that point outside it), then run Developer: Reload Window:

Shell
$ mkdir -p ~/.cursor/plugins/local
$ rsync -a --delete plugin/cursor/ ~/.cursor/plugins/local/tmphost/

Self-hosted tmphost

Instead of the plugin, add your own server's MCP URL (such as https://mcp.example.com/mcp) to Cursor as an MCP server named tmphost.

License

The plugin is licensed under the Apache License 2.0. The tmphost server it connects to is AGPL-3.0-only.