# 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.

HTML version: https://tmphost.io/docs/plugins/cursor/ · All plugins: https://tmphost.io/docs/plugins.md

## Install

1. Install **tmphost** from the Cursor Marketplace, or import the repository https://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

- **MCP server `tmphost`:** HTTP server at `https://mcp.tmphost.io/mcp` with the tools `uploadFile`, `downloadFile`, `listFiles`, `getUrl`, `extendFolder`, `addPinToFolder` (https://tmphost.io/docs/mcp.md).
- **Skill `tmphost`:** when and how to use each tool: `textContent` for text files, multi-file sites, folder PINs, Markdown as a page and credits.
- **Rule `prefer-tmphost-mcp`:** routes "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-file`:** uploads one file into a new folder and replies with its link, when it expires and the credits spent.
- **Command `/share-site`:** uploads 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 https://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

```
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 (https://tmphost.io/docs/cli.md) in its terminal: it uploads from disk without passing the bytes through the conversation. See https://tmphost.io/docs/plugins.md

## 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**:

```sh
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.
