loading…
Search for a command to run...
loading…
Enables AI assistants to remove backgrounds from images using the Poof API via URLs, file paths, or base64 encoding. It also allows users to monitor their accou
Enables AI assistants to remove backgrounds from images using the Poof API via URLs, file paths, or base64 encoding. It also allows users to monitor their account information and remaining credit balance.
MCP (Model Context Protocol) server for the Poof background removal API. Use AI assistants like Claude to remove backgrounds from images.
npm install -g @poof-bg/mcp
Or install locally:
git clone https://github.com/poof-bg/mcp.git
cd mcp
npm install
npm run build
The Poof MCP server can be deployed as a Cloudflare Worker, allowing remote access via HTTP.
Set your Poof API key:
export POOF_API_KEY=your_api_key_here
Get your API key at dash.poof.bg
claude mcp add --transport http poof https://api.poof.bg/mcp
claude mcp add --transport http poof https://api.poof.bg/mcp \
--header "x-api-token: YOUR_POOF_API_KEY"
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"poof": {
"url": "https://api.poof.bg/mcp"
}
}
}
{
"mcpServers": {
"poof": {
"command": "npx",
"args": ["-y", "@poof-bg/mcp"],
"env": {
"POOF_API_KEY": "your_api_key_here"
}
}
}
}
{
"mcpServers": {
"poof": {
"url": "https://api.poof.bg/mcp",
"headers": {
"x-api-token": "YOUR_POOF_API_KEY"
}
}
}
}
Add to .cursor/mcp.json in your project root (or global config):
{
"mcpServers": {
"poof": {
"url": "https://api.poof.bg/mcp"
}
}
}
{
"mcpServers": {
"poof": {
"command": "npx",
"args": ["-y", "@poof-bg/mcp"],
"env": {
"POOF_API_KEY": "your_api_key_here"
}
}
}
}
{
"mcpServers": {
"poof": {
"url": "https://api.poof.bg/mcp",
"headers": {
"x-api-token": "YOUR_POOF_API_KEY"
}
}
}
}
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"poof": {
"serverUrl": "https://api.poof.bg/mcp"
}
}
}
{
"mcpServers": {
"poof": {
"command": "npx",
"args": ["-y", "@poof-bg/mcp"],
"env": {
"POOF_API_KEY": "your_api_key_here"
}
}
}
}
{
"mcpServers": {
"poof": {
"serverUrl": "https://api.poof.bg/mcp",
"headers": {
"x-api-token": "YOUR_POOF_API_KEY"
}
}
}
}
Add to your VS Code settings.json:
{
"mcp": {
"servers": {
"poof": {
"url": "https://api.poof.bg/mcp"
}
}
}
}
{
"mcp": {
"servers": {
"poof": {
"command": "npx",
"args": ["-y", "@poof-bg/mcp"],
"env": {
"POOF_API_KEY": "your_api_key_here"
}
}
}
}
}
{
"mcp": {
"servers": {
"poof": {
"url": "https://api.poof.bg/mcp",
"headers": {
"x-api-token": "YOUR_POOF_API_KEY"
}
}
}
}
}
Open Cline settings and add to the MCP Servers configuration:
{
"poof": {
"url": "https://api.poof.bg/mcp"
}
}
{
"poof": {
"command": "npx",
"args": ["-y", "@poof-bg/mcp"],
"env": {
"POOF_API_KEY": "your_api_key_here"
}
}
}
{
"poof": {
"url": "https://api.poof.bg/mcp",
"headers": {
"x-api-token": "YOUR_POOF_API_KEY"
}
}
}
Remove the background from an image.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
image |
string | Yes | Base64-encoded image or URL to an image |
format |
string | No | Output format: png, jpg, webp (default: png) |
channels |
string | No | Color channels: rgba for transparency, rgb for opaque (default: rgba) |
bg_color |
string | No | Background color when using rgb channels (e.g., #ffffff) |
size |
string | No | Output size: full, preview, small, medium, large (default: full) |
crop |
boolean | No | Crop to subject bounds (default: false) |
Example prompts:
Remove the background from this image: https://example.com/photo.jpg
Remove the background and add a white background instead
Get your account information and credit balance.
Example prompts:
Check my Poof account balance
How many credits do I have left?
Response:
{
"success": true,
"data": {
"organizationId": "org_abc123",
"plan": "Pro",
"maxCredits": 5000,
"usedCredits": 1234,
"remainingCredits": 3766,
"autoRechargeThreshold": 100
}
}
# Install dependencies
npm install
# Build
npm run build
# Run in dev mode (Cloudflare Worker)
npm run dev
# Run locally (stdio mode)
POOF_API_KEY=your_key npm start
# Lint
npm run lint
# Format
npm run format
To deploy the MCP server as a Cloudflare Worker:
# Install Wrangler if you haven't already
npm install -g wrangler
# Login to Cloudflare
wrangler login
# Deploy
wrangler deploy
Set the required environment secrets:
wrangler secret put POOF_API_KEY
wrangler secret put MCP_JWT_SECRET
wrangler secret put COOKIE_ENCRYPTION_KEY
Also set the dashboard URL variable:
wrangler secret put DASHBOARD_URL
You'll also need to create a KV namespace for OAuth state storage and update the IDs in wrangler.toml:
wrangler kv namespace create OAUTH_KV
wrangler kv namespace create OAUTH_KV --preview
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"poof-background-removal-mcp-server": {
"command": "npx",
"args": []
}
}
}