Integration · no API key

The anyshare MCP server

MCP server file hosting for any agent: a remote Streamable HTTP server that needs no install, and a local stdio server that reads files straight from disk. Neither needs an account to publish.

Streamable HTTP, no auth. Paste into any MCP client that supports remote servers.

https://anyshare.ai/mcp

Two servers, one result

The local server runs with npx -y @anyshare/cli mcp over stdio and needs Node.js 20+. It’s the best fit for coding agents such as Claude Code, Codex, Cursor and Windsurf, because it can read the user’s files: the agent passes a path and the bytes go straight from disk to anyshare. Update tokens are kept for you in ~/.config/anyshare/sites.json.

The remote server is stateless Streamable HTTP and needs no auth, at the URL above. It suits claude.ai, ChatGPT, Claude Desktop and any client without a shell. It publishes text the model wrote directly, and for files already on disk it returns a ready-to-run upload command, so a 20 MB video never has to pass through the conversation. Tokens are returned to the agent.

Both publish to the same place and return the same kind of link, so you can mix them: remote in a chat app, local in your editor.

Without an account, each link expires after 1 hour unless the user keeps it: every publish result has a claim link the agent shows next to the URL, where they sign in or create a free account and the link lasts 30 days. Run npx -y @anyshare/cli login once and the local server publishes straight into the account; the remote server does the same when you add your API key as an Authorization: Bearer header.

Reference

Setup for popular clients

Both servers work in any client that speaks MCP. These are the exact entries.

Claude Code

Local server first, remote second. Add one of them. To publish into your account, append --header "Authorization: Bearer as_key_…" to the remote one.

claude mcp add --scope user anyshare -- npx -y @anyshare/cli mcp
claude mcp add --transport http --scope user anyshare https://anyshare.ai/mcp

Codex

Local server first, remote second. Or edit ~/.codex/config.toml.

codex mcp add anyshare -- npx -y @anyshare/cli mcp
codex mcp add anyshare --url https://anyshare.ai/mcp

Cursor

In ~/.cursor/mcp.json or .cursor/mcp.json. The same entry works in most stdio clients.

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

VS Code (Copilot)

Workspace-root .mcp.json or ~/.copilot/mcp-config.json, in the portable format.

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

Gemini CLI

Remote server. For the local one, put the stdio entry in ~/.gemini/settings.json.

gemini mcp add --transport http anyshare https://anyshare.ai/mcp

Any remote client

claude.ai and ChatGPT custom connectors, Claude Desktop and others: Streamable HTTP, no auth.

https://anyshare.ai/mcp

When it’s shared

What agents publish through it

The filename’s extension decides the viewer: .html runs as a site, .md gets a reading page, .mmd renders a diagram, and .tsx runs as a live component.

  • HTML served as a live site
  • Markdown as a reading page
  • Mermaid rendered as a diagram
  • Folders as websites or file lists

How it works

Connect any MCP client

  1. Step 1:

    Pick a server

    Local if the agent has a shell and Node.js 20+ and needs to share files from disk. Remote if it runs in a chat app or anywhere without a shell.

  2. Step 2:

    Add it to your client

    For stdio, the command is npx with the arguments -y @anyshare/cli mcp. For remote, use the URL with the Streamable HTTP transport. No OAuth; an Authorization header with your API key is optional.

  3. Step 3:

    Ask for a link

    The agent calls publish (local) or publish_content (remote) and gets back the URL, the slug, the claim link if there’s no account and, from the remote server, the update token.

The details

Tools at a glance

  • Local: publish, update, delete, list, claim

    publish takes path (a file or folder), paths, or content plus filename, and optional slug, title and spa. list shows links published from this machine, newest first, with their expiry. claim keeps a link in the signed-in account, or returns its claim link.

  • Remote: publish_content

    Text the model wrote (HTML, Markdown, .jsx/.tsx, SVG, Mermaid, CSV, JSON or code) as content with a filename. Small binaries go as base64, up to 2 MB decoded, and files adds extra files for a multi-file site.

  • Remote: get_upload_command

    For files already on disk. Takes path and returns a CLI command and a curl command that upload from the user’s shell, optionally replacing an existing link with update_slug and token.

  • Remote: update_content, delete_site, get_site

    Replace a link’s content at the same URL, delete it, or read its public details: URL, title, type, size and expiry.

  • No API key needed

    Publishing needs nothing. Updating and deleting need the link’s token, which only the publisher has, or the owning account’s API key. Add a key only to keep links in your account from the start.

  • Secrets stay on disk

    The local server skips .env files, keys, .npmrc and .dev.vars in folders and refuses them by name. Free limits apply either way: 50 MB and 1,000 files per upload, and links that last 1 hour unless kept in a free account (then 30 days).

FAQ

Questions, answered.

Local or remote: which should my agent use?
If the agent runs on your machine and has a shell, use the local server: it shares files and folders from disk in one call and keeps tokens for you. If it runs in a chat app or a hosted environment, use the remote server.
Why doesn’t the remote server take file uploads directly?
It does for text and small files: base64 up to 2 MB decoded. For anything bigger on disk, get_upload_command returns a command to run, because pushing large files through a model’s output is slow, costly and error-prone.
What does a publish call return to the agent?
The public URL, the slug, the expiry, the claim link when there’s no account and, from the remote server, the update token. Agents should show the URL and the claim link to the user with the deadline (1 hour after publishing), and keep the token private.
Does the MCP server need OAuth or an API key?
No. Publishing needs no sign-in step at all, and each link gets its own secret token for updates and deletion. To keep links in your account without the claim step, add your API key (from npx -y @anyshare/cli login) as an Authorization: Bearer header on the remote server, or sign in once with the CLI for the local one.
Which MCP clients does it work with?
Any client that supports stdio or Streamable HTTP servers: Claude Code, Codex, Cursor, VS Code with Copilot, Windsurf, Gemini CLI, Claude Desktop, and claude.ai or ChatGPT where custom connectors are available.

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.