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.
Remote MCP
More ways to connectStreamable HTTP, no auth. Paste into any MCP client that supports remote servers.
https://anyshare.ai/mcp- No account to publish
- No API key
- Keep links 30 days with a free account
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/mcpCodex
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/mcpCursor
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/mcpAny remote client
claude.ai and ChatGPT custom connectors, Claude Desktop and others: Streamable HTTP, no auth.
https://anyshare.ai/mcpWhen 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
- 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.
- Step 2:
Add it to your client
For stdio, the command is
npxwith the arguments-y @anyshare/cli mcp. For remote, use the URL with the Streamable HTTP transport. No OAuth; anAuthorizationheader with your API key is optional. - Step 3:
Ask for a link
The agent calls
publish(local) orpublish_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
publishtakespath(a file or folder),paths, orcontentplusfilename, and optionalslug,titleandspa.listshows links published from this machine, newest first, with their expiry.claimkeeps 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) ascontentwith afilename. Small binaries go as base64, up to 2 MB decoded, andfilesadds extra files for a multi-file site.Remote: get_upload_command
For files already on disk. Takes
pathand returns a CLI command and a curl command that upload from the user’s shell, optionally replacing an existing link withupdate_slugandtoken.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
.envfiles, keys,.npmrcand.dev.varsin 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?
Why doesn’t the remote server take file uploads directly?
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?
Does the MCP server need OAuth or an API key?
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?
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.




