تخطَّ إلى المحتوى
التوثيق:MCP server

البدء

MCP server

Connect ChatGPT, Claude, Claude Code, Cursor or Codex to Minu, and what the assistant can do once it is connected, including tools, permissions, spending and limits.

لم تُترجم هذه الصفحة بعد. تُعرض النسخة الإنجليزية.

The MCP server lets a chat app or a coding agent use Minu for you: it finds a model, tells you the price, generates an image, a video or a song, and shows the result in the conversation. What it generates is charged to the prepaid balance of one organization, at the same prices as the API.

Text
https://mcp.minu.ai/mcp

The server speaks MCP over Streamable HTTP. It covers the models that run through the Task API: image, video and music. Chat, speech and transcription models are not part of it; call those through the OpenAI-compatible endpoints.

Connect an app

Every app below ends on the same Minu page, where you sign in and choose the organization that pays.

Claude

  1. Open Customize, then Connectors, choose Add and then Add custom connector.
  2. Name it Minu, paste the server address and add the connector.
  3. Choose Connect, sign in to Minu and pick the organization.

On a Team or Enterprise plan an owner adds the connector once, under Organization settings, and each member then connects with their own Minu account.

The MCP page has a link that opens Claude with both fields filled in.

ChatGPT

  1. Open Plugins, select the plus button and choose Add custom MCP server.
  2. Name it Minu and paste the server address. Leave authentication on OAuth, accept the warning and create the plugin.
  3. Install the plugin, sign in to Minu and pick the organization. In a chat, type @ and choose Minu.

Claude Code

Shell
claude mcp add --transport http minu https://mcp.minu.ai/mcp

Then type /mcp in Claude Code, choose minu and sign in.

Cursor

Add the server to .cursor/mcp.json in your project, or to the same file in your home folder, then sign in from the MCP section of the Cursor settings.

JSON
{
  "mcpServers": {
    "minu": { "url": "https://mcp.minu.ai/mcp" }
  }
}

Codex

Add the server to ~/.codex/config.toml, then run the sign-in command and finish in the browser that opens.

Text
[mcp_servers.minu]
url = "https://mcp.minu.ai/mcp"
Shell
codex mcp login minu

Any other client

A client that supports remote MCP servers with OAuth needs only the address. The server publishes its OAuth metadata, accepts dynamic client registration and Client ID Metadata Documents, and requires PKCE.

Signing in and permissions

The app opens a Minu page that shows the name the app gives itself, the address your browser returns to, and what the app asks for. You choose one organization: the connection acts for that organization only. To use another one, connect again.

Only organizations where your role is owner, admin or developer are offered, the same roles that may create API keys.

PermissionWhat it allows
minu:readSee models, prices, the balance and earlier generations.
minu:generateGenerate, cancel a generation, and add input files. Generating spends the balance.

A connection never sees API keys, payment details, invoices or team members.

To disconnect, open Settings in the console and find Connected apps. A disconnected app stops working at once. A connection also ends when you leave the organization or your role no longer allows it.

Use an API key instead

An agent or a script that cannot open a browser can send an API key as a bearer token. The limits of the key apply: its allowed models, its IP allowlist and its daily spending cap.

Shell
claude mcp add --transport http minu https://mcp.minu.ai/mcp \
  --header "Authorization: Bearer $MINU_API_KEY"
JSON
{
  "mcpServers": {
    "minu": {
      "url": "https://mcp.minu.ai/mcp",
      "headers": { "Authorization": "Bearer mk_live_…" }
    }
  }
}

Tools

ToolEffectWhat it does
search_modelsReadsFinds models by keyword and kind, with the lowest price of each.
get_modelReadsThe parameters of one model, an example input and its prices.
estimate_costReadsChecks an input and gives its exact price, without charging.
get_accountReadsThe connected organization and its balance.
generateSpends the balanceCreates an image, a video or a song.
get_taskReadsThe status, the results and the cost of one generation.
list_tasksReadsEarlier generations, newest first.
cancel_taskChanges somethingCancels a generation that has not started yet.
import_fileChanges somethingCopies a file from a public link into your Minu storage.
upload_fileChanges somethingLets you choose a picture from your device, in the chat.

Tools that read never charge anything. generate is marked as spending, so ChatGPT and Claude ask for your approval before it runs.

How a generation goes

  1. The assistant looks for a model with search_models and reads its parameters with get_model.
  2. estimate_cost checks the input and gives the exact price. Nothing is charged.
  3. generate creates a task, the same object the API creates. The price is held from the balance, and charged when the result is delivered. A generation that fails is not charged.
  4. An image usually comes back in the same call. A video or a song takes minutes: the call answers after about 40 seconds with the task still running, and the work carries on.

Where the app can show it, the result comes with a card: it shows the image, plays the video or the song, shows the cost and updates itself while a task runs. In an app without cards, ask the assistant for the status and it calls get_task.

Everything made this way is in the console too, under Logs, and counts in Usage.

Input files

A picture, a clip or an audio file given to a model must be in your Minu storage. Three ways to get it there:

  • A result you made earlier. Its URL can be used as it is.
  • A public link. import_file copies the file in and returns its Minu URL. Give a link to the file itself, not to a page that shows it.
  • A picture on your device. upload_file shows a card where you choose a JPEG, PNG or WebP picture. The card makes large pictures smaller before sending them.

Files added this way follow the retention rules of every other file.

Join clips and add audio

Two tools run as models, so the assistant uses them through generate and you can call them through POST /v1/tasks:

ModelInputResult
minu/video-mergevideo_urls: 2 to 10 clips, in orderOne video. Clips of different sizes are fitted to the first one.
minu/video-add-audiovideo_url, audio_url, mode (replace or mix) and volumesThe video with the song or the voice on it.

The clips together may run up to 3 minutes, at up to 1920×1080.

Spending

A connection has no spending limit of its own. ChatGPT and Claude ask before each generation; if you tell the app to always allow it, the assistant can spend up to the available balance of the organization. Keep that balance at an amount you are comfortable with.

A connection made with an API key follows the daily spending cap of that key.

Errors and limits

A tool that cannot do what was asked answers with a code the assistant can act on.

CodeMeaning
insufficient_balanceThe balance does not cover the price. Add funds in the console.
invalid_requestThe input does not fit the model. param names the field.
external_urlA media link points outside Minu. Import the file first.
content_blockedThe prompt was refused by the content filter. Nothing was charged.
insufficient_scopeThe connection does not have the permission the tool needs.
rate_limitedToo many calls. retry_after_seconds says when to try again.

Tool calls count against the rate limit of the organization, like API requests. The limits on running and queued tasks apply as well.

Help

If connecting fails, or a generation does not look right, write to support@minu.ai with the task id (it starts with task_) or the time you tried. To stop an app at once, disconnect it in Settings.