Server data from the Official MCP Registry
Cutout, upscale, erase, restore and ID photos over MCP. 10 free credits/day (60/month).
About
Cutout, upscale, erase, restore and ID photos over MCP. 10 free credits/day (60/month).
Remote endpoints: streamable-http: https://photosweat.shop/mcp
Security Report
The server is a small, readable wrapper around a hosted image API with no obfuscation, shell execution, or hardcoded credentials. Its main concerns are that the local tool accepts any absolute path for upload and any output path for writing, and that tool names and descriptions are built from a remote capability document, which the agent will see. The API key is sent only to API calls and not to presigned URLs, and the permissions it uses match the stated purpose. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity).
4 files analyzed · 9 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Found in Source Code
Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.
How to Connect
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"shop-photosweat-remove-background": {
"url": "https://photosweat.shop/mcp"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
Photo Sweat Shop MCP server
An MCP server for background removal, upscaling, old photo restoration and ID photos. An agent hands it the absolute path to a photo; it calls the hosted Photo Sweat Shop API, writes the result next to the original, and returns that path.
One server, several tools — remove_background, upscale, colorize and make_id_photo, plus
erase on the local transport, all named after their REST slugs. The list grows as capabilities
open, and nothing is hand-written twice.
No GPU, no API client to write, no key required to start — the free tier is 10 credits a day (60 a month) per IP (a cutout or an erase = 1 credit; an upscale or an old photo restoration = 2; an ID photo = 3).
remove_background({ path: "/Users/me/photo.jpg" })
→ Saved image/png to /Users/me/photo-cutout.png (1437218 bytes). jobId: 5f0c…
Why this one
- The tool list is generated, not hand-written. On startup the server reads
GET /api/capabilitiesand registers one tool per open capability, deriving each parameter schema (type, range, default, enum) from that document. There is no second copy of the API to drift out of date. - Only capabilities that actually answer are registered. Tools marked
pausedin the capability document are skipped, so an agent never picks a tool that would return404 tool_paused. A short tool list beats a wasted call. - Hosted on real GPUs. Edges are hair-level, output is a real alpha channel.
Install
git clone <this-repo> photosweat-mcp
cd photosweat-mcp
npm install
Node 18 or newer.
Connect it
Gemini CLI — the extension points at the hosted endpoint, so there is nothing to clone or build:
gemini extensions install https://github.com/photo-sweat-shop/photosweat-mcp
Agent Plugins hosts (Cursor, VS Code, Copilot, ChatGPT, Codex, Kiro) — this repository is also an
Agent Plugins 1.0 package: plugin.json plus a root mcp.json that
declares the hosted server as streamable-http, so those hosts pick up the same endpoint with no
local process.
Claude Code:
claude mcp add photosweat -- node /absolute/path/to/photosweat-mcp/server.mjs
Claude Desktop / Cursor / any client that reads an MCP config file:
{
"mcpServers": {
"photosweat": {
"command": "node",
"args": ["/absolute/path/to/photosweat-mcp/server.mjs"],
"env": {
"PHOTO_API": "https://photosweat.shop"
}
}
}
}
env can be omitted entirely — the defaults below are the public API.
| Variable | Default | Meaning |
|---|---|---|
PHOTO_API | https://photosweat.shop | Base URL of the API |
PHOTO_KEY | (unset) | API key. Raises the daily allowance to 20 credits a day (100 a month) and gives you a stable identity |
PHOTO_MCP_ALL | (unset) | 1 also registers paused tools. For testing the schema generation; don't set it in normal use |
Or skip the install
The same capability is served remotely over Streamable HTTP — no clone, no npm install, no key:
{ "mcpServers": { "photosweat": { "url": "https://photosweat.shop/mcp" } } }
Claude Code:
claude mcp add --transport http photosweat https://photosweat.shop/mcp
That endpoint exposes all but one of the tools the local server registers — remove_background,
upscale, colorize and make_id_photo — taking image_url or image_base64 and returning the
result as an image content block. (erase is local-only: it needs a mask channel.) Names are
derived from the REST slugs, so they match POST /api/remove-background, POST /api/upscale,
POST /api/colorize and POST /api/make-id-photo. The anonymous quota is 10 credits/day (60 a month) per IP (a cutout costs 1; an upscale
or an old photo restoration costs 2; an ID photo costs 3).
Per-client instructions: https://photosweat.shop/remove-background-mcp
Registered in the official MCP Registry as shop.photosweat/remove-background.
The only difference between the two transports is where the image lives: the local server in this
repo takes a file path, the remote endpoint takes image bytes. Same pipeline, same
allowance. An upscale takes 30–60 s, longer than a tool call should block, so on the hosted
endpoint it usually returns text carrying a status_url — poll that and fetch result_url rather
than resending the image.
Tools
Tools are registered from /api/capabilities at startup, so a parameter's default is whatever
that document says, and the names are the same ones the hosted endpoint uses. Today that is
remove_background, upscale, colorize and make_id_photo, plus the local-only erase.
| Tool | Arguments |
|---|---|
remove_background | path (required), out, background, color, format, fillRatio, longEdge, verifyText |
upscale | path (required), out, scale, engine, face, verifyText |
colorize | path (required), out |
erase | path (required), mask (required), out |
make_id_photo | path (required), out, country (required), doc_type, bg |
path— absolute path to a JPG / PNG / WebP file, 10 MB max.out— where to write the result; defaults to<input>-<capability>.<ext>.background—transparent(default),white, orcolor.color—#rrggbb, only used whenbackgroundiscolor.format—png(default) orjpeg. JPEG only works on opaque backgrounds; transparency requires PNG.fillRatio— marketplace framing,0(default) keeps the canvas at the input size.1–100crops to the subject and centres it on a square canvas, the subject's longest side taking that share of the canvas side — the measure marketplaces use for "subject fill".longEdge— side of that square canvas in px,0–4096, default0(derive it fromfillRatiowithout resampling the subject).verifyText— off by default. Turn it on to OCR the source and the result and receive a list of missing or changed characters; it adds roughly 4–30 s, because it runs on CPU. On the small backup GPU it may come back asunavailableinstead of a verdict; the image is unaffected either way.scale—2or4(default4); prefer2for packaging, labels and other dense text.engine—ultrasharp(default) orx4plus;x4pluskeeps text edges cleaner.face—upscaleonly, on by default. After enlarging, faces are restored once (no reshaping, no blue-iris artifact; skin does not go yellow-green), about a second per face, up to 8 faces per image. Sendfalseto skip it. Same price either way.colorizetakes no parameters — its faces are redrawn with the rest of the photo.verifyText— off by default. Turn it on to OCR the source and the result and receive a list of missing or changed characters; it adds roughly 5 s on sparse text and up to 30 s on dense layouts, because it runs on CPU.country—make_id_photoonly, required. ISO 3166-1 alpha-2 code (US,CN,DE…).GET /api/idphoto/specslists all 82 supported countries and the documents each one has.doc_type—make_id_photoonly. E.g.passport,visa,visa_dv; omitted means that country's passport.bg—make_id_photoonly.auto(default, the spec's own background) or#rrggbb. Specs that must be met on site or at a certified studio are rejected withbad_paraminstead of being rendered.
erase needs a mask, and this stdio server knows how to send one, so it registers the tool with
an extra mask argument (absolute path to a PNG: white = the area to erase). The hosted /mcp
endpoint has no mask channel, so it deliberately does not list erase — use this package, or
REST multipart, for erasing.
colorize is called old photo restoration everywhere it is shown (web page /restore; the
slug is unchanged). It redraws the whole photo — halftone and
grain removed, scratches and stains reduced, colour restored — so the result differs visibly from
the original, with the aspect ratio unchanged. An absolute path is all it takes: there are no
parameters, because the whole photo including faces is redrawn in one pass (nothing is pasted
back). Colour photos are restored too — same model, same 2 credits, no short-circuit — and every
result comes back as a JPEG at most 1024 px on the long edge.
make_id_photo crops and places the head to an issuing
authority's published spec and returns a JPEG at that spec's pixel size. country is a required
ISO 3166-1 alpha-2 code (82 supported; GET /api/idphoto/specs lists them all), doc_type
defaults to that country's passport, and bg takes auto (the spec's background) or an
#rrggbb. Specs that must be done on site or by a certified studio are rejected up front with
bad_param rather than rendered. No approval guarantee: the photo meets the published numbers,
and that is all it claims.
Other capabilities in the document (enhance, extend, scan-text, generate) are
paused and will be registered automatically if they reopen.
Under the hood
Each call is the same three-step flow the website uses: POST /api/presign → PUT the bytes
to the returned presigned URL → POST /api/jobs → poll GET /api/jobs/{id} → download the
result. PHOTO_KEY, when set, is sent as Authorization: Bearer … on the API calls only —
never on the presigned URL, whose signature does not cover that header.
Using the HTTP API directly instead
If you are not driving an agent, the single-request endpoint is simpler:
curl -sS https://photosweat.shop/api/remove-background \
-H "Authorization: Bearer $PHOTO_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
--data-binary @photo.jpg \
-o photo-cutout.png
It returns the image bytes with 200, or 202 with a JSON body containing status_url if
the synchronous wait (20 s by default, ?wait=N to change it) runs out — poll that URL rather
than resending the image. Add ?format=json to always get JSON with a result_url instead of
bytes, and ?params={"background":"white"} to change the options.
GET /api/capabilities— every capability, its parameters, status and price.GET /openapi.json— the full OpenAPI description.https://photosweat.shop/apikey— keys, quickstart, batch endpoint, SDK.
Limits
- 10 MB per image; JPG, PNG or WebP.
- 10 credits/day (60 a month) anonymously (per IP), 20 credits/day (100 a month) with a free account (the website and your API key share it).
- Past the free allowance: prepaid credits at $0.01/credit ($10 = 1,000 credits); a cutout or an erase costs 1, an upscale or an old photo restoration 2, an ID photo 3.
- Old-photo-restoration output is always a JPEG at most 1024 px on the long edge; a colour photo is restored by the same redraw and costs the same 2 credits.
- Anonymous requests are rate-limited to 30/minute.
- Results are deleted after 24 hours. Save them yourself.
Development
server.mjs and client.mjs in this repository are generated from the private worker
source and carry a header saying so. Change them upstream and re-sync; edits here are
overwritten. Behaviour is versioned together with the API, which is why the server reports its
own version rather than tracking the npm package independently.
License
MIT. See LICENSE.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
