Agnes MCP Server
Click on "Install 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 MCP ServerGenerate an image of a futuristic city at sunset, 1920x1080"
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 MCP Server
An MCP (Model Context Protocol) server that wraps the Agnes AI image and video generation APIs, enabling AI assistants (Claude, Cursor, VS Code, etc.) to generate images and videos via standardized tool calls.
Features
Image Generation — Text-to-image and image-to-image via
generate_imageVideo Generation — Text-to-video and image-to-video via
generate_video+get_videoTwo Transport Modes —
stdio(local) andStreamable HTTP(remote)Auto Download — Optionally save generated media to disk automatically
Blocking & Async —
wait=truefor synchronous generation, or poll withget_video
Related MCP server: ImaginePro MCP Server
Quick Start
1. Install Dependencies
cd agnes-mcp-server
npm install
npm run build2. Set API Key
export AGNES_API_KEY="sk-agnes-your-api-key-here"3. Run the Server
Stdio mode (default, for local MCP clients like Claude Desktop, Cursor):
npm run start
# or
node agnes-mcp-server.cjsStreamable HTTP mode (for remote MCP clients):
MCP_TRANSPORT=http npm run start:http
# Default port: 3100 (configurable via HTTP_PORT)4. Configure Your MCP Client
Add this to your MCP client configuration (e.g., .mcp.json):
{
"mcpServers": {
"agnes": {
"command": "node",
"args": ["agnes-mcp-server.cjs"],
"env": {
"AGNES_API_KEY": "sk-agnes-your-api-key-here"
}
}
}
}Available Tools
Tool | Description |
| Generate or edit an image. Supports text-to-image and image-to-image modes. |
| Submit a video generation task. Set |
| Query video generation status and optionally download the result. |
Tool Parameters
generate_image
Parameter | Type | Required | Default | Description |
| string | Yes | — | Text description of the desired image |
| string | No |
| Image dimensions (e.g., |
| string[] | No | — | Input images (local file paths or base64 data URIs) |
|
| No |
| Output format when no |
| string | No | — | Directory to download the image file |
generate_video
Parameter | Type | Required | Default | Description |
| string | Yes | — | Text description of the desired video |
| string | string[] | No | — | Input image(s) for image-to-video mode |
| string | No | — | Generation mode (e.g., |
| number | No | — | Video width |
| number | No | — | Video height |
| number | No | — | Number of frames |
| number | No | — | Frames per second |
| number | No | — | Random seed for reproducibility |
| string | No | — | Things to exclude from the video |
| string | No | — | Directory to download the video file |
| boolean | No |
| Block until generation completes |
get_video
Parameter | Type | Required | Default | Description |
| string | Yes | — | Video ID returned by |
| string | No | — | Task ID (fallback for querying) |
| string | No | — | Directory to download the video file |
Environment Variables
Variable | Required | Default | Description |
| Yes | — | Your Agnes API key (starts with |
| No |
| Transport mode: |
| No |
| HTTP server port (only in |
| No | — | Root directory for auto-downloaded media |
Project Structure
agnes-mcp-server/
├── src/
│ ├── app/ # Server entry points (stdio, http, bundle)
│ ├── client/ # HTTP client wrapper
│ ├── core/ # Core MCP setup and registry
│ ├── module/
│ │ ├── image/ # Image generation service
│ │ └── video/ # Video generation service
│ ├── providers/ # API providers (AgnesClient, image, video)
│ ├── tools/ # MCP tool implementations
│ └── types/ # Shared types and result formatters
├── agnes-mcp-server.cjs # Bundled entry point
├── agnes-bundle.cjs # Standalone bundle
├── SKILL.md # MCP skill definition
├── TOKEN_AUTH.md # Authentication documentation
└── package.jsonDevelopment
# Watch mode (TypeScript → Node)
npm run dev
# Build TypeScript
npm run build
# Create standalone bundle
npm run bundle
# Run smoke test
npm run testTest Script
A standalone test script is included for verifying the image-to-video API flow:
npx tsx test-video-image.ts <local-image-path> <api-key>
# or
IMAGE_PATH=test.jpg AGNES_API_KEY=sk-xxx npx tsx test-video-image.tsLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to generate images, text, and audio content through the Pollinations APIs. Provides direct access to multimodal generation capabilities including image creation from text prompts, text-to-speech, and text generation.Last updated12101MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to generate images and videos through natural language using ImaginePro's API. Supports text-to-image generation, video creation, image upscaling, variants, inpainting, and multi-modal generation with real-time progress tracking.Last updated838MIT
- Alicense-qualityDmaintenanceEnables AI assistants to generate, manage, and download AI-generated videos using OpenAI's Sora models, supporting text prompts, image-to-video, remixing, and more.Last updatedMIT
- Alicense-qualityBmaintenanceEnables text-to-image generation using Agnes Image 2.1 Flash via OpenAI-compatible API, supporting aspect ratios, custom resolution, and multi-image generation.Last updated331MIT
Related MCP Connectors
Generate images, video, and audio with Glif's media-generation agent
Generate images, GIFs, and PDFs from HTML, URLs, or templates — from your AI agent.
Build and run visual creative-production workflows from your AI agent.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/zssty2010/agnes-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server