Skip to main content

Prerequisites

Before installing the ModelsLab MCP Server, ensure you have:
  • Python 3.7+ installed on your system
  • Claude Desktop application installed
  • ModelsLab account with API access
  • Git for cloning the repository

Step 1: Clone the Repository

First, clone the ModelsLab MCP Server repository to your local machine:
bash
Navigate to the cloned directory:
bash

Step 2: Get Your API Key

  1. Visit the ModelsLab Portal
  2. Log in to your account
  3. Navigate to the API Keys section
  4. Generate a new API key or copy your existing one
  5. Keep this key secure - you’ll need it for configuration

Step 3: Create Configuration File

Create the Claude Desktop configuration file in the appropriate location:

For macOS:

bash

For Windows:

bash

Step 4: Configure the MCP Server

Add the following configuration to your claude_desktop_config.json file:
claude_desktop_config.json

Configuration Parameters:

Step 5: Update Paths

Replace the placeholder paths with your actual paths:

Example for macOS:

claude_desktop_config.json

Example for Windows:

claude_desktop_config.json

Step 6: Restart Claude Desktop

  1. Completely quit Claude Desktop (not just minimize)
  2. Reopen Claude Desktop
  3. The MCP server should now be available

Verification

To verify the installation worked:
  1. Open a new conversation in Claude Desktop
  2. Try generating an image with a command like:
  3. If successful, you should see the generated image and it will be saved to your specified directory