EverArt MCP server

Integrates with EverArt API to generate images from text prompts using multiple AI models for creative and visual design tasks.
Back to servers
Provider
Anthropic
Release date
Dec 16, 2024
Language
TypeScript
Package
Stats
4.7K downloads
43.8K stars

EverArt MCP Server is an image generation server designed to work with Claude Desktop and Visual Studio Code. It leverages EverArt's API to generate images through various AI models, providing a seamless integration with the Model Context Protocol (MCP).

Installation

Quick Setup

Install the dependencies and set your API key:

npm install
export EVERART_API_KEY=your_key_here

Configuration Options

Setting Up with Claude Desktop

You can configure the EverArt MCP server to work with Claude Desktop using either Docker or NPX.

Docker Method

Add this configuration to your Claude Desktop config file:

{
  "mcpServers": {
    "everart": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "EVERART_API_KEY", "mcp/everart"],
      "env": {
        "EVERART_API_KEY": "your_key_here"
      }
    }
  }
}

NPX Method

Alternatively, use NPX with this configuration:

{
  "mcpServers": {
    "everart": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-everart"],
      "env": {
        "EVERART_API_KEY": "your_key_here"
      }
    }
  }
}

Setting Up with VS Code

You can manually add the server configuration to your VS Code settings.

Docker Configuration for VS Code

Add this to your VS Code User Settings (JSON) or .vscode/mcp.json file:

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "everart_api_key",
        "description": "EverArt API Key",
        "password": true
      }
    ],
    "servers": {
      "everart": {
        "command": "docker",
        "args": ["run", "-i", "--rm", "-e", "EVERART_API_KEY", "mcp/everart"],
        "env": {
          "EVERART_API_KEY": "${input:everart_api_key}"
        }
      }
    }
  }
}

NPX Configuration for VS Code

For the NPX method, use this configuration:

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "everart_api_key",
        "description": "EverArt API Key",
        "password": true
      }
    ],
    "servers": {
      "everart": {
        "command": "npx",
        "args": ["-y", "@modelcontextprotocol/server-everart"],
        "env": {
          "EVERART_API_KEY": "${input:everart_api_key}"
        }
      }
    }
  }
}

Using the Image Generation Tool

Generate Image Function

The server provides a generate_image tool that creates images using different AI models.

Parameters

{
  prompt: string,       // Image description
  model?: string,       // Model ID (default: "207910310772879360")
  image_count?: number  // Number of images (default: 1)
}

Available Models

  • 5000: FLUX1.1 (standard)
  • 9000: FLUX1.1-ultra
  • 6000: SD3.5
  • 7000: Recraft-Real
  • 8000: Recraft-Vector

All images are generated at 1024x1024 resolution.

Example Usage

Here's how to call the tool from your client:

const result = await client.callTool({
  name: "generate_image",
  arguments: {
    prompt: "A cat sitting elegantly",
    model: "7000",
    image_count: 1
  }
});

Response Format

When an image is generated successfully, you'll receive a response like:

Image generated successfully!
The image has been opened in your default browser.

Generation details:
- Model: 7000
- Prompt: "A cat sitting elegantly"
- Image URL: https://storage.googleapis.com/... 

You can also click the URL above to view the image again.

The generated image will automatically open in your default browser and the URL is provided for future reference.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later