MCP server

Remove backgrounds in ChatGPT, Claude, Cursor and n8n

Add removebackground.dev to your AI app once, then ask it to cut out a photo. You get a transparent PNG back in the chat, made by the same engine as the website.

Server URLhttps://removebackground.dev/mcp

Apps sign in with your removebackground.dev account. Apps that can't sign in can use an API key instead.

Set it up in your app

ChatGPT

In Settings → Apps, turn on developer mode and create an app with the server URL https://removebackground.dev/mcp and OAuth sign-in. Connect, sign in to removebackground.dev, then upload a photo and ask for the background to be removed.

Claude

In Settings → Connectors, choose Add custom connector, paste https://removebackground.dev/mcp and click Connect. Sign in to removebackground.dev and allow access.

Claude Code

Run this once, then type /mcp in Claude Code to sign in.

claude mcp add --transport http removebackground https://removebackground.dev/mcp

Cursor

Add this to ~/.cursor/mcp.json. Cursor asks you to sign in the first time it uses the server.

{
  "mcpServers": {
    "removebackground": {
      "url": "https://removebackground.dev/mcp"
    }
  }
}

VS Code

Add this to .vscode/mcp.json, then start the server from the file and sign in.

{
  "servers": {
    "removebackground": {
      "type": "http",
      "url": "https://removebackground.dev/mcp"
    }
  }
}

n8n

Add an MCP Client node (or MCP Client Tool for an AI agent). Set the transport to HTTP Streamable, the URL to https://removebackground.dev/mcp and authentication to Bearer with your API key.

Use an API key instead

Any MCP app that lets you add headers works with an API key. Create one under API keys on your account page and send it as Authorization: Bearer (or X-Api-Key).

Authorization: Bearer rbg_your_api_key

What your AI app can do

ToolWhat it does
remove_backgroundRemoves the background from an uploaded image, an image URL or base64 data. Returns a download link (PNG, WebP or JPG) and a preview. Options: a background colour, size and cropping to the subject.
get_jobGets the result of a removal that took longer than a few seconds.
check_creditsShows how many credits are left on your account.

Same credits as the website

Each image costs 1 credit, the same as the API. Failed images are free and credits never expire. New accounts start with 50 free credits.

See credit packs · REST API docs

Questions

Does it cost anything?

Each image the AI app processes uses 1 credit from your account. New accounts get 50 free credits, and credit packs never expire.

Do I need an API key?

No. ChatGPT, Claude, Cursor and VS Code sign in with your removebackground.dev account. An API key is only needed for apps that can't sign in, such as n8n.

What happens to my images?

They are used only to make your cut-out. Uploads and results are deleted after 48 hours, and download links stop working after 24 hours.

How do I disconnect an app?

Each connected app gets its own key, named after the app, under API keys on your account page. Revoke it and the app is disconnected straight away.

Which images work?

JPG, PNG and WebP up to 25 MB. Results are transparent PNG by default, or WebP, or JPG on a background colour you choose.

Try it on the website first

Make an account to connect your AI apps, or drop an image on the homepage to see the result.