🧩 Connect AI agents (MCP)
Use Claude Code, Claude Desktop, claude.ai, Codex, Cursor, VS Code and other agents to generate images, video, music, speech and chat through Adverra AI Hub — 3 steps: create a key → press your client → use it.
📚 Want to call the API directly from code? API documentation →
🔑 Create an API key (optional — the connect buttons below need no key)
Sign in with Google to create an API key
Sign in with Google🧩 Use via MCP (Model Context Protocol)
Connect the Hub to AI assistants like Claude, Codex, Gemini and Grok so they can generate images, videos, music and speech, or ask other models, right from the chat.
https://adverraai.com/hub/mcp.phpAuthorization: Bearer sk-adv-…Available tools: list_models · get_balance · chat · generate_image · generate_video · generate_music · text_to_speech · get_task
🤖 Use with AI tools
Pick your tool and copy the config (replace sk-adv-YOUR_KEY with your key, or create a key above and it will be filled in).
Just press your client — no API key needed. On first use the client opens the Hub sign-in page; press “Allow” and you are connected (Claude Code / Codex: run the login command shown).
Open a terminal and paste this command, then type /mcp in Claude Code to check the connection.
claude mcp add --transport http adverra-hub https://adverraai.com/hub/mcp.php
Then open Claude Code, type /mcp, pick adverra-hub and choose Authenticate — a browser opens the Hub sign-in; press “Allow” (no key to copy).
Prefer a key instead:
claude mcp add --transport http adverra-hub https://adverraai.com/hub/mcp.php \ --header "Authorization: Bearer sk-adv-YOUR_KEY"
Install as a Claude Code CLI plugin (MCP server + a usage skill). Download the marketplace .zip, unzip, then run these lines; on first use you are sent to the Hub sign-in (OAuth), or set your own key header in .mcp.json.
claude plugin marketplace add ./adverra-hub-marketplace claude plugin install adverra-hub@adverra
Or try it without installing:
claude --plugin-dir ./adverra-hub-marketplace/plugins/adverra-hub⬇ adverra-hub-marketplace.zip
Upload at claude.ai (Upload plugin) — use this single-plugin file; no key needed — you will be sent to the Hub sign-in to press “Allow”.
⬇ adverra-hub-plugin.zipUse the Cursor / VS Code buttons above to install automatically, or paste this into mcp.json (Cursor: ~/.cursor/mcp.json; VS Code: .vscode/mcp.json uses "servers" instead of "mcpServers").
{
"mcpServers": {
"adverra-hub": {
"url": "https://adverraai.com/hub/mcp.php"
}
}
}
No key needed — Cursor / VS Code opens the Hub sign-in on first use (to use a key instead, add "headers": { "Authorization": "Bearer sk-adv-…" }).
For web custom connectors that cannot send headers (claude.ai: Settings → Connectors → Add custom connector; ChatGPT: Developer mode → Connectors). Use this URL, which embeds your key — never share it, and create a dedicated key for it (revocable in Dashboard).
Option 1 (recommended): sign-in (OAuth) — Enter just this URL; when the client opens the sign-in page, log in to the Hub and press “Allow”. No key to copy.
https://adverraai.com/hub/mcp.php
Option 2: URL with embedded key
https://adverraai.com/hub/mcp.php?key=sk-adv-YOUR_KEY
Open Claude Desktop › Settings › Developer › Edit Config and paste into claude_desktop_config.json (Node.js required), then restart Claude Desktop.
{
"mcpServers": {
"adverra-hub": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://adverraai.com/hub/mcp.php",
"--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer sk-adv-YOUR_KEY" }
}
}
}
Add to ~/.codex/config.toml and set ADVERRA_API_KEY before starting Codex · type /mcp to see the tools.
# No key needed (OAuth): codex mcp add adverra-hub --url https://adverraai.com/hub/mcp.php codex mcp login adverra-hub
Or use a key via config.toml:
# ~/.codex/config.toml [mcp_servers.adverra-hub] url = "https://adverraai.com/hub/mcp.php" bearer_token_env_var = "ADVERRA_API_KEY" # or use a single command instead of editing the file: # codex mcp add adverra-hub --url https://adverraai.com/hub/mcp.php --bearer-token-env-var ADVERRA_API_KEY # Optional: let Codex use the Hub’s chat models directly [model_providers.adverra] name = "Adverra AI Hub" base_url = "https://adverraai.com/hub/api/v1" env_key = "ADVERRA_API_KEY" wire_api = "chat"
export ADVERRA_API_KEY="sk-adv-YOUR_KEY" codex
Add to ~/.gemini/settings.json and restart Gemini CLI · type /mcp to check.
// ~/.gemini/settings.json
{
"mcpServers": {
"adverra-hub": {
"httpUrl": "https://adverraai.com/hub/mcp.php",
"headers": { "Authorization": "Bearer sk-adv-YOUR_KEY" }
}
}
}
Add to the tools array of your xAI Responses API request (Grok will call the Hub’s tools itself).
"tools": [{
"type": "mcp",
"server_url": "https://adverraai.com/hub/mcp.php",
"server_label": "adverra-hub",
"authorization": "Bearer sk-adv-YOUR_KEY"
}]
Works with any OpenAI-compatible client such as the OpenAI SDK, Cursor, Cline or LibreChat — set the Base URL and API key like this.
from openai import OpenAI
client = OpenAI(base_url="https://adverraai.com/hub/api/v1", api_key="sk-adv-YOUR_KEY")
r = client.chat.completions.create(model="anthropic/claude-sonnet-5.5",
messages=[{"role": "user", "content": "Hello"}])
print(r.choices[0].message.content)
⚠️ This key spends your credits. Don’t share it, and keep it in an environment variable rather than hard-coding it.