mcp-mavae

mcp-mavae

3.1

If you are the rightful owner of mcp-mavae and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MAVAE is a Model Context Protocol (MCP) server for interacting with image media tools. It provides a standardized interface for AI Agents to generate and manipulate images.

MAVAE - IMAGE TOOLBOX

A powerful creative and editing toolkit designed for AI Agents.

MAVAE is a Model Context Protocol (MCP) server for interacting with image media tools. It provides a standardized interface for AI Agents to generate and manipulate images.

๐Ÿš€ Features

  • Image Generation: Generate images using both raw configurations and predefined collections
  • Image Editing: Compress, crop, and resize images with proportional or fixed dimensions
  • Collection Management: Create, manage, and share configurations for consistent image generation
  • Model & Lora Management: List and utilize available models and Loras
  • API Token Management: Handle authentication for secure interaction with Mavae services

๐Ÿ“‹ Prerequisites

  • Node.js (v16 or higher)
  • MAVAE API Key (set as environment variable, Apply here)

๐Ÿ› ๏ธ Installation

# Install dependencies
npm install

# Build the project
npm run build

# Start the server
npm start

MCP Json

{
  "mcpServers": {
      "mavae": {
          "command": "node",
          "args": [
              "***/dist/index.js"
          ],
          "env": {
              "MAVAE_API_KEY": MAVAE_API_KEY
          }
      }
  }
}

When using MAVAE MCP locally, this path is an absolute path ๐Ÿ‘‰๐Ÿป "***/dist/index.js"

๐Ÿณ Docker Support

# Build Docker image
docker build -t mavae-mcp-server .

# Run Docker container
docker run -e MAVAE_API_KEY=your_api_key mavae-mcp-server

๐Ÿ“ Project Structure

mavae/
โ”œโ”€โ”€ src/                  # Source code
โ”‚   โ”œโ”€โ”€ actions/          # API endpoint implementation handlers
โ”‚   โ”‚   โ”œโ”€โ”€ aigc.ts       # Image generation operations
โ”‚   โ”‚   โ”œโ”€โ”€ collection.ts # Collection management operations
โ”‚   โ”‚   โ”œโ”€โ”€ edit.ts       # Image editing operations
โ”‚   โ”‚   โ””โ”€โ”€ token.ts      # API token operations
โ”‚   โ”œโ”€โ”€ tools/            # MCP tool definitions
โ”‚   โ”‚   โ”œโ”€โ”€ aigc.ts       # Image generation tool definitions
โ”‚   โ”‚   โ”œโ”€โ”€ collection.ts # Collection management tool definitions
โ”‚   โ”‚   โ””โ”€โ”€ edit.ts       # Image editing tool definitions
โ”‚   โ”œโ”€โ”€ types/            # TypeScript type definitions
โ”‚   โ”‚   โ”œโ”€โ”€ aigc.ts       # Image generation types
โ”‚   โ”‚   โ”œโ”€โ”€ collection.ts # Collection types
โ”‚   โ”‚   โ”œโ”€โ”€ edit.ts       # Image editing types
โ”‚   โ”‚   โ””โ”€โ”€ response.ts   # API response types
โ”‚   โ”œโ”€โ”€ utils/            # Utility functions
โ”‚   โ”‚   โ””โ”€โ”€ constants.ts  # Constant values
โ”‚   โ””โ”€โ”€ index.ts          # Server entry point
โ”œโ”€โ”€ dist/                 # Compiled JavaScript files
โ”œโ”€โ”€ package.json          # Project dependencies and scripts
โ””โ”€โ”€ tsconfig.json         # TypeScript configuration

๐Ÿ›๏ธ Available Tools

Image Generation

  • image_raw_generate - Generate an image using raw AIGC configuration
  • image_collection_generate - Generate an image using a collection's AIGC configuration
  • image_retry_generate - Retry a failed image generation
  • image_state - Get the details of an owned image
  • generate_task_state - Get the generation state of an image by task id

Collection Management

  • collection_create - Create a new collection
  • collection_delete - Delete a collection
  • collection_toggle_public - Toggle the public status of a collection
  • collection_list - Get the list of owned collections
  • collection_state - Get the details of an owned collection

Image Editing

  • compress_image - Lossless compression of images
  • crop_image - Crop images with local path and URL support
  • resize_image - Resize images with proportional or fixed dimensions

Model & Resources

  • list_images - Get the list of owned images
  • list_loras - Get the list of available loras
  • list_models - Get the list of available models

Authentication

  • token_state - Get the x-api-token state