Fotor MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Fotor MCP or direct API to generate media, edit images, upscale photos, remove backgrounds, and track tasks through natural language.

Fotor MCP logoFotor MCP
Dcr Oauth

Fotor MCP is Fotor's hosted AI media server for generating and editing images, video, speech, and music. It also provides image upscaling, background removal, task status, and credit checks through one MCP connection.

19 Tools

Try Fotor MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Fotor MCP
Try asking
TOOLS

Supported Tools

Every Fotor MCP action and event your agent gets out of the box.

Get credits

Reads the current account's available Fotor credit balance.

Get task

Check an image, video, audio or image-processing task once.

Get upload url

Get a temporary upload URL for a local image, video or audio file.

Get website url

Get a one-time signed-in link to the configured Fotor website.

List models

Discover models and supported parameters before generation.

Submit audio separation task

Separates vocals and accompaniment.

Submit audio track task

Starts one Fotor audio track generation task.

Submit background removal task

Starts one Fotor background removal task that returns a transparent image.

Submit first frame video task

Starts one Fotor video generation task from a first-frame image, using the source image ratio.

Submit first last frame video task

Starts one Fotor video generation task from first and last frames, using the source image ratio.

Submit image task

Starts one Fotor image generation or editing task at native resolution.

Submit image upscale task

Starts one Fotor image upscaling task.

Submit multimodal video task

Starts one Fotor video generation task using image, video or audio references.

Submit song edit task

Starts one Fotor song extension, remix or local edit task.

Submit soundtrack task

Starts one Fotor soundtrack task from an image or video.

Submit speech task

Generates Fotor speech or a scripted podcast with built-in voices.

Submit text to video task

Starts one Fotor text-to-video generation task.

Submit video edit task

Edits a source video using instructions and optional image/audio references.

Submit video recreation task

Starts one video recreation task using a source video and one or more reference images.

SETUP GUIDE

Connect Fotor MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

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

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["fotor_mcp"],
  mcp: true,
});
Create a session scoped to Fotor MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

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: "Generate a square product image of a blue ceramic mug on a white background.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Fotor MCP request
SETUP GUIDE

Connect Fotor MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

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: ["fotor_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Fotor MCP
3

Run Fotor MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Generate a square product image of a blue ceramic mug on a white background." }],
});

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);
Send a request, execute the Fotor MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native Fotor MCP Integration

  • Supports Fotor MCP and direct API-based integrations for AI media workflows
  • Structured, LLM-friendly schemas for image, video, speech, and music generation
  • Tools cover image editing, upscaling, background removal, task status, and credit checks

Managed Auth

  • Connect Fotor MCP with OAuth credentials without wiring authentication into every agent
  • Central place to manage, scope, and revoke Fotor MCP access
  • Per-user and per-environment credentials instead of hard-coded secrets

Agent Optimized Design

  • Tools use clear schemas that help agents select the right Fotor operation
  • Long-running media jobs can be checked through task status tools
  • Comprehensive execution logs show what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC helps control which agents and users can access Fotor MCP
  • Scoped, least-privilege access to Fotor media generation and editing tools
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use Fotor MCP with any AI Agent Framework

Choose a Framework you want to connect Fotor MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Fotor MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Fotor MCP tool your agent needs.Free to start.

Start building