# Pixelbin MCP

```json
{
  "name": "Pixelbin MCP",
  "slug": "pixelbin_mcp",
  "url": "https://composio.dev/toolkits/pixelbin_mcp",
  "markdown_url": "https://composio.dev/toolkits/pixelbin_mcp.md",
  "logo_url": "https://logos.composio.dev/api/pixelbin",
  "categories": [
    "design & creative tools"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-29T05:41:20.031Z"
}
```

![Pixelbin MCP logo](https://logos.composio.dev/api/pixelbin)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Pixelbin MCP or direct API to remove backgrounds, upscale media, edit images and videos, and manage stored assets through natural language.

## Summary

Pixelbin MCP is a hosted MCP server for PixelBin's image, video, and asset management platform.
It gives AI clients a simple, secure way to access PixelBin tools.

## Categories

- design & creative tools

## Toolkit Details

- Tools: 7

## Images

- Logo: https://logos.composio.dev/api/pixelbin

## Authentication

- **Dcr Oauth**
  - Type: `custom`
  - Description: Dcr Oauth authentication for Pixelbin MCP.
  - Setup:
    - Configure Dcr Oauth credentials for Pixelbin MCP.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Remove backgrounds from my product photos
- Upscale this image for print quality
- Find assets stored in my PixelBin library

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `PIXELBIN_MCP_CREATE_PREDICTION` | Create prediction | Start a PixelBin prediction (e.g. background removal, upscaling, watermark removal, image-to-video, image generation). DO NOT call this without first calling estimate-prediction-cost, presenting the credit cost to the user, getting explicit confirmation, AND passing the returned `confirmation_token` here verbatim — calls without a valid token are rejected server-side. The token is bound to plugin/operation/input; if any of those changes, re-run estimate-prediction-cost. **Image / video / PDF inputs MUST be public HTTPS URLs.** Raw bytes, base64, and data URLs are NOT supported on this tool — they fail across MCP clients due to envelope-size limits. To obtain a URL when the user has a local file: • **If you have shell access (Claude Desktop, Claude Code CLI, Codex CLI, Cursor, or anything that can run `curl`):** call `request-upload-url` first, then ask the user for the absolute local path to their file, run the curl command from `request-upload-url`'s response with that path, and pass the resulting `hostedUrl` into `input` here. This is the primary path. • **If you DO NOT have shell access (claude.ai web, ChatGPT web, or any sandboxed runtime):** ask the user to either (1) upload the file to their PixelBin Console at https://console.pixelbin.io/?redirectTo=storage (deep-links straight to the Storage page) and paste back the resulting URL, or (2) paste a public URL of the image (e.g. a Google Drive / Dropbox / Imgur public link). Then pass that URL into `input` here. Do NOT try to upload from a Python sandbox — sandbox network allowlists block cloud-storage hosts. Required input fields are validated server-side and missing ones return a clear error — ask the user for the value rather than substituting one. For OPTIONAL input fields (e.g. output_resolution, seed, style, aspect_ratio): inspect the operation's schema via list-predictions(include_schema=true), surface the optional fields the user has not specified, and ASK whether they want to set any of those before calling — do not silently fill optional fields without asking. Async: returns immediately with a workflow id and status=ACCEPTED. Poll with get-prediction. |
| `PIXELBIN_MCP_ESTIMATE_PREDICTION_COST` | Estimate prediction cost | Estimate the credits a PixelBin prediction will consume BEFORE running it. ALWAYS call this first for any create-prediction request. Returns creditsPerOperation, totalCredits, AND a `confirmation_token` that create-prediction REQUIRES. Present the credit cost to the user; once they confirm, pass `confirmation_token` (verbatim) into create-prediction. The token is bound to plugin/operation/input — if the user changes their mind about any of those, re-run estimate-prediction-cost to get a fresh token. For fixed-cost plugins, 'inputs' may be omitted; for plugins where cost depends on the input (e.g. video duration, page count), pass the same 'inputs' you would pass to create-prediction.input so the token's input-hash matches. |
| `PIXELBIN_MCP_GET_PREDICTION` | Get prediction | Poll a PixelBin prediction by id. Returns status (ACCEPTED/RUNNING/SUCCESS/FAILURE) and, on SUCCESS, the result URL(s) as text plus one resource_link content block per output. The result URL is hosted for ~30 days; if the user wants it permanently, call save-prediction-to-storage with the prediction id. Surface the URL and the retention notice to the user. |
| `PIXELBIN_MCP_LIST_PREDICTIONS` | List predictions | List PixelBin prediction plugins/operations available to call. Returns a flat catalog (`items`), a per-category grouping (`byCategory`), and the curated recommendations map (`recommendations`). Each item carries `displayName`, `dotForm` (`plugin.operation`, what create-prediction expects), `categories`, and `minCredits`/`maxCredits` (the range; equal when the plugin is fixed-cost). When the user's intent maps to a category in `byCategory`, present **every** option in that category to the user with its credit cost (e.g. `nanoBananaPro.generate (Nano Banana Pro) — 2 cr`), call out the recommended one, and ASK which one to use before calling create-prediction. Use public HTTPS URLs for image/video/PDF inputs to create-prediction. Inline data URLs, base64, and raw file bytes are not supported by this MCP workflow. |
| `PIXELBIN_MCP_REQUEST_UPLOAD_URL` | Request upload url | Mint a presigned PUT URL so the user's local file can be uploaded to PixelBin storage and used as input to a prediction. Returns `uploadUrl` (the GCS-signed PUT endpoint), `headers` (HTTP headers the PUT must include), a copy-paste curl command, and `hostedUrl` — the public `cdn.pixelbin.io/v2/...` URL the asset is reachable at once the PUT returns 200. **This tool is for LOCAL FILES ON DISK only — when the user has the bytes on their machine and you have a shell/bash/`curl` tool available.** If the user instead has a public URL of the asset, do NOT use this tool — call `upload-asset-from-url` instead, which has PixelBin fetch the URL server-side (no shell, no credentials, no bytes through chat). **Decision rule for upload tools (read first):** - User has a **public URL** (CDN, CloudFront, Drive/Dropbox public, an upstream model's delivery URL): call `upload-asset-from-url` and skip this tool entirely. - User has a **prediction_id** from an MCP `create-prediction` call: call `save-prediction-to-storage`. - User has a **local file on disk** AND you have a shell/bash tool: use this tool, follow the flow below. - User attached the file **inline** (drag-drop / paste) and you have **no** shell tool: ask the user for a public URL (then call `upload-asset-from-url`) or for a local path you can curl from. **Required flow when you have shell access and the user has a local file:** 1. If the user attached the file inline, you cannot read its bytes from your multimodal context — but you can still upload it via this tool. **Ask the user for the absolute local path** (e.g. "What's the absolute path of `wolf.jpg` on your disk? — something like `/Users/you/Pictures/wolf.jpg`"). Do NOT skip this step. 2. Once you have a path, call this tool with just the filename (e.g. `wolf.jpg`). 3. Use your shell tool to execute the returned `curl` command (it's a `PUT` with `--data-binary` and the headers from the response), substituting the user's actual path for `/path/to/`. 4. After the PUT returns HTTP 200, take the returned `hostedUrl` (the `cdn.pixelbin.io/v2/...` URL) and pass it to `create-prediction.input.image` (or whatever field the chosen operation expects). The raw GCS/S3 presigned URL is **not public** and must not be used as a prediction input. **Sandboxed web runtimes (claude.ai web, ChatGPT web)** typically block outbound calls to cloud-storage hosts, so the PUT step will fail. In those runtimes, ask the user to upload at https://console.pixelbin.io/?redirectTo=storage (deep-links straight to the Storage page) and paste back the public URL, then use `upload-asset-from-url` (or pass the URL directly to `create-prediction`). v1 supports image (jpg/jpeg/png/webp/avif/gif/bmp/tiff/tif/heic/heif), video (mp4/webm/mov/avi/mkv/mpeg/mpg), and pdf formats. |
| `PIXELBIN_MCP_SAVE_PREDICTION_TO_STORAGE` | Save prediction to storage | Persist a prediction's output to the user's PixelBin storage so the URL stops expiring after ~30 days. Takes a `prediction_id`, fetches the prediction's result URL(s), and registers each one as a permanent asset via PixelBin's URL ingest. Returns the resulting permanent `cdn.pixelbin.io/v2/...` URLs. Only works for SUCCESS predictions. Use this when the user asks to keep / save / archive a result that an MCP `create-prediction` call has just returned. **Decision rule for upload/persist tools:** - User has a **prediction_id** from an MCP `create-prediction` call → use **this tool**. - User has a **public URL** that didn't come from an MCP prediction (e.g. an upstream model delivery URL, a Drive link, a screenshot URL): use `upload-asset-from-url`. Do NOT ask for credentials or write a script — `upload-asset-from-url` does the same server-side ingest this tool does, just for arbitrary URLs. - User has a **local file on disk** and you have shell access: use `request-upload-url` (presigned PUT + curl). |
| `PIXELBIN_MCP_UPLOAD_ASSET_FROM_URL` | Upload asset from url | Ingest a publicly-reachable URL into the user's PixelBin storage. PixelBin fetches the bytes server-side and registers the asset, returning a permanent `cdn.pixelbin.io/v2/...` URL that does NOT expire. **Decision rule for upload tools — read this before choosing:** - The user has a **public URL** (CloudFront, S3 public, Drive/Dropbox set to public, an upstream model's delivery URL): use **this tool**. PixelBin pulls it server-side; no credentials, no shell, no bytes through chat. - The user has a **prediction_id** from an MCP `create-prediction` call: use `save-prediction-to-storage` instead — it specialises for prediction outputs and walks the output array. - The user has a **local file on disk** and you have shell/bash tools available: use `request-upload-url` (it returns a presigned URL + curl snippet for you to PUT bytes from the local path). - The user attached the file inline (drag-drop, paste) and you have NO shell tool: ask for a public URL or for a local path you can use with `request-upload-url`. Returns the permanent `hostedUrl`, `fileId`, and `assetId`. Validates the URL is http/https and not localhost. v1 supports image (jpg/jpeg/png/webp/avif/gif/bmp/tiff/tif/heic/heif), video (mp4/webm/mov/avi/mkv/mpeg/mpg), and pdf. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to Pixelbin MCP
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["pixelbin_mcp"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["pixelbin_mcp"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run Pixelbin MCP tools with your agent

Send a request, execute the Pixelbin MCP tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Remove the background from the image at https://example.com/product-photo.jpg and save the edited asset in PixelBin storage."}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Remove the background from the image at https://example.com/product-photo.jpg and save the edited asset in PixelBin storage." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to Pixelbin MCP and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["pixelbin_mcp"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["pixelbin_mcp"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a Pixelbin MCP request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to Pixelbin MCP tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Remove the background from the image at https://example.com/product-photo.jpg and save the edited asset in PixelBin storage.")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Remove the background from the image at https://example.com/product-photo.jpg and save the edited asset in PixelBin storage.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native Pixelbin MCP Integration

- Supports both Pixelbin MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable image, video, and asset tool execution
- Rich coverage for transforming media and managing PixelBin storage

### 2. Managed Auth

- Built-in OAuth handling with automatic token refresh and rotation
- Central place to manage, scope, and revoke Pixelbin MCP access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access Pixelbin MCP
- Scoped, least privilege access to Pixelbin MCP resources
- Full audit trail of agent actions to support review and compliance

## Use Pixelbin MCP with any AI Agent Framework

Choose a framework you want to connect Pixelbin MCP with:

- [ChatGPT](https://composio.dev/toolkits/pixelbin_mcp/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/pixelbin_mcp/framework/claude-cowork)

## Related Toolkits

- [Figma](https://composio.dev/toolkits/figma) - Figma is a collaborative interface design tool for teams and individuals. It streamlines design workflows with real-time collaboration and easy sharing.
- [Abyssale](https://composio.dev/toolkits/abyssale) - Abyssale is a creative automation platform for generating images, videos, GIFs, PDFs, and HTML5 content programmatically. It streamlines and scales visual content production for marketing, design, and operations teams.
- [Alttext ai](https://composio.dev/toolkits/alttext_ai) - AltText.ai is a service that generates alt text for images automatically. It helps boost accessibility and SEO for your visual content.
- [Are.na](https://composio.dev/toolkits/arena) - Are.na is a creative research platform for collecting images, links, notes, and ideas in channels. Use it to organize inspiration, build knowledge maps, and connect research across projects.
- [Bannerbear](https://composio.dev/toolkits/bannerbear) - Bannerbear is an API-driven platform for generating images and videos automatically at scale. It helps businesses create custom graphics, social visuals, and marketing assets using powerful templates.
- [Bannerbite](https://composio.dev/toolkits/bannerbite) - Bannerbite is a creative automation platform for generating images and videos from reusable projects and templates. It helps teams produce on-brand visual assets faster without rebuilding designs from scratch.
- [BeatAPI](https://composio.dev/toolkits/beatapi) - BeatAPI is an asynchronous API platform for AI image, video, and music workflows. It enables scalable generation, video analysis, uploads, and ecommerce video pipelines.
- [Builder.io](https://composio.dev/toolkits/builder_io) - Builder.io is a visual development platform for managing content, models, assets, and Space configuration. Use it to ship editable digital experiences faster without waiting on every code change.
- [Canva](https://composio.dev/toolkits/canva) - Canva is a drag-and-drop design suite for creating professional graphics, presentations, and marketing materials. It makes it easy for anyone to design with beautiful templates and a vast library of elements.
- [Canva MCP](https://composio.dev/toolkits/canva_mcp) - Canva MCP is Canva's remote MCP server for accessing designs and content. It centralizes design assets and enables programmatic design workflows.
- [Claid ai](https://composio.dev/toolkits/claid_ai) - Claid.ai delivers AI-driven image editing APIs for tasks like background removal, upscaling, and color correction. It helps automate and enhance image workflows with powerful, developer-friendly tools.
- [Cloudinary](https://composio.dev/toolkits/cloudinary) - Cloudinary is a cloud-based platform for managing, uploading, and transforming images and videos. It streamlines media workflows and delivers optimized assets globally.
- [Clueso MCP](https://composio.dev/toolkits/clueso_mcp) - Clueso is a product video and documentation platform for creating polished visual content. It brings video editing, voiceovers, captions, animations, and exports into one hosted workspace.
- [Contentdrips](https://composio.dev/toolkits/contentdrips) - Contentdrips is an asynchronous rendering API for branded graphics and carousels. It turns reusable templates into on-brand social visuals at scale.
- [Creatomate](https://composio.dev/toolkits/creatomate) - Creatomate is an API for generating automated videos, images, GIFs, and reusable media templates. Use it to turn structured data into polished visual content at scale.
- [Creatomate MCP](https://composio.dev/toolkits/creatomate_mcp) - Creatomate is a hosted video and image generation platform for creating dynamic media from reusable templates. It helps teams automate branded content production without building a rendering pipeline.
- [Cults](https://composio.dev/toolkits/cults) - Cults is a digital marketplace for 3D printing models, connecting designers and makers. It lets creators share, sell, and discover a huge variety of printable designs easily.
- [DeepImage](https://composio.dev/toolkits/deepimage) - DeepImage is an AI-powered image enhancer and upscaler. Get higher-quality images with just a few clicks.
- [Details MCP](https://composio.dev/toolkits/details_mcp) - Details MCP is a curated library of web design references and paste-ready Vault code. It helps teams quickly find polished transitions, buttons, and page sections.
- [Dreamstudio](https://composio.dev/toolkits/dreamstudio) - DreamStudio is Stability AI’s platform for generating and editing images with AI. It lets you easily turn ideas into stunning visuals, fast.

## Frequently Asked Questions

### Do I need my own developer credentials to use Pixelbin MCP with Composio?

Yes, Pixelbin MCP requires you to configure your own DCR OAuth credentials. Once set up, Composio handles secure credential storage and management for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
