ShareWith speaks the Model Context Protocol, so Claude — or any MCP-capable assistant — can list, read, move, copy, zip and delete your files directly. It connects as one specific user with a key you issue, and it can only touch what that key allows.
Open your files, switch the sidebar to API and choose New Key. Give it a name you will recognise. To confine the assistant to one folder, set that folder on the key — it will never see anything outside it. The key is shown once; copy it then.
The MCP endpoint is https://sharewith.xyz/mcp. It speaks JSON-RPC over
HTTP POST and authenticates with the X-API-Key header.
Claude Code — one command:
claude mcp add --transport http sharewith https://sharewith.xyz/mcp \ --header "X-API-Key: YOUR_KEY"
Claude Desktop — add this to your config file:
{
"mcpServers": {
"sharewith": {
"type": "http",
"url": "https://sharewith.xyz/mcp",
"headers": { "X-API-Key": "YOUR_KEY" }
}
}
}
Clients that only accept a URL — some connectors (Google Gemini's "custom connected app", for example) give you one link field and no way to set a header. Put the key in the URL instead:
https://sharewith.xyz/mcp?key=YOUR_KEY
Leave any OAuth Client ID / secret fields blank — this server authenticates with an API key, not OAuth.
Try “list my files”, “put every invoice PDF into a folder called 2026 and zip it”, or “copy last night's backup from the FTP server into my own storage”. Mounted FTP, SFTP, Google Drive and shared server folders are all reachable, so the assistant can move files between machines in one step.
Thirteen tools, all going through the same engine as the web interface — so anything it does is exactly what you would get by clicking.
list_filesBrowse a folder, including mounted storageread_fileRead a text filewrite_fileCreate or overwrite a text filecreate_folderMake a new foldermove_itemMove a file or folder, across mounts toocopy_itemCopy a file or folder, across mounts toorename_itemRename in placedelete_itemDelete a file or a whole folderget_file_infoSize, type and modified timesearch_filesFind by name through subfolderscompress_itemsZip files and foldersextract_archiveUnpack a .zipwhoamiReport the account and folder limitA connection acts as exactly one
user. A folder-scoped key cannot read, write or even list anything outside that folder, and
.. in a path is rejected.
There is no recycle bin.
delete_item removes a folder and everything in it. Scope the key
to a working folder if you want a safety net.
A folder an administrator shared as read-only refuses writes over MCP exactly as it does in the browser.
Delete the key in the API panel and the connection stops working immediately.
Everything above is also a normal REST API, usable from a script, a cron job or any language.
# list the root curl -H "X-API-Key: $KEY" "https://sharewith.xyz/api/v1/files?path=" # upload curl -H "X-API-Key: $KEY" -F "file=@report.pdf" "https://sharewith.xyz/api/v1/files/upload?path=docs"Full API reference
If you are an agent reading this page, these describe the whole API without scraping HTML.
| /llms.txt | Short index of what this server is and where the docs are |
| /api/openapi.json | OpenAPI 3.1 document for every endpoint |
| /api/docs.md | The full reference as Markdown |
| /mcp | MCP endpoint — POST JSON-RPC with an X-API-Key header |