# Remove.bg — how to use (mcp.ai)

Connect your Remove.bg account and use 3 tools for images and design straight from your AI agent. Connect with your own API key. remove_bg is an API that allows developers to automatically remove backgrounds from images using AI technology.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_remove_bg?ms=1787293380000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `remove_bg`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/remove_bg`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/remove_bg/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/remove_bg/remove/bg` — Tool to remove background from an image. Use when you need a transparent or custom background for product or profile photos.
  - body: { roi?: string, crop?: boolean, size?: string, type?: string, scale?: string, format?: string, bg_color?: string, channels?: string, position?: string, image_url?: string, image_file?: string, bg_image_url?: string, bg_image_file?: string }
- `POST https://api.mcp.ai/api/remove_bg/get/account` — Tool to retrieve account information, including current credit balance. Use when you need to know your remove.bg account's credit and usage details.
- `POST https://api.mcp.ai/api/remove_bg/submit/improvement` — Tool to submit an image to the remove.bg Improvement program. Use when you want to contribute images that remove.bg cannot process properly to help improve the AI. By submitting images you agree to th
  - body: { tag?: string, image_url?: string, image_file?: object, image_file_b64?: string, image_filename?: string }

## Example prompts
- "What can I do in Remove.bg?"
- "Show me a summary of my Remove.bg account"

## More
- Page: https://mcp.ai/remove_bg
- Agent spec (llms.txt): https://mcp.ai/remove_bg/llms.txt
- Postman collection: https://mcp.ai/remove_bg/postman.json
