---
title: "Exploring File Uploads and Downloads in MCP"
description: "A draft MCP extension, io.modelcontextprotocol/files, moves file bytes between clients and storage outside JSON-RPC so models never handle file contents or transfer URLs."
url: "https://swe.quest/articles/exploring-file-uploads-and-downloads-in-mcp-7b4b39fba68dbf3a"
canonical: "https://blog.modelcontextprotocol.io/posts/exploring-file-uploads-and-downloads-in-mcp/"
source: "Model Context Protocol"
published: "2026-11-10"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 11
tags: ["ai-agents","api-design","identity-auth","storage-systems"]
---

# Exploring File Uploads and Downloads in MCP

A post on [Model Context Protocol](https://swe.quest/sources/mcp.md), published 2026-11-10, 11 min read, Deep dive. Original: [https://blog.modelcontextprotocol.io/posts/exploring-file-uploads-and-downloads-in-mcp/](https://blog.modelcontextprotocol.io/posts/exploring-file-uploads-and-downloads-in-mcp/)

## Summary

A draft MCP extension, io.modelcontextprotocol/files, moves file bytes between clients and storage outside JSON-RPC so models never handle file contents or transfer URLs. Tools mark file arguments with x-mcp-file. The client first sends only metadata, letting the server check permissions and quota, and the server answers with an upload\_required result containing pre-signed targets and a tamper-protected requestState. The client then retries the call statelessly under the Multi Round-Trip Requests pattern. Downloads return targets in the result's \_meta, a credentials field (omit/include) limits where MCP tokens are sent, and destination allowlisting and the \_meta download format remain open questions for feedback.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- Model Context Protocol basics
- JSON-RPC ([easy posts on RPC & gRPC](https://swe.quest/tags/rpc.md?difficulty=easy))
- pre-signed URLs

## Keywords

Model Context Protocol, MCP, JSON-RPC, x-mcp-file, requestState, SHA-256

## Related posts

- [What’s MCP all about? Comparing MCP with LLM function calling](https://swe.quest/articles/what-s-mcp-all-about-comparing-mcp-with-llm-function-calling-fcce1ee01a7d0aed.md): Neon · 2025-03-12 · Medium · 5 min read · AI agents, LLMs, TypeScript
  The Model Context Protocol (MCP) builds on LLM function calling by moving tool definitions and execution out of individual LLM applications into standalone servers that any MCP-compatible client can discover and invoke.
- [Building the Hugging Face MCP Server](https://swe.quest/articles/building-the-hugging-face-mcp-server-70bae73ac8de2021.md): Hugging Face · 2025-07-10 · Medium · 8 min read · AI agents, API design, Scaling
  Hugging Face's hosted MCP server at hf.co/mcp runs in production on Streamable HTTP in a stateless, direct-response configuration.
- [MCP Horror Stories: The Supply Chain Attack](https://swe.quest/articles/mcp-horror-stories-the-supply-chain-attack-4511e601e3b80aa5.md): Docker · 2025-08-07 · Medium · 9 min read · Supply chain security, Vulnerability research, AI agents, Application security, Containers
  CVE-2025-6514 (CVSS 9.6) in mcp-remote, an OAuth proxy downloaded over 437,000 times, let a malicious MCP server achieve remote code execution on developer machines. mcp-remote passed the server-supplied authorization\_endpoint unvalidated to the npm 'open' package.
- [Bringing MCP to the Cloud](https://swe.quest/articles/bringing-mcp-to-the-cloud-de1944b558e43ff0.md): Neon · 2025-04-11 · Medium · 8 min read · AI agents, Identity & auth, API design, JavaScript
  Neon moved its MCP server from a locally spawned stdio process authenticated by a long-lived API key to a hosted server at mcp.neon.tech, using SSE for server-to-client messages and HTTP POST to a /messages endpoint routed by an in-memory session map.
- [Five Big Improvements to Gradio MCP Servers](https://swe.quest/articles/five-big-improvements-to-gradio-mcp-servers-de0d05a26f23e057.md): Hugging Face · 2025-07-17 · Medium · 4 min read · AI agents, Python, API design, LLMs
  Gradio 5.38.0 adds five features for building MCP servers. A "File Upload" MCP server lets agents send local files to remote Gradio apps, and progress notifications now stream to MCP clients. \`gr.load\_openapi\` turns an OpenAPI spec into an MCP server in one line, \`gr.Header\`-typed arguments extract auth headers and list them in the connection docs, and the \`api\_description\` parameter overrides auto-generated tool descriptions.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
