# ModelFold

> ModelFold is an open-source MCP server for design and media. MCP server giving AI clients access to hundreds of ModelFold chat and image models. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Website:** https://modelfold.ai
- **Repository:** https://github.com/aimodelfold/modelfold-mcp
- **MCP Registry name:** io.github.AIModelFold/modelfold-mcp
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

ModelFold's MCP server lets an MCP-compatible client list models from its catalogue, send chat requests, generate images and read account credit balances. It runs locally over stdio as an npm-style package and authenticates with a single ModelFold API key that is passed through the environment.

The server exposes four tools: one to filter models by type and vendor, one for text replies, one for image generation that returns URLs, and one to check credits, subscription and key quota. Chat and image calls are billed against prepaid credits, so the server documentation advises approving billed calls deliberately and does not retry billed requests automatically.

It suits developers who already use Claude Desktop, Claude Code, Cursor or Cline and want one key to reach models from many providers. Setup currently means cloning the GitHub repository and building it, since the package is not yet published to npm.

## Features

- **Model discovery:** Lists available models and filters them by type such as chat or image and by vendor.
- **Chat completions:** Sends messages to a chosen model ID and returns a generated text reply.
- **Image generation:** Creates images from a model and prompt and returns links to the results.
- **Balance checks:** Reads account credits, subscription status and API key quota.
- **Local stdio transport:** Runs on the user's machine and connects to common MCP clients through a JSON config.

## Good for

- Letting an AI coding assistant call a chat model from another provider mid-session
- Generating images from inside an MCP client without writing API code
- Checking remaining credits before running a batch of billed model calls
- Comparing outputs from different models through a single API key

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add modelfold-mcp --env MODELFOLD_API_KEY='<MODELFOLD_API_KEY>' -- npx -y modelfold-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add modelfold-mcp --env MODELFOLD_API_KEY='<MODELFOLD_API_KEY>' -- npx -y modelfold-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.modelfold-mcp]
command = "npx"
args = ["-y", "modelfold-mcp"]
env = { MODELFOLD_API_KEY = "<MODELFOLD_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MODELFOLD_API_KEY='<MODELFOLD_API_KEY>' modelfold-mcp npx -- -y modelfold-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "modelfold-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "modelfold-mcp"
      ],
      "env": {
        "MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 4 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_models` (name suggests: reads): List models, filterable by type and vendor.
- `chat`: Generate a text reply from a model ID and messages.
- `generate_image`: Generate images from a model and prompt; returns URLs.
- `get_balance` (name suggests: reads): Read account credits, subscription and key quota.

## FAQ

### Is the server free to use?

The server is MIT-licensed and runs locally. Chat and image calls are billed against ModelFold credits, and an API key is required.

### Which MCP clients are covered by the setup guide?

The guide covers Claude Desktop, Claude Code, Cursor and Cline.

### Are billed requests retried automatically?

No. The server does not automatically retry billed requests.

### Is the npm package available yet?

Not yet. For now it is installed by cloning the GitHub repository and running the build steps.

### How do I add ModelFold to Claude Code?

Run this command in your terminal: claude mcp add modelfold-mcp --env MODELFOLD_API_KEY='<MODELFOLD_API_KEY>' -- npx -y modelfold-mcp

### What are the best alternatives to ModelFold?

The closest alternatives to ModelFold are uplinkswitch, Korpi API, apimodels, ModelsLab and gigachat-mcp.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [uplinkswitch](https://ai-powered.com/mcp/uplinkswitch-2): uplinkswitch is a paid MCP server for design and media.
- [Korpi API](https://ai-powered.com/mcp/korpi-api): Korpi API is a paid MCP server for design and media.
- [apimodels](https://ai-powered.com/mcp/apimodels): apimodels is a paid MCP server for design and media.
- [ModelsLab](https://ai-powered.com/mcp/modelslab): ModelsLab is an MCP server for design and media.
- [gigachat-mcp](https://ai-powered.com/mcp/gigachat-mcp): gigachat-mcp is an open-source MCP server for design and media.
- [Pixapi](https://ai-powered.com/mcp/pixapi): Pixapi is a paid MCP server for design and media.
- [Photoproduct.io](https://ai-powered.com/mcp/photoproduct-io): Photoproduct.io is a paid MCP server for design and media.
- [Adorbis MCP](https://ai-powered.com/mcp/adorbis-mcp): Adorbis MCP is a freemium MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/modelfold
