Skip to main content
Glama

agnes-image-mcp-server

npm version Downloads License: MIT node

MCP server for image generation using the Agnes Image 2.1 Flash model.

Example output generated by this server

Image generated with generate_image, prompt: "Vibrant digital illustration of a friendly retro-futuristic robot artist in a neon-lit studio…", size 2K, ratio 16:9.

Example session

> generate_image
  { "prompt": "A red fox astronaut drifting through a pastel nebula",
    "size": "2K", "ratio": "16:9" }

  Image generated successfully.
  URL: https://platform-outputs.agnes-ai.space/images/t2i/…/output_….png

When the API returns inline base64 instead of a URL, the tool responds with an MCP image content block that clients render directly.

Related MCP server: Nano Banana

Quick start

Get an API key at agnes-ai.com, then add the server to your MCP client config (ZCode, Claude Desktop, Cursor, etc.) — no install needed, npx fetches it:

{
  "mcpServers": {
    "agnes-image": {
      "command": "npx",
      "args": ["-y", "agnes-image-mcp-server"],
      "env": {
        "AGNES_API_KEY": "your-key-here"
      }
    }
  }
}

Development

git clone <repo-url>
cd agnes-image-mcp
npm install
npm run build
npm start        # runs dist/index.js over stdio

Tools

generate_image

Generate an image from a text prompt.

Parameter

Type

Required

Description

prompt

string

Yes

Text description of the image

size

enum

No

1K (default), 2K, or 4K

ratio

enum

No

1:1 (default), 16:9, 9:16, 4:3, 3:4, 3:2, 2:3

negative_prompt

string

No

Things to avoid in the image

Returns the generated image as a URL or base64-encoded PNG.

list_image_options

List available sizes and aspect ratios.

API Reference

Available Tools

2 tools
generate_imageA

Generate an image using Agnes Image 2.1 Flash. Returns the image URL or base64 data.

Inputs: prompt (required), size, ratio, negative_prompt.

list_image_optionsA

List available sizes and aspect ratios for image generation.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one generates images, the other lists available options. There is no overlap or ambiguity in their roles, making it easy for an agent to select the appropriate tool.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern in snake_case: 'generate_image' and 'list_image_options'. The naming is predictable and aligns with the server's purpose.

    Tool Count3/5

    With only two tools, the server is on the thin side per the calibration guidelines. However, the two tools cover the essential generation and option-listing capabilities, so the count is borderline but not unreasonable for a focused image-generation service.

    Completeness4/5

    The tool surface covers the core lifecycle of generating an image and discovering available parameters. Minor gaps exist, such as no ability to retrieve previously generated images or manage generation history, but these are not critical for the stated purpose.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers