Support file uploads and downloads changedconnectors/building/files
Nearest release: v2.1.335, published 6 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 2 Dec 2026 15:23 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Dec 2026 15:37 UTC.
Upstream edited
Recorded here
Lines+22added
Lines−10removed
From line
28
where the diff opens
First seen
24 Nov 2026
this site's first read of the page
Recorded edits2to this page, all time
The whole hunk
from line 28, old and new numbered
/
from line 28
2828* **Library**: use a version that supports revision 2026-07-28. To receive uploads, it must also let a tool return the `upload_required` result type, which the extension adds. See the tested versions under [SDK support for file transfers](#sdk-support-for-file-transfers). Version 1.32.2 of `@modelcontextprotocol/sdk`, the package that the [quickstart](https://claude.com/docs/connectors/building/quickstart.md) uses, supports neither uploads nor downloads.
2929* **Storage**: for uploads, your storage must accept a whole file in one `PUT` or `POST` request. For downloads, it must serve a file to a `GET` request, in byte ranges if it can.
3030* **Approved hosts**: Anthropic must approve the hosts that store your connector's files. Your connector needs at least one approved host, even if every file goes through your MCP server. [Request approval for your hosts](#request-approval-for-your-hosts) before you build on them. Claude can also get files from your MCP server's own host, and send files to it with [`include` credentials](#targets-with-include-credentials). Claude refuses a URL on any other host, on an IP address, or on another company's storage or CDN host that all its customers share.
31* **Account for testing**: use a Claude account that has access to file transfers. Name the account when you [request approval for your hosts](#request-approval-for-your-hosts). If it doesn't have access, or you aren't sure, ask Anthropic in the same email to turn on file transfers for testing. Use made-up files in your tests, not real ones. On Team and Enterprise plans, an Owner must also go to [**Organization settings > Connectors**](https://claude.ai/admin-settings/connectors). Under **File transfers**, the Owner turns on the **File uploads to connectors** toggle, the **File downloads from connectors** toggle, or both. Some organizations can't use file transfers, such as those with HIPAA settings, zero data retention, customer-managed encryption keys, an IP allowlist, or a default workspace that keeps data outside the US.
31* **Account for testing**: use a Claude account that has access to file transfers. If it doesn't have access, or you aren't sure, email `[email protected]` with the account's email address and ask to turn on file transfers for testing. For a Team or Enterprise organization, include the **Organization ID** from [**Organization settings > Organization and access**](https://claude.ai/admin-settings/organization). Use made-up files in your tests, not real ones. On Team and Enterprise plans, an Owner must also go to [**Organization settings > Connectors**](https://claude.ai/admin-settings/connectors). Under **File transfers**, the Owner turns on the **File uploads to connectors** toggle, the **File downloads from connectors** toggle, or both. Some organizations can't use file transfers, such as those with HIPAA settings, zero data retention, customer-managed encryption keys, an IP allowlist, or a default workspace that keeps data outside the US.
3232
3333### Request approval for your hosts
3434
35Before Claude transfers files for a listing, Anthropic approves the listing's hosts. If your connector isn't listed yet, [submit it](https://claude.com/docs/connectors/building/submission.md) first. To request approval, email `[email protected]` with the subject `Connector file hosts: <connector name>` and these details:
35Before Claude transfers files for a listing, Anthropic approves the listing's hosts. If your connector isn't listed yet, [submit it](https://claude.com/docs/connectors/building/submission.md) first. Approved hosts work for everyone who uses your connector and has file transfers, so [show file tools only to your test accounts](#test-in-claude-code) until you're ready to launch.
3636
37* **Listing**: your listing's name and its server URLs
38* **Hosts**: the full name of each host that Claude sends files to or gets files from, in every region. You can name up to 50. If files go through your MCP server, include its host. If your storage generates host names, you can ask for a wildcard, such as `*.downloads.example.com`. Anthropic reviews each one, and you must control every name under it.
39* **Use of each host**: whether it's for production or testing, whether all your customers share it, and whether it's behind a CDN
40* **Ownership**: for a host on another domain of yours, a public page that shows that the domain is yours. For a bucket or account host on a storage provider's domain, a statement that the exact host name is yours.
41* **Test organization**: the email address of the Claude account that you test with. If that account is in a Team or Enterprise organization, also the **Organization ID**, which you copy from [**Organization settings > Organization and access**](https://claude.ai/admin-settings/organization).
37Request approval in the developer portal, with an account that can [manage your listing](https://claude.com/docs/connectors/building/managing-your-listing.md#access-the-dashboard):
4238
43Wait for Anthropic to confirm the hosts and the test organization before you rely on them. An approval covers the hosts that Anthropic confirmed and the server URLs that your listing had at that time. Before you use a host that it doesn't cover, or a new server URL, email again. Claude doesn't transfer files there until Anthropic approves it.
391. Go to [claude.ai/directory/manage](https://claude.ai/directory/manage), open your connector, and select the **Settings** tab
402. Under **File hosts**, click the **Add hosts** (**+**) button. If the section says that requests aren't available for your organization, email your listing's name and hosts to `[email protected]` instead.
413. Enter the full name of each host that Claude sends files to or gets files from, up to 50 across all regions. If files go through your MCP server, include its host. If your storage generates host names, enter a wildcard, such as `*.downloads.example.com`.
424. Click the **Submit for review** button
4443
44Each host shows as **In review** until a reviewer decides, and then as **Approved** or **Not approved**. If a host shows **Needs your reply** or **Not approved**, click the status to answer the reviewer or see the reason. After approval, allow five minutes before you use a new host. To remove a host, click the trash can button on its row. A reviewer approves removals too.
45
46Anthropic approves a host when it can confirm that you control it:
47
48* **Your MCP server's domain**: the request is enough
49* **Another domain of yours**: your own website or documentation shows that the domain is yours
50* **Wildcard**, such as `*.downloads.example.com`: the domain is yours, and you control every name under it. Add `downloads.example.com` separately if you use it.
51* **Bucket or account host on a storage provider's domain**: enter the exact host name. A reviewer can ask you to confirm that it's yours. If the portal refuses the host, serve the files from a host on your own domain.
52
53An approval covers the server URLs that your listing had when it was approved. If you add or change a server URL, your hosts show as **Paused** and Claude stops transferring files. Under **File hosts**, click the **Request a review** button to have them approved for the new URL.
54
4555### URLs, headers, and fields of a target
4656
4757A target is an object in your server's response that says where Claude sends or gets one file. In each upload target and download target, follow these rules:
from line 604
594604* **No file moves, and Claude shows no error**: check the [requirements](#requirements-for-file-transfers) and each step of the [test in Claude Code](#test-in-claude-code). Then check for these causes:
595605 * Your server responded to `server/discover` with an error in the last day. Wait a day, and start a new session.
596606 * `DISABLE_TELEMETRY`, `DO_NOT_TRACK`, or `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` is set. Claude Code doesn't transfer files in that session, so unset all of them.
607 * You run Claude Code in print mode (`claude -p`). Start an interactive session instead.
608 * You're signed in to another organization. Run `/status` at the Claude Code prompt, and sign in with the account that you added the connector to.
597609* **Your server receives no call**: check the server's address against your listing, and the tool's schema against the [file argument](#mark-the-file-argument)
598610* **Your Python server responds with `500`, and its log says "Task group is not initialized"**: you mounted `app` in another app. Serve it as its own process.
599611* **Your server responds with `421`, or with `403` and `Invalid Host`**: list your host name in `allowed_hosts` (Python) or `hostHeaderValidation` (TypeScript)
No line in this hunk matches that.