rembg-mcp
Click on "Install 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: jgkme/kilo-image-gen-mcp
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ReverserID/rembg-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server