Skip to main content
Glama

@retomagic/mcp

An MCP server for the Magicly image & video generation API. Lets any MCP client (Claude Desktop, IDEs, agents) generate media through your Magicly developer API key.

Setup

  1. Create an API key at dev.magicly.ai → API Keys.

  2. Add the server to your MCP client. For Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "magicly": {
      "command": "npx",
      "args": ["-y", "@retomagic/mcp"],
      "env": { "MAGICLY_API_KEY": "sk_live_..." }
    }
  }
}

Restart the client. That's it.

Related MCP server: Gemini Image Gen MCP Server

Tools

  • list_models — list available models with id, media type, price ($) and inputs.

  • generate — generate an image/video: { model, prompt, aspect_ratio?, size?, seconds?, seed?, image? }. Creates a prediction and waits for the result, returning the output URL(s). Pass wait: false to return immediately with an id to poll.

  • get_prediction — fetch a prediction's status/output by id.

Config

Env

Default

Description

MAGICLY_API_KEY

Required. Your developer API key (sk_live_…).

MAGICLY_API_URL

https://api.magicly.ai/v1

API base URL (override for staging).

Billing is metered in credits (1000 credits = $1) against your organization's balance. See dev.magicly.ai for pricing, keys and usage.

Development

npm install
npm run build        # → dist/
MAGICLY_API_KEY=sk_live_... npm start

Available Tools

3 tools
generateA

Generate an image or video with a Magicly model. Creates a prediction and (by default) waits for the result, returning the output URL(s). Use list_models to discover model ids and their inputs.

ParametersJSON Schema
NameRequiredDescriptionDefault
seedNoSeed for reproducible output.
sizeNoOutput size as 'WxH' (models that price/size by resolution).
waitNoWait for the result (default true). If false, returns immediately with a prediction id to poll.
imageNoSource image for img2img / edit models: a public https URL or a data:image/...;base64,... URI.
modelYesModel id, e.g. 'neuro-art'.
promptYesThe text prompt.
secondsNoVideo length in seconds (video models).
aspect_ratioNoe.g. '1:1', '16:9' (if the model supports it).

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses that the tool creates a prediction and by default waits for the result, returning output URLs. Also explains the wait parameter behavior. Lacks information on rate limits or idempotency, but sufficient for a generation tool with no annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no filler, front-loaded with the primary action. Every sentence adds meaningful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the core workflow (generate, wait, output), references sibling tools for discovery. Lacks details on error handling or model-specific inputs, but the schema and sibling reference compensate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage, so baseline is 3. Description adds value by explaining the overall behavior (creation, waiting, output URLs) and referencing list_models for model selection, which aids understanding of the 'model' param.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool generates 'an image or video' with a Magicly model, specifying the verb and resource. It differentiates from siblings by referencing list_models for discovery and implying get_prediction for polling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells when to use list_models to discover model ids and inputs, providing clear guidance on alternatives. Implicitly advises using get_prediction for polling when wait=false.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_predictionA

Get the current status and output of a prediction by its id.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesThe prediction id returned by generate.

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided; description correctly indicates a read operation ('Get'), but does not disclose other behaviors like error conditions or id validity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, 11 words, front-loaded with action. No unnecessary text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Lacks output schema or description of return format; does not explain what 'current status and output' means structurally. Adequate for simple retrieval but incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema describes the 'id' parameter as 'returned by generate', and description adds no extra meaning beyond the schema. Coverage is high, so baseline score applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the verb 'Get' and resource 'current status and output of a prediction by its id', distinguishing it from sibling tools generate (creates predictions) and list_models (lists available models).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implied usage after calling generate to retrieve results, but no explicit guidance on when to use vs alternatives or when not to use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_modelsA

List the available Magicly models with their id, media type, price ($) and supported inputs.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses returned fields but lacks details on caching, ordering, or whether it returns all models. Adequate but not comprehensive for a listing tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, front-loaded with action and resource, no unnecessary words. Highly concise and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero parameters and no output schema, the description explains the purpose and returned fields. It is complete enough for a simple listing tool, though could hint at output format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist in the input schema, so baseline 4 applies. The description does not need to add parameter info.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'List' and the resource 'available Magicly models', and specifies the fields returned (id, media type, price, supported inputs). It distinguishes from sibling tools 'generate' and 'get_prediction' by its distinct purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for discovering models, but lacks explicit when-to-use or when-not-to-use guidance. However, given the simple nature, the context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 3 tool updatesv0.1.0
    • First observedgenerate
    • First observedget_prediction
    • First observedlist_models

TDQS

A4.3/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: generating content, checking prediction status, and listing available models. There is no overlap or ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with lowercase and underscores (generate, get_prediction, list_models), making them predictable and easy to understand.

Tool Count5/5

Three tools is appropriate for the server's scope: model discovery, content generation, and result retrieval. Each tool serves a necessary function without excess or deficiency.

Completeness5/5

The tool surface covers the full workflow: listing models to know available options, generating content with optional polling, and checking results asynchronously. No obvious gaps for the intended purpose.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Retomagic-work/rtm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server