Agnes AI MCP Server
Enables 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.
README
<div align="center">
π¨ Agnes AI MCP Server
Free Text-to-Image & Text-to-Video generation via Agnes AI
English | δΈζ
</div>
π Quick Start
# 1. Install (one command)
pip install agnes-mcp
# 2. Get a free API key at https://agnes-ai.com
# 3. Add to your MCP client config:
Claude Desktop / Cursor / Windsurf (claude_desktop_config.json or equivalent):
{
"mcpServers": {
"agnes-mcp": {
"command": "uvx",
"args": ["agnes-mcp"],
"env": {
"AGNES_API_KEY": "your-api-key-here"
}
}
}
}
Codex (config.toml):
[mcp_servers.agnes_mcp]
command = "uvx"
args = ["agnes-mcp"]
[mcp_servers.agnes_mcp.env]
AGNES_API_KEY = "your-api-key-here"
That's it! Now you can generate images and videos directly from your AI assistant.
β¨ Why Agnes MCP?
| Feature | Agnes MCP | Other AI Image Services |
|---|---|---|
| Price | $0 / image, $0 / second | $0.02 - $0.08 / image |
| Text-to-Image | β 2 models (2.0 & 2.1 Flash) | β Usually 1 model |
| Image-to-Image | β Reference image + prompt | β or limited |
| Batch Generation | β 1-4 images at once | β |
| Text-to-Video | β Up to 18s, 1080p | β or paid only |
| Image-to-Video | β Static image β video | β or paid only |
| Multi-image Video | β Keyframe animation | β |
| Auto Download | β Saves locally automatically | β Manual download |
| MCP Standard | β Full compliance | Varies |
Yes, it's completely free. Agnes AI currently offers all image and video generation at $0. Just register and get an API key.
πΌοΈ Demo
Text-to-Image (agnes-image-2.1-flash)
"A majestic dragon flying over a Chinese mountain landscape at sunset, cinematic lighting, epic fantasy art"

Text-to-Image (agnes-image-2.0-flash)
"A cozy Japanese ramen shop at night, warm lantern light, rain falling, anime style"

π¦ Tools
| Tool | Description | Example |
|---|---|---|
text_to_image |
Generate image(s) from text | prompt: "a cat" + optional n: 4, images: [ref_url] |
image_to_image |
Generate from reference image(s) + text | prompt: "make it cyberpunk" + images: [url] |
text_to_video |
Generate video from text/image(s) | prompt: "a cat dancing" + optional mode, num_inference_steps |
image_to_video |
Animate a static image into video | prompt: "zoom in slowly" + image: "url" |
keyframe_animation |
Smooth transition between keyframe images | prompt: "morph scene" + images: [url1, url2, ...] |
check_video_status |
Check async video task status | video_id: "xxx" or task_id: "xxx" |
βοΈ Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
AGNES_API_KEY |
Yes | - | Your Agnes AI API key |
AGNES_API_BASE |
No | https://apihub.agnes-ai.com/v1 |
API base URL |
AGNES_DEFAULT_MODEL |
No | agnes-image-2.1-flash |
Default image model |
AGNES_DEFAULT_SIZE |
No | 1024x768 |
Default image size |
π Get a Free API Key
- Visit https://agnes-ai.com
- Create an account (free)
- Go to Console β API Keys β Create
- Copy the key and paste into your config
β Supported Clients
- [x] Claude Desktop
- [x] Codex (OpenAI)
- [x] Cursor
- [x] Windsurf
- [x] Cherry Studio
- [x] Any MCP client with
stdiotransport
π Changelog
v0.3.0 (2026-06-28)
- β¨ New tool:
image_to_videoβ animate a static image into video - β¨ New tool:
keyframe_animationβ smooth transitions between multiple keyframe images - β¨
text_to_video: addedmodeandnum_inference_stepsparameters - β¨
create_video_task/generate_video: supportmode(e.g.ti2vid,keyframes) andnum_inference_steps - β 28 tests passing
v0.2.0 (2026-06-27)
- β¨ New tool:
image_to_imageβ generate from reference image(s) + prompt - β¨
text_to_image: batch generation (n: 1-4) and multi-image composition (images) - β¨
text_to_video: multi-image video / keyframe animation (images) - π Unified multi-image download logic
- β 19 tests passing
v0.1.1 (2026-06-26)
- π Initial public release
- text_to_image, text_to_video, check_video_status
- Async httpx with retry mechanism
- Auto-download to local filesystem
π€ Contributing
See CONTRIBUTING.md for guidelines.
π License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.