agnes-image-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agnes-image-mcp-server Generate a 2K 16:9 image of a cozy cabin in snowy woods"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agnes-image-mcp-server
MCP server for image generation using the Agnes Image 2.1 Flash model.

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_….pngWhen 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 stdioTools
generate_image
Generate an image from a text prompt.
Parameter | Type | Required | Description |
| string | Yes | Text description of the image |
| enum | No |
|
| enum | No |
|
| 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
Base URL:
https://apihub.agnes-ai.comEndpoint:
POST /v1/images/generations
Available Tools
2 toolsgenerate_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
Scored across 2 tools
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.
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.
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.
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
Related MCP Connectors
AI image + video generation for agents: --flag prompt DSL, async generate/poll, x402 pay-per-use.
Create images and videos from prompts, with options for image mixing, reference images, and start/…
Generate and edit images: article covers, pet portraits, product shots. Each call spends credits.
Generate, edit and upscale images with references, batch jobs, cost previews and original downloads.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables text-to-image generation, image editing, and multi-image composition using Google's Gemini 2.5 Flash Image API. Supports flexible aspect ratios and character consistency across generations.1MIT
- AlicenseBqualityDmaintenanceEnables image generation using Google Gemini models like Gemini 2.0 Flash and Imagen 3.0 with support for custom aspect ratios and negative prompts. It also allows users to list and manage generated images stored in local directories.2MIT
- AlicenseAqualityDmaintenanceEnables text-to-image generation using Agnes Image 2.1 Flash via OpenAI-compatible API, supporting aspect ratios, custom resolution, and multi-image generation.11MIT
- AlicenseAqualityCmaintenanceEnables text-to-image and text-to-video generation via the Agnes AI API, with support for multiple models, async video generation, and automatic file downloads.62MIT