Model Context Protocol (MCP)
Let your AI agents interact with the Eternal AI API by using our MCP server.
The Eternal AI Model Context Protocol (MCP) server provides tools that AI agents can use to interact with the Eternal AI API for image generation, image editing, and video generation.
Connect to Eternal AI's MCP server
Cursor
To open Cursor and automatically add the Eternal AI MCP, click install. Alternatively, add the following to your ~/.cursor/mcp.json file. To learn more, see the Cursor documentation.
{
"mcpServers": {
"eternal-ai": {
"command": "npx",
"args": ["-y", "@eternalai-org/mcp-server@latest"],
"env": {
"ETERNAL_AI_API_KEY": "YOUR_API_KEY"
}
}
}
}
VS Code
To open VS Code and automatically add the Eternal AI MCP, click install. Alternatively, add the following to your .vscode/mcp.json file in your workspace. To learn more, see the VS Code documentation.
{
"servers": {
"eternal-ai": {
"command": "npx",
"args": ["-y", "@eternalai-org/mcp-server@latest"],
"env": {
"ETERNAL_AI_API_KEY": "YOUR_API_KEY"
}
}
}
}
Claude Code
To add MCP to Claude Code, run the following command. To learn more, see the Claude Code documentation.
claude mcp add eternal-ai --scope user -- npx @eternalai-org/mcp-server@latest -e ETERNAL_AI_API_KEY=YOUR_API_KEY
Other
MCP is an open protocol supported by many clients. Your specific client documentation can advise you how to connect. Use the following configuration:
{
"eternal-ai": {
"command": "npx",
"args": ["-y", "@eternalai-org/mcp-server@latest"],
"env": {
"ETERNAL_AI_API_KEY": "YOUR_API_KEY"
}
}
}
Get your API key at https://eternalai.org/api/keys.
Tools
The server exposes the following MCP tools for creative AI generation:
| Tool | Description | API |
|---|---|---|
generate_image | Generate images from text prompts with LoRA style support | Image Generation |
edit_image | Edit existing images by changing outfits, backgrounds, poses, and more | Generation with Advanced Custom |
generate_video | Animate static images into videos based on text prompts | Generation with Advanced Custom |
See also
- NPM Package (@eternalai-org/mcp-server) - For detailed configuration options and additional MCP client setups