mcp-sanity-images
v0.3.7MCP server for uploading local images to Sanity CMS
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
upload_image
Upload a local image file to Sanity as an image asset
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
alt | string | |
dataset | string | |
projectId | string |
upload_and_set
Upload an image and patch it onto a Sanity document field in one call
| Parameter | Type | Description |
|---|---|---|
documentId * | string | |
fieldPath * | string | |
filePath * | string | |
alt | string | |
dataset | string | |
projectId | string |
batch_upload
Upload all images from a folder as Sanity assets (no document patching)
| Parameter | Type | Description |
|---|---|---|
directory * | string | |
dataset | string | |
projectId | string | |
recursive | boolean |
list_images
List image files in a directory so you can see what's available to upload
| Parameter | Type | Description |
|---|---|---|
directory * | string | |
recursive | boolean |
groq_query
Run a GROQ query against the Sanity dataset (useful to find document IDs before attaching images)
| Parameter | Type | Description |
|---|---|---|
query * | string | |
dataset | string | |
projectId | string |