media-download
Download a Sitecore media library blob by path or GUID. Pass saveTo to save large blobs to a local file; without it, returns inline base64 capped by maxBytes.
Instructions
Downloads a media item's blob from the Sitecore media library via the SPE mediaDownload service. Pass saveTo to write it to a file local to the machine running this MCP server (always do this for anything over ~0.5MB); without saveTo the blob is returned inline as base64, capped at maxBytes. Requires in the CM's SPE services config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The media item path WITHOUT file extension (e.g. 'Project/Stride/Corporate/Migrated/team-photo' — the '/sitecore/media library/' prefix is optional), or the media item's GUID. | |
| saveTo | No | File path on the machine running this MCP server to write the blob to. When set, the response carries metadata only — no base64. Refused over the HTTP transport unless MEDIA_LOCAL_FILE_ROOT names a directory to confine it to. | |
| database | No | The database holding the media library. Defaults to master. | master |
| maxBytes | No | Inline-response size cap in bytes (default 512000). A blob over the cap errors with its actual size — pass saveTo instead of raising the cap unless you truly need the bytes inline. |