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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。