For Cursor

Hosting for Cursor

Cursor hosting without leaving the editor: add anyshare to mcp.json once, and Cursor’s agent can publish a page, a doc or a whole build folder and give you the link.

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).

{
  "mcpServers": {
    "anyshare": {
      "command": "npx",
      "args": ["-y", "@anyshare/cli", "mcp"]
    }
  }
}

Cursor builds it, anyshare gives it a URL

Cursor’s agent produces things you want to show someone: a landing page, a component demo, a written spec, a build you need to try on your phone. Showing them usually means setting up a deploy. With anyshare connected, the last step of a prompt can simply be “and share it”.

Cursor reads MCP servers from ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one project. The project file can be committed, so the whole team gets the same tool. If the file already lists other servers, add the anyshare entry inside the existing mcpServers object.

Setup

Connect Cursor

The local server reads files from disk and needs Node.js 20+. The remote server needs nothing installed.

Pick one

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).

{
  "mcpServers": {
    "anyshare": {
      "command": "npx",
      "args": ["-y", "@anyshare/cli", "mcp"]
    }
  }
}

What exists for Cursor

Cursor connects through the standard anyshare MCP server, local or remote, added to its mcp.json. There’s no Cursor plugin or marketplace listing yet, and you don’t need one: the MCP entry is the whole setup.

Then just ask

  • “share this page with anyshare”
  • “run the build and share dist/ so I can test it on my phone”
  • “turn SPEC.md into a link for the team”
  • “update the anyshare link with these changes”

When it’s shared

What comes out of a Cursor session

Pages and builds run as real websites, single React components run live, and Markdown specs get a clean reading page.

  • Build folders with working links
  • Single-file components, live
  • Specs and READMEs as pages
  • A real HTTPS URL for phone testing

How it works

Set it up in three steps

  1. Step 1:

    Add the server

    Paste the entry into ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project only).

  2. Step 2:

    Check it’s on

    Open Cursor Settings, find the MCP section and make sure anyshare is listed and enabled.

  3. Step 3:

    Prompt for a link

    Ask the agent “build it and share dist/ with anyshare”. It replies with a URL like https://sunny-otter-4821.anyshare.site.

The details

Why it works well in Cursor

  • One JSON entry

    No extension to install and no account to create. Cursor starts the server with npx when it needs it.

  • Disk to URL in one call

    The agent passes a folder path; the local server zips it in memory, leaves out node_modules, .git and secret files, and uploads it.

  • Test on a real device

    The result is a public HTTPS address, so you can open the build on your phone or send it to a client without a tunnel or a staging server.

  • Static by design

    anyshare never runs your build or server code. Ask the agent to build first; single-page apps are detected so client routes keep working.

  • Update in place

    The token is stored in ~/.config/anyshare/sites.json, so “update the link” keeps the address you already shared.

  • Free limits

    50 MB and 1,000 files per upload. Links last 1 hour without an account, 30 days once kept in a free one.

FAQ

Questions, answered.

Is there a Cursor plugin for anyshare?
Not yet. Cursor works through the standard MCP server, which gives its agent the same publish, update, delete and list tools a plugin would.
What does the Cursor agent reply with?
A link like https://sunny-otter-4821.anyshare.site, with the claim link with a note that the link expires in 1 hour unless you keep it. With the local server it can update that same link later in the session or in a new one.
Should I use the global or the project mcp.json?
Use ~/.cursor/mcp.json if you want anyshare everywhere. Use .cursor/mcp.json and commit it if you want everyone on a project to have it.
Why does my shared React app show a blank page?
The source was shared instead of the build. Ask the agent to run the build and share the output folder (dist/, build/ or out/). If refreshing a deep link shows a 404, publish with --spa, though single-page apps are usually detected on their own.
Can the agent share without MCP?
Yes. It can run npx -y @anyshare/cli ./dist in the terminal, which prints only the URL. MCP is simply more reliable, because it gives the agent a named tool instead of a command to remember.

Give your agent a URL for any file.

One step to connect, no account or API key. It hands you back a link anyone can open, and a claim link to keep it.