
ModelFold
MCP server giving AI clients access to hundreds of ModelFold chat and image models
ModelFold is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 0.1.0
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add modelfold-mcp --env MODELFOLD_API_KEY='<MODELFOLD_API_KEY>' -- npx -y modelfold-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"modelfold-mcp": {
"command": "npx",
"args": [
"-y",
"modelfold-mcp"
],
"env": {
"MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add modelfold-mcp --env MODELFOLD_API_KEY='<MODELFOLD_API_KEY>' -- npx -y modelfold-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.modelfold-mcp]
command = "npx"
args = ["-y", "modelfold-mcp"]
env = { MODELFOLD_API_KEY = "<MODELFOLD_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"modelfold-mcp": {
"command": "npx",
"args": [
"-y",
"modelfold-mcp"
],
"env": {
"MODELFOLD_API_KEY": "<MODELFOLD_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
MODELFOLD_API_KEYModelFold API key used for the local MCP server.Required
About ModelFold
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.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
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_modelsName 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_balanceName suggests: reads
- Read account credits, subscription and key quota.
What it does
- 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
Pricing
Open source
Server is free and MIT-licensed; model calls are billed as prepaid credits.
Prices change. Check modelfold.ai before you buy.
ModelFold 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.