Skip to main content

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

Install in 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

Install in 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:

ToolDescriptionAPI
generate_imageGenerate images from text prompts with LoRA style supportImage Generation
edit_imageEdit existing images by changing outfits, backgrounds, poses, and moreGeneration with Advanced Custom
generate_videoAnimate static images into videos based on text promptsGeneration with Advanced Custom

See also