Imgix MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Imgix MCP or direct API to optimize images, generate thumbnails, apply transformations, and analyze image metadata through natural language.

Imgix logoImgix
Api Key

Imgix is a real-time image processing and delivery service for developers. It helps you optimize, transform, and deliver images efficiently at any scale.

53 Tools

Try Imgix now

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

TOOL ROUTER PLAYGROUND
Imgix
Try asking
TOOLS

Supported Tools

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

IMGIX_ADD_ASSET_FROM_ORIGIN

Tool to queue a path from your origin to be added to the Asset Manager.

Imgix Auto Optimization

Apply automatic image optimizations using imgix's auto parameter.

Blend Overlay

Tool to overlay an image, text, or color onto a base image using imgix blending parameters.

Imgix Blend Align

Tool to align the overlay relative to the base image when blending.

Blend Color Over Image

Tool to blend a solid color over an image using CSS keyword or hex.

Imgix Blend X Position

Position an overlay image horizontally on a base image using imgix's blend-x parameter.

Draw Image Border

Tool to draw a border around an image.

Adjust Image Brightness

Tool to adjust image brightness.

IMGIX_CANCEL_UPLOAD_SESSION

Tool to cancel an Imgix Asset Manager upload session.

IMGIX_CH

Tool to opt in to Client Hints.

IMGIX_CLOSE_UPLOAD_SESSION

Tool to close an Imgix Asset Manager upload session after the client uploads to the presigned URL.

Adjust Image Contrast

Tool to adjust image contrast.

IMGIX_CREATE_IMGIX_SOURCE

Tool to create and deploy a new imgix Source.

IMGIX_CREATE_UPLOAD_SESSION

Tool to create an Imgix Asset Manager upload session and return a presigned URL for client-side upload.

IMGIX_CS

Tool to set or strip output color space/profile on an Imgix image.

IMGIX_DL

Download an asset from an Imgix source with optional custom filename.

Adjust Image DPI

Tool to embed DPI (dots-per-inch) metadata for print output on an Imgix-rendered image.

Set Device Pixel Ratio

Tool to set device pixel ratio for an Imgix image.

Imgix URL Expiration

Tool to append an expiration parameter to an Imgix URL so it returns 404 after a given time.

IMGIX_FIT

Tool to control how an image fits target dimensions after resizing.

IMGIX_FM

Tool to choose output file format for the rendered asset.

Force Aspect Ratio

Tool to force a target aspect ratio on an Imgix image.

IMGIX_GET_SOURCE

Tool to retrieve details for a single imgix Source by its ID.

IMGIX_GET_UPLOAD_SESSION_STATUS

Tool to retrieve the status of an Imgix Asset Manager upload session.

IMGIX_H

Tool to set output image height in pixels or as a ratio of the source height.

Adjust Image Highlights

Tool to adjust highlight tonal mapping (−100 to 0).

IMGIX_LIST_ASSETS

Tool to retrieve a paginated list of assets in an imgix Source.

IMGIX_LIST_REPORTS

Tool to retrieve a list of all available reports for your imgix account.

IMGIX_LIST_SOURCES

Tool to list all Sources for an account.

Set Watermark Base URL

Tool to set the base URL prepended to the watermark image path.

Watermark Fit Mode

Tool to set how a watermark fits its target dimensions.

Imgix Mark Height

Tool to set watermark height on an Imgix URL in pixels or as a ratio of the watermark source.

IMGIX_MARK_PAD

Tool to set pixel padding between a watermark and the image edge or between tiled watermarks.

Watermark Width

Tool to set watermark width.

IMGIX_MASK

Tool to apply a mask to an image.

IMGIX_MAX_H

Constrain the maximum height of an imgix image.

IMGIX_MAX_W

Tool to set the maximum output width on an Imgix URL.

IMGIX_PALETTE

Tool to extract a color palette from an image in CSS or JSON form.

Set CSS Palette Prefix

Tool to set class-name prefix for CSS palette output.

IMGIX_PURGE_ASSET

Tool to purge an asset from the imgix cache.

Set Output Quality

Tool to set output quality for lossy formats.

IMGIX_RECT

Tool to select a source-image rectangle region in Imgix before other resizing.

Imgix Rotate

Tool to rotate an image on Imgix.

IMGIX_ROT_TYPE

Tool to control rotation behavior when `rot` is applied.

Text Overlay

Tool to render a single-line UTF-8 text overlay on an image.

IMGIX_TXT_ALIGN

Tool to align a text overlay on an Imgix image.

Set Text Color

Tool to set text overlay color on an Imgix image.

Set Text Font

Tool to choose font family/style for overlay text.

Set Text Outline Width

Tool to set outline width around overlay text.

Text Outline Color

Apply an outline color to text overlays on Imgix images.

IMGIX_TXT_SHAD

Set text shadow strength for imgix text overlays.

IMGIX_TXT_SIZE

Tool to set text font size in pixels.

IMGIX_UPDATE_SOURCE

Tool to update an existing imgix Source.

SETUP GUIDE

Connect Imgix MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK and Claude Agent SDK
2

Create Tool Router Session

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

const composio = new Composio({ apiKey: 'your-api-key' });

console.log("Creating Tool Router session...");
const { mcp } = await composio.create('your-user-id');
console.log(`Tool Router session created: ${mcp.url}`);
Initialize the Composio client and create a Tool Router session
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText, stepCountIs } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: mcp.url,
    headers: { 'x-api-key': 'your-composio-api-key' }
  }
});

const tools = await client.tools();

const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{ role: 'user', content: 'Extract main color palette from this image URL: https://assets.imgix.net/examples/kingfisher.jpg' }],
  stopWhen: stepCountIs( 5 )
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent
SETUP GUIDE

Connect Imgix API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

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

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute Imgix Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'Extract a five-color palette from this product image URL'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute Imgix actions with your Agent

Why Use Composio?

AI Native Imgix Integration

  • Supports both Imgix MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Imgix data

Managed Auth

  • Built-in API key management for Imgix
  • Central place to manage, scope, and revoke Imgix access
  • Per user and per environment credentials instead of hard-coded keys

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

Enterprise Grade Security

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

Frequently asked questions

Yes, Imgix requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

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

Start with Imgix.It takes 30 seconds.

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

Start building