How to connect AI/ML API MCP to Claude

Connect Claude Web, Desktop and Cowork to AI/ML API MCP. Compare ai models for a coding task, run ocr on this scanned invoice, and more using natural language, with authentication handled for you.

AI/ML API MCP logoAI/ML API MCP
Dcr Oauth

AI/ML API MCP is a unified gateway to hundreds of AI models and generation APIs. It gives teams one place to compare models, run multimodal jobs, and track usage.

25 Tools

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your AI/ML API account to Claude via Composio Connect, enabling it to compare AI models for a coding task, run OCR on this scanned invoice, check your AI model usage and balance, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate AI/ML API MCP with

Connecting AI/ML API to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your AI/ML API account

Back in Claude, ask it to connect to AI/ML API or give it any AI/ML API-related task.

For example, ask Claude to:

  • "Compare AI models for a coding task"
  • "Run OCR on this scanned invoice"
  • "Check your AI model usage and balance"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your AI/ML API account is ready to use.

What is the AI/ML API Claude Connector, and what's possible with it?

The AI/ML API MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your AI/ML API account. It provides structured and secure access to AI models, generation tools, model comparisons, external agent tools, and account usage details, so your agent can find suitable models, compare pricing and performance, generate content, run external tools, and monitor jobs on your behalf.

  • Model discovery and comparison: Have your agent search the model catalog, inspect capabilities, find the cheapest or fastest options, and compare up to ten models by price and recent performance.
  • Multimodal AI generation: Direct your agent to chat with language models, create embeddings, generate or edit images, produce videos and music, convert text to speech, transcribe audio, or extract text from scanned documents.
  • Generation job tracking: Let the agent check the status of video, audio, speech, and transcription jobs, then retrieve their results when they are ready.
  • External tool discovery and execution: Instruct your agent to search for available tools such as web research, page extraction, social media, maps, and SEO services, inspect their requirements, and run them for a specific task.
  • Account monitoring: Have your agent check the AI/ML API account balance, review spending and usage limits, and confirm that the MCP server accepts your API key.

Troubleshooting

1. Why does Claude not use the Composio connector for AI/ML API?

The connector can show as connected, but Claude must use it in each AI/ML API conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to AI/ML API again.

2. Why does Claude show an MCP server error before AI/ML API connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for AI/ML API.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect AI/ML API.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the AI/ML API authorization link not work?

The Composio connector is one server. Your AI/ML API account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the AI/ML API connection.
  • Composio creates a fresh AI/ML API authorization link.
  • Open that link in your browser and finish the AI/ML API sign-in.

4. Why do AI/ML API actions fail after they worked before?

The AI/ML API connection can expire or lose permission.

  • Ask Claude to inspect the AI/ML API connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the AI/ML API account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in AI/ML API.
  • If the action still fails with a permission error, check that the connected account has that permission in AI/ML API itself.

5. How do I switch to a different AI/ML API account?

Claude can manage the AI/ML API connection for you.

  • Ask Claude to disconnect or delete the current AI/ML API account.
  • Ask Claude to connect AI/ML API again.
  • Open the new Composio authorization link for AI/ML API.
  • Sign in with the other AI/ML API account in the browser.
  • After the account connects, ask Claude to retry the AI/ML API task.

6. Why is my AI/ML API connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your AI/ML API connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If AI/ML API tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect AI/ML API.
TOOLS

Supported Tools

Every AI/ML API MCP action and event your agent gets out of the box.

Account balance

Get the balance of the AIMLAPI account that owns this API key, and whether it is running low.

Account usage

Get this API key's spending and the spending limit set on it, if any, with what is left of the limit.

Audio generate

Start generating music — a song with or without lyrics, or an instrumental — from a text prompt with an AIMLAPI music model.

Document ocr

Read the text of a scanned document or an image (OCR) with an AIMLAPI OCR model.

Embeddings create

Turn text into embedding vectors (lists of numbers that capture its meaning) with an AIMLAPI embedding model, for semantic search, retrieval, clustering or deduplication.

Image edit

Edit images with an OpenAI gpt-image or xAI grok-imagine model: give the images by URL and describe the change.

Image generate

Generate images from a text prompt — or edit an image, or turn one into a 3D model, with a model that does that (the input image goes in `params`) — with an AIMLAPI image model.

Jev model search

Find the right AI model for a task described in plain words — chat and coding LLMs, image generation or editing, video, text-to-speech, speech-to-text, music, embeddings, OCR, 3D, classification — ranked by Jev (TypeSafe Jev, an AI model that judges how well each model in the AIMLAPI catalog fits the task).

Jev tool search

Find an API tool for a task described in plain words — web search, reading or scraping a web page, social media (X, Instagram, TikTok, Reddit, YouTube, Facebook, LinkedIn), maps and place reviews, SEO, stocks and crypto data, company data, jobs, real estate, weather, image tools and more — ranked by Jev (TypeSafe Jev, an AI model that judges how well each Agent Tool in the AIMLAPI catalog fits the task).

Job result

Get the output of a job.

Job status

Check how a generation job is going, without fetching its output.

Llm chat

Get a reply from any AIMLAPI language model (the `model` parameter selects it) to a list of chat messages: text, code, reasoning, image understanding for vision models, and function calling with your own `tools`.

Model get

Get everything about one model, by id or alias: capabilities, input and output modalities, limits, the complete price list and recent performance metrics.

Models compare

Compare 2–10 models side by side: capabilities, the full price list and recent performance metrics of each.

Models find best

Rank models by a single objective — the cheapest (optimize_for 'cheapest', by comparable price) or the fastest ('fastest', by median latency over recent traffic) — and return the top few.

Models list

Browse the AIMLAPI model catalog: all models, or those matching filters (modality, maximum price, minimum context window, required capabilities), sorted by id and paginated.

Models search

Find AIMLAPI models whose id, aliases, name, description or tags contain a keyword (case-insensitive substring), optionally narrowed by the same filters as models_list.

Ping

Check that the AIMLAPI MCP server is reachable and accepts your API key.

Speech generate

Read a text aloud with an AIMLAPI text-to-speech model and get a link to the audio file.

Speech transcribe

Start transcribing a recording (speech to text) with an AIMLAPI speech-to-text model, from a URL the platform downloads.

Tools inspect

Get one Agent Tool by id (from tools_search or jev_tool_search): its input schema, description, current price and health.

Tools run

Run an Agent Tool by id with its `input`, built from the inputSchema that tools_inspect returns.

Tools run status

Check a run started by tools_run, by its `run_id`.

Tools search

Search the AIMLAPI Agent Tools catalog for external tools that do what the query describes: web and news search, web page scraping and content extraction (read a URL), social media (Reddit, X, TikTok, YouTube, Instagram and more), company data, places and maps, and other data APIs.

Video generate

Start generating a video from a text prompt — or from an image, with an image-to-video model — with an AIMLAPI video model.

FRAMEWORKS

How to build AI/ML API MCP Agent with another framework

FAQ

Frequently asked questions

Start with AI/ML API MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every AI/ML API MCP tool your agent needs.Free to start.

Start building