Setting up the MCP server with aio mcp install for Claude Code, Codex and Cursor

All in One AIThe aio Command·· 8 views· 3 min read

The MCP server gives your coding agent tools to create images, videos and voice. If you already have aio installed with your key, you do not need to copy anything from the docs: aio mcp install shows the setup for each tool, already with the https://api.mozout.co.mz/mcp address and the mozout-ai name.

The three commands

aio mcp install claude
aio mcp install codex
aio mcp install cursor

Each one shows the command or the config block for that tool, with the key hidden. Use --show-key if you need to see the full key.

In Claude Code

aio shows the claude mcp add command and only runs it if you confirm. With --yes, it runs without asking:

aio mcp install claude --yes

Then check with claude mcp list or, inside Claude Code, with /mcp. The server should show as connected.

In Codex and Cursor

Here aio shows the block to add to the config file: ~/.codex/config.toml in Codex; ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project) in Cursor. In both, the key comes from the AIO_API_KEY variable.

Codex and Cursor do not read the key saved by aio. aio auth login saves it in the settings file of aio itself. The Codex and Cursor block reads the AIO_API_KEY variable, which must exist when the tool opens. Set it and open the tool again.

On Linux and macOS:

export AIO_API_KEY="prod_..."

On Windows, setx AIO_API_KEY "prod_..." saves the variable for the windows you open afterwards. Close the terminal and the tool, then open them again.

In Codex, check with codex mcp list or with /mcp. The block in our docs has tool_timeout_sec = 120, which gives generations time. If the block you copied does not have it, add it to the same section: by default, Codex gives up after 60 seconds (Codex docs). In Cursor, check in the list of MCP servers that the server is enabled and the tools show up (Cursor docs).

Other tools

aio mcp install covers Claude Code, Codex and Cursor. For Windsurf and Cline, see the file for each one. For Claude Desktop, the custom connector. For ChatGPT, the plugin, step by step.

In Claude Code you can also sign in with your account, with no key at all. See the MCP server in Claude Code without a key.

Want images, videos and voice inside your agent? See All in One AI.

See All in One AI

SEE ALSO

The All in One AI MCP server: images, video and voice inside Claude Code, Codex and ChatGPT

The MCP server in Claude Code without a key: signing in with your account

The All in One AI MCP server in Cursor, Windsurf and Cline: the file for each one

The MCP server tools one by one: list_models, generate_image, chat, web_search and others

All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $6.60/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.