Sanity Images MCP server
MCP server for uploading local images to Sanity CMS
1 stars42 downloads/wk
Reviews
Write oneNobody has reviewed Sanity Images yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Sanity Images tools (5, 4 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
batch_uploadwrite actionUpload all images from a folder as Sanity assets (no document patching)
groq_querywrite actionRun a GROQ query against the Sanity dataset (useful to find document IDs before attaching images)
list_imagesList image files in a directory so you can see what's available to upload
upload_and_setwrite actionUpload an image and patch it onto a Sanity document field in one call
upload_imagewrite actionUpload a local image file to Sanity as an image asset
Public scan report
scanner v0.1.10 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned20/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 164 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Findings (1)
- mediumeval / new Function used
exec.evaldist/index.js: …eCode, sch); const makeValidate = new Function(`${names_1.default.self}`, `${names_1.de…
How Sanity Images compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 74/100
- higher than 40% of 48,255 servers
- Tools
- 5
- the typical server has 7
- Tools that change things
- 80%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 65% of 28,688 servers
- Downloads a week
- 42
- more than 34% of 12,191 servers with a package
What its tools let an agent do: 1 read · 2 create · 2 change
Install Sanity Images in Claude Code, Cursor or VS Code
Runs npx -y mcp-sanity-images on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mcp-sanity-images -- npx -y mcp-sanity-images
What the publisher says
From the Sanity Images repository's README, as published. We do not edit it. Read it on GitHub
MCP server for uploading local images to Sanity CMS. Lets AI assistants upload files from your filesystem directly into Sanity as image assets.
Quick Start
1. Get your Sanity token
Either set the SANITY_TOKEN env var, or just log in with the Sanity CLI:
npx sanity loginThe server reads the token from the Sanity CLI config automatically (~/.config/sanity/config.json on all platforms).
2. Add to Claude Code
claude mcp add sanity-images --scope user --transport stdio \
-e SANITY_PROJECT_ID=your-project-id \
-- npx -y mcp-sanity-images@latestThat's it. Restart Claude Code and the tools are available. Every session runs the latest version automatically.
Also works with bunx mcp-sanity-images@latest if you have Bun.
Alternative: standalone binary
Download a pre-built binary from Releases:
macOS / Linux:
curl -Lo mcp-sanity-images https://github.com/pijusz/mcp-sanity-images/releases/latest/download/mcp-sanity-images-darwin-arm64
chmod +x mcp-sanity-images
sudo mv mcp-sanity-images /usr/local/bin/
claude mcp add sanity-images --scope user --transport stdio \
-e SANITY_PROJECT_ID=your-project-id \
-- /usr/local/bin/mcp-sanity-imagesWindows (PowerShell):
Invoke-WebRequest -Uri "https://github.com/pijusz/mcp-sanity-images/releases/latest/download/mcp-sanity-images-windows-x64.exe" -OutFile "$env:LOCALAPPDATA\mcp-sanity-images.exe"
claude mcp add sanity-images --scope user --transport stdio -e SANITY_PROJECT_ID=your-project-id -- "%LOCALAPPDATA%\mcp-sanity-images.exe"Claude Desktop
Add to your claudedesktopconfig.json:
Using npx (auto-updates)
{
"mcpServers": {
"sanity-images": {
"command": "npx",
"args": ["-y", "mcp-sanity-images@latest"],
"env": {
"SANITY_PROJECT_ID": "your-project-id"
}
}
}
}Using binary (macOS / Linux)
{
"mcpServers": {
"sanity-images": {
"command": "/usr/local/bin/mcp-sanity-images",
"env": {
"SANITY_PROJECT_ID": "your-project-id"
}
}
}
}Using binary (Windows)
{
"mcpServers": {
"sanity-images": {
"command": "%LOCALAPPDATA%\\mcp-sanity-images.exe",
"env": {
"SANITY_PROJECT_ID": "your-project-id"
}
}
}
}Tools
Supported formats: PNG, JPG/JPEG, WebP, GIF, SVG.
Configuration
All tools also accept projectId and dataset as parameters, overriding the env vars per-call.
Tool Details
upload_image
Upload a single file and get back the asset reference.
filePath: "/path/to/hero.png"
alt: "Hero banner" (optional — derived from filename)Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Sanity Images: common questions
- Is Sanity Images MCP server safe?
- Mostly: it is graded B (74/100). Read the Sanity Images safety report
- How do I install Sanity Images?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Sanity Images need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Sanity Images maintained?
- The last commit was 201 days ago (2026-04-17). The latest release is v0.3.7.
- How does Sanity Images compare with other MCP servers?
- safety score 74/100 (higher than 40% of 48,255 servers); tools 5 (the typical server has 7); tools that change things 80% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.