MCP
One server, every photo tool
Photo Sweat Shop runs one MCP server, not one per feature. Tool names, parameters and defaults all come from the same capability table that generates the REST documentation, the OpenAPI document, the discovery card and the catalogue below — so what an agent sees is exactly what the API can do.
POST https://photosweat.shop/mcp · Streamable HTTP · stateless · anonymous use allowed
Listed in the official MCP Registry as shop.photosweat/remove-background — a name kept
from when the endpoint only did cutouts. It is the same server; there is no second URL to configure.
Tool catalogue
tools/list registers only capabilities whose status is live or
beta. Paused capabilities still work inside the site, but they are deliberately
not advertised — an agent that picked one would only get 404 tool_paused and waste a
call. They appear here automatically when they open; no client configuration changes.
| Tool | Status | REST | What it does | Time |
|---|---|---|---|---|
remove_background |
live | /api/remove-background |
Cuts the subject out onto transparency, white, or any solid colour, with hair-level edges. | about 10 s |
upscale beta |
beta | /api/upscale |
Real-ESRGAN enlargement at 2× or 4× with face enhancement on by default; prefer 2× for packaging and other text-dense images. | 30–60 s |
colorize beta |
beta | /api/colorize |
Old photo restoration: redraws the print to remove halftone and reduce scratches and restores colour; colour photos are restored too (2 credits, whole-photo redraw). The result is a JPEG, long edge ≤1024 px. | 3–5 s |
erase is beta over REST but not registered here: it needs a second input
(a mask), and a tool call carries one image argument. Call
POST /api/erase directly with multipart image + mask.
In the capability table, not yet registered
These are paused. They still run inside the site's three-step flow, but the public endpoint answers
404 tool_paused and MCP does not register them. When they open, the tool name follows
the same rule (hyphens in the REST slug become underscores), so scan-text becomes
scan_text.
| Capability | Future tool name · REST | What it does |
|---|---|---|
| Portrait enhance | enhance/api/enhance | Restores blurry faces and balances surrounding sharpness without recolouring. |
| Extend | extend/api/extend | LaMa outpainting; extends the frame's texture and does not invent objects. |
| Sensitive text scan | scan_text/api/scan-text | Finds all text in a product image and flags banned advertising words; annotated image plus report. |
| Text to image | generate/api/generate | FLUX generation from a prompt — the one capability with no input image. |
There is also a “white background” capability (marketplace-safe white fill and framing). It is not
registered separately — it is the cutout tool's background argument plus in-site framing,
not an independent tool.
Discovery
For agents and for anyone writing a script: several machine-readable artefacts, all generated from the same capability table, so whichever one you read says the same thing.
| Where | What it is | When to use it |
|---|---|---|
POST /mcp | The MCP endpoint. Streamable HTTP, stateless; the modern 2026-07-28 protocol and the 2025-era versions both work. | Connect a host; the least work. |
GET /.well-known/mcp.json | Discovery card: tools, statuses, prices, supported protocol versions, whether auth is required. | See what the server offers before wiring it up. |
GET /api/tools | Tool list with parameters and prices. | Scripts and directory listings. |
GET /openapi.json | OpenAPI 3.1, ready to generate a client from. | Calling REST directly, without MCP. |
GET /llms.txt | Plain-text map for LLM crawlers. | An agent crawling the site for entry points. |
GET /remove-background-mcp | Step-by-step setup for cutouts and upscaling, host by host. | When the MCP basics need spelling out. |
| GitHub repository | Source of the local stdio server; its tool list is generated from the same capabilities. | Running it yourself, or handing it local file paths. |
Two transports, identical tool names
| Hosted endpoint | Local stdio (GitHub repo) | |
|---|---|---|
| Setup | One URL, nothing to install | git clone + npm install, Node 18+ |
| The image | image_base64 or image_url | A local file path, path; the result is written next to it |
| Tool names | remove_background, upscale | Identical — same derivation rule |
| Where the list comes from | The server's built-in capability table | /api/capabilities, read at startup |
| Quota | Anonymous 10 credits a day (60 a month) per IP, one shared allowance | Same; PHOTO_KEY raises it to 20 credits a day (100 a month) |
| Debugging | PHOTO_MCP_ALL=1 also registers paused tools (for testing the schema only) |
The only difference between the two transports is where the image lives. The pipeline, models and allowance are the same.
Add it to your host
Claude — web and desktop
Settings → Connectors → Add custom connector, and paste:
https://photosweat.shop/mcp
Claude Code
claude mcp add --transport http photosweat https://photosweat.shop/mcp
Cursor
Add this to ~/.cursor/mcp.json (or a project-level .cursor/mcp.json):
{
"mcpServers": {
"photosweat": { "url": "https://photosweat.shop/mcp" }
}
}
VS Code and other JSON-configured hosts
In .vscode/mcp.json:
{
"servers": {
"photosweat": { "type": "http", "url": "https://photosweat.shop/mcp" }
}
}
There is no OAuth dance: anonymous callers are allowed, and a key only raises the allowance. Setup spelled out per host is on the background-removal MCP page; every tool's arguments are in the API reference.
Quota, price and failures
- Anonymous: 10 credits a day (60 a month) per IP. No sign-up, no watermark.
- Free key: 20 credits a day (100 a month), issued with a free account.
- Signed in: 20 credits a day (100 a month), shared by the website and your API key.
- Beyond that: $0.01 per credit, prepaid — $10 for 1,000 credits, never expiring. Failed jobs are refunded.
A tool call waits at most 20 seconds and then returns a status_url — which is the usual
outcome for an upscale. Poll that URL for result_url; do not resend the
image, because a resend charges the quota again.
Do not retry a 4xx: quota_exceeded (out of quota), tool_paused (frozen
tool), unsupported_media_type (wrong format). For 5xx, back off from 2 seconds, at most
3 attempts. A beta tool's response carries x-tool-status: beta — no SLA.
Questions
Is it one MCP per feature, or one server with several tools?
One server, several tools, all under the same URL. Names derive from the REST slugs, and the hosted endpoint and local stdio build expose identical names. A new capability shows up without a client configuration change.
Why are there fewer tools than endpoints?
Only live and beta are registered. A paused capability answers 404 tool_paused, so listing it would only waste an agent's call.
Do I need an API key?
No. Anonymous callers get 10 credits a day per IP; signed in, the website and your API keys share one allowance of 20 credits a day (100 a month). Prepaid credits cover anything beyond that.
Does it generate images?
Not yet. Text-to-image is in the capability table but paused and not registered over MCP. Today the server removes backgrounds and upscales.
How do I check which tools exist right now?
Read /.well-known/mcp.json or call /api/tools. Both are generated from the capability table and match tools/list.
Why does upscale return a status_url?
An upscale takes 30–60 s, longer than a call should block. The job stays queued and the tool returns a status_url; poll it for result_url instead of resending.