البدء
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.
https://mcp.minu.ai/mcpThe 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
- Open Customize, then Connectors, choose Add and then Add custom connector.
- Name it
Minu, paste the server address and add the connector. - 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
- Open Plugins, select the plus button and choose Add custom MCP server.
- Name it
Minuand paste the server address. Leave authentication on OAuth, accept the warning and create the plugin. - Install the plugin, sign in to Minu and pick the organization. In a chat, type
@and choose Minu.
Claude Code
claude mcp add --transport http minu https://mcp.minu.ai/mcpThen 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.
{
"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.
[mcp_servers.minu]
url = "https://mcp.minu.ai/mcp"codex mcp login minuAny 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.
| Permission | What it allows |
|---|---|
minu:read | See models, prices, the balance and earlier generations. |
minu:generate | Generate, 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.
claude mcp add --transport http minu https://mcp.minu.ai/mcp \
--header "Authorization: Bearer $MINU_API_KEY"{
"mcpServers": {
"minu": {
"url": "https://mcp.minu.ai/mcp",
"headers": { "Authorization": "Bearer mk_live_…" }
}
}
}Tools
| Tool | Effect | What it does |
|---|---|---|
search_models | Reads | Finds models by keyword and kind, with the lowest price of each. |
get_model | Reads | The parameters of one model, an example input and its prices. |
estimate_cost | Reads | Checks an input and gives its exact price, without charging. |
get_account | Reads | The connected organization and its balance. |
generate | Spends the balance | Creates an image, a video or a song. |
get_task | Reads | The status, the results and the cost of one generation. |
list_tasks | Reads | Earlier generations, newest first. |
cancel_task | Changes something | Cancels a generation that has not started yet. |
import_file | Changes something | Copies a file from a public link into your Minu storage. |
upload_file | Changes something | Lets 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
- The assistant looks for a model with
search_modelsand reads its parameters withget_model. estimate_costchecks the input and gives the exact price. Nothing is charged.generatecreates 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.- 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_filecopies 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_fileshows 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:
| Model | Input | Result |
|---|---|---|
minu/video-merge | video_urls: 2 to 10 clips, in order | One video. Clips of different sizes are fitted to the first one. |
minu/video-add-audio | video_url, audio_url, mode (replace or mix) and volumes | The 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.
| Code | Meaning |
|---|---|
insufficient_balance | The balance does not cover the price. Add funds in the console. |
invalid_request | The input does not fit the model. param names the field. |
external_url | A media link points outside Minu. Import the file first. |
content_blocked | The prompt was refused by the content filter. Nothing was charged. |
insufficient_scope | The connection does not have the permission the tool needs. |
rate_limited | Too 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.