MachGen MCP server for AI agents

Live

OAUTH 2.1

AI MEDIA GENERATION

AI

MachGen MCP gives your agent AI media generation in your MachGen account: generate images, video, and audio, edit images, upscale and clip videos, and check prices and balance before you spend.

  • Per-user credentials: each call uses the actual user's token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
MachGen MCP
agent · Acme Q3
Run
Which models can I use to generate images?
S
machgenmcp_list_models
240ms
Media generation agent
Your account can use 6 image models. The list shows each model's output sizes and aspect ratios so the agent can pick one that fits.
Sources: MachGen models, 6 image models
machgenmcp
6 models
18:29
Message Claude...

Tools your AI media generation agent reaches for on MachGen MCP, scoped per user.

CALL ANY TOOL
21 tools for AI media generation in MachGen MCP: generate images, video, and audio, edit images, upscale and clip videos, upload and download assets, and check prices, tasks, and balance.
machgenmcp_check_balance
Check balance
Check the calling account's current spendable balance. The API key identifies exactly one account, so no account needs naming.
Parameters
Name
Type
Required
Description
—
No parameters required
machgenmcp_complete_upload
Upload complete
machgenmcp_create_asset_link
Create asset link
machgenmcp_create_upload
Upload create
machgenmcp_download_asset
Download asset
machgenmcp_edit_image
Edit image
machgenmcp_extract_video_clip
Extract video clip
machgenmcp_generate_audio
Generate audio
machgenmcp_generate_image
Generate image
machgenmcp_generate_video
Generate video
machgenmcp_get_asset
Get asset
machgenmcp_get_price
Get price
machgenmcp_get_task
Get task
machgenmcp_get_task_params
Get task params
machgenmcp_get_tasks
Get tasks
machgenmcp_list_history
List history
machgenmcp_list_models
List models
machgenmcp_ping
Ping
machgenmcp_quote_video_upscale
Quote video upscale
machgenmcp_upload_files
Upload files
machgenmcp_upscale_video
Upscale video
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// MachGen tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["machgenmcp"], toolNames: [
    "machgenmcp_get_price",
    "machgenmcp_generate_image",
    "machgenmcp_get_task"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Quote the cost of this image, generate it, and check when the task completes" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["machgenmcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Quote the cost of this image, generate it, and check when the task completes" }],
  tools,
});

// Execute the tool call with the user's vaulted MachGen OAuth token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["machgenmcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Quote the cost of this image, generate it, and check when the task completes" }],
  tools,
});

// Tool call runs with the user's vaulted MachGen OAuth token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["machgenmcp"] }, pageSize: 100,
});

const agent = new Agent({
  name: "media_generation_agent",
  model: "gemini-2.5-pro",
  instruction: "MachGen tools scoped to this user",
  tools,
});

await agent.run("Quote the cost of this image, generate it, and check when the task completes");
Try these prompts
Copy any prompt into your agent. Each maps directly to a MachGen MCP tool. Click to copy, paste into your agent, done.
Generate media
Copy the prompt
Copied
Generate an image of a ceramic mug on a wooden desk.
Copy the prompt
Copied
Generate a 5 second video of waves on a beach.
Copy the prompt
Copied
Generate a voiceover of this script in one voice.
Tasks and history
Copy the prompt
Copied
Check the status of my video task.
Copy the prompt
Copied
Show my 10 most recent generations.
Copy the prompt
Copied
List the models I can use.
Edit, price, and share
Copy the prompt
Copied
Edit my last image to use a blue background.
Copy the prompt
Copied
Quote the cost of upscaling my last video.
Copy the prompt
Copied
Create a shareable link for this image.
SEE HOW AUTH WORKS
Each user signs in to MachGen once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
MachGen MCP
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
MachGen MCP
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
MachGen MCP
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
MachGen MCP
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Support and Ops Teams
Meeting prep
Pulls agenda, participant context, and open action items before every meeting.
Test other agents
See the same per-user auth pattern across other AI connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
OPS
Meeting prep agent
Assemble the agenda, HubSpot attendee history, and open action items from Gmail before every meeting on the calendar.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared MachGen token looks fine in a demo. In production every generation and asset link looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
MachGen today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access MachGen as the user or through a shared service account?
As the user. Each user signs in to MachGen once, and Scalekit stores and refreshes their tokens. Every generation and asset link in your audit trail is attributed to that user, not a shared service account.
Where is the MachGen OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in MachGen?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the model, task, and price tools without machgenmcp_generate_video or machgenmcp_upscale_video, which spend account balance. Scalekit also enforces scope checks before every API call.
What happens when a user revokes MachGen access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent check the cost before it generates?
Yes. machgenmcp_get_price quotes what a generation would cost on the account before it is submitted, machgenmcp_quote_video_upscale quotes a video upscale, and machgenmcp_check_balance returns the spendable balance.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""machgenmcp"": {
""url"": ""https://mcp.scalekit.com/machgenmcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.machgenmcp]
url = ""https://mcp.scalekit.com/machgenmcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""machgenmcp"": {
""url"": ""https://mcp.scalekit.com/machgenmcp"",
""type"": ""http""
}
}
}