rembg-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rembg-mcpremove background from ~/Pictures/photo.jpg"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
rembg-mcp
MCP server wrapping rembg for GPU-accelerated image background removal. Uses onnxruntime-gpu (CUDA) with automatic CPU fallback. No API keys — models run locally.
Install (GPU / CUDA)
Requires an NVIDIA GPU with CUDA 12.x runtime. Python 3.10–3.12.
uv tool install --python 3.12 "git+https://github.com/ReverserID/rembg-mcp.git"Or from a local clone:
cd rembg-mcp
uv tool install --python 3.12 .Related MCP server: Image Processor MCP Server
MCP client config
{
"mcpServers": {
"rembg": {
"command": "rembg-mcp"
}
}
}Claude Code:
claude mcp add rembg -- rembg-mcpEnvironment variables
Var | Default | Description |
|
| Default model |
|
| Where cutouts are saved |
| `` | Set to |
Tools
remove_background— cut out background from an image on disk, save transparent PNG. Options:model,alpha_matting(better hair/fur edges),post_process_mask,only_mask,bgcolor("R,G,B,A"to composite onto a flat color).remove_background_base64— same, but image in/out as base64 (no disk).list_models— curated model catalog.gpu_status— show ONNX Runtime providers and whether CUDA is active.unload_sessions— free loaded models from GPU/CPU memory.
Models
u2net (default), u2netp, u2net_human_seg, u2net_cloth_seg, silueta, isnet-general-use, isnet-anime, birefnet-general, birefnet-general-lite, birefnet-portrait, sam. Any other rembg model name also works.
Models download on first use and cache under ~/.u2net.
Notes
First
remove_backgroundcall downloads the model and initializes CUDA — slower; subsequent calls reuse the cached session.Check
gpu_statusto confirmCUDAExecutionProvideris active.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-powered image processing via GPU. Remove backgrounds and upscale images (2x/4x) directly from any MCP client. OAuth 2.1 authenticated, returns processed images inline with download links. Free credits on signup at maskr.io.
MCP server for Qwen Image 3 AI image generation
MCP server for Wan AI video generation
MCP server for Luma Dream Machine AI video generation
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server for generating, editing, and processing images via multiple providers including Kilo, OpenRouter, OpenAI, and Gemini, with local tools for background removal, resizing, and cropping.182MIT
- FlicenseNot gradedqualityDmaintenanceA powerful Model Context Protocol (MCP) server for image processing, designed to empower AI models with advanced image manipulation capabilities.-

simplypng-mcpofficial
AlicenseAqualityCmaintenanceMCP server for SimplyPNG background removal APIs. Enables AI agents to remove backgrounds from images, estimate credits, check job status, and download results programmatically.55MIT- AlicenseAqualityCmaintenanceLocal image processing MCP server providing background removal, stock media search, resize, format conversion, and collage creation.5MIT