Background Removal

by not-lainco.huggingface.not-lain/background-removal

  • Remote endpoint
  • 3 tools
  • MIT

Uptime

Checked  · every day

100%from 4 days of checks

Up without downtime on 4 of 4 days with data.

  • No downtime
  • Degraded
  • Down over 5 minutes
  • No data
  • Not checked yet

Response time

Median 921 ms, slowest 5% 1208 ms for the handshake and the tool list, over 30 days.

1500 ms750 ms0

How far each check got

  • Reached the address 100%
  • Completed the handshake 100%
  • Listed its tools 100%

3 tools at the last answer.

Every day
DayResultChecksMedian
3 Nov (today)No downtime1848 ms
2 NovNo downtime1of 11132 ms
1 NovNo downtime1of 11014 ms
31 OctNo downtime1990 ms

A failure counts as down time only when a second check five minutes later fails too. How we check

Connect to the publisher's own endpoint

Add to config.json in oterm's data folder (~/Library/Application Support/oterm on macOS, ~/.local/share/oterm on Linux, %APPDATA%\oterm on Windows):

{
  "mcpServers": {
    "background-removal": {
      "url": "https://not-lain-background-removal.hf.space/gradio_api/mcp/sse"
    }
  }
}
For agents: the install prompt

Every step above as one Markdown text, for an assistant installing it for you.

# Install the MCP server Background Removal (`co.huggingface.not-lain/background-removal`)

Its page: https://plug.directory/servers/co.huggingface.not-lain/background-removal

It runs on the publisher's servers; the client connects to its URL.

Use the section for the person's client.

## Claude Desktop

Paste into Settings › Connectors › Add custom connector:

```text
https://not-lain-background-removal.hf.space/gradio_api/mcp/sse
```

## Claude Code

Run in a terminal:

```sh
claude mcp add --transport sse background-removal https://not-lain-background-removal.hf.space/gradio_api/mcp/sse
```

## Cursor, Devin Desktop, LM Studio, Gemini CLI, oterm, ECA

Merge into the place for the person's client:

- Cursor: ~/.cursor/mcp.json
- Devin Desktop: ~/.config/devin/mcp_config.json
- LM Studio: mcp.json (Program › Install › Edit mcp.json)
- Gemini CLI: ~/.gemini/settings.json
- oterm: config.json in oterm's data folder (~/Library/Application Support/oterm on macOS, ~/.local/share/oterm on Linux, %APPDATA%\oterm on Windows)
- ECA: ~/.config/eca/config.json (global) or .eca/config.json in the project

```json
{
  "mcpServers": {
    "background-removal": {
      "url": "https://not-lain-background-removal.hf.space/gradio_api/mcp/sse"
    }
  }
}
```

## VS Code

Merge into .vscode/mcp.json:

```json
{
  "servers": {
    "background-removal": {
      "type": "sse",
      "url": "https://not-lain-background-removal.hf.space/gradio_api/mcp/sse"
    }
  }
}
```

## Zed

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## Cline, AnythingLLM, Augment Code

Merge into the place for the person's client:

- Cline: cline_mcp_settings.json (MCP Servers › Configure › Configure MCP Servers)
- AnythingLLM: anythingllm_mcp_servers.json in the AnythingLLM storage plugins directory
- Augment Code: Augment Settings Panel – MCP section – Import from JSON (VS Code extension)

```json
{
  "mcpServers": {
    "background-removal": {
      "type": "sse",
      "url": "https://not-lain-background-removal.hf.space/gradio_api/mcp/sse"
    }
  }
}
```

## Continue

Merge into ~/.continue/config.yaml:

```yaml
mcpServers:
  - name: "background-removal"
    type: sse
    url: "https://not-lain-background-removal.hf.space/gradio_api/mcp/sse"
```

## Goose

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## Codex

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## mcp-client-cli, TUUI, BoltAI, Bob Shell, Kiro, Kiro CLI

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## Agenvoy

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## Amp

Merge into ~/.config/amp/settings.json (user) or .amp/settings.json (workspace):

```json
{
  "amp.mcpServers": {
    "background-removal": {
      "url": "https://not-lain-background-removal.hf.space/gradio_api/mcp/sse"
    }
  }
}
```

Then restart the client, or reload its MCP servers, and ask it to list the server's tools to confirm it started.

Tools 3

  • background_removal_fn Remove the background from an image and return both the transparent version and the original. This function performs background removal using a BiRefNet segmentation model. It is intended for use with image input (either uploaded or from a URL). The function returns a transparent PNG version of the image with the background removed, along with the original RGB version for comparison. Returns: , origin (PIL.Image): The original RGB image, unchanged., processed_image (PIL.Image): The input image with the background removed and transparency applied.
  • background_removal_fn_ Remove the background from an image and return both the transparent version and the original. This function performs background removal using a BiRefNet segmentation model. It is intended for use with image input (either uploaded or from a URL). The function returns a transparent PNG version of the image with the background removed, along with the original RGB version for comparison. Returns: , origin (PIL.Image): The original RGB image, unchanged., processed_image (PIL.Image): The input image with the background removed and transparency applied.
  • background_removal_process_file Load an image file from disk, remove the background, and save the output as a transparent PNG. Returns: Path to the saved PNG image with background removed.

From Hugging Face Spaces. Report a problem