# MartLLM

> MartLLM is a paid MCP server for ai models and llm tooling. One API key for Claude, GPT, Gemini, DeepSeek and image or video models, often below list. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, CLI, VS Code, Web
- **Website:** https://martllm.com
- **Repository:** https://github.com/al-global-tech/martllm
- **MCP Registry name:** com.martllm/mcp
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

MartLLM is a marketplace that gives you a single OpenAI- and Anthropic-compatible endpoint for many chat, image, video and music models. Each request is routed to one of several sellers offering that model, and the cheapest working offer is preferred, so you pay what that seller charges rather than the model maker's list rate.

Integration is a base-URL change: you keep your existing OpenAI or Anthropic SDK and switch models by changing the model id. The service also offers a hosted MCP server with tools for listing models, requesting quotes, generating images and videos, and checking balance, which coding agents such as Claude Code, Codex and Cursor can connect to with an API key.

A request that fails is not billed, and a failed seller hands the request to the next one. Passwords and API keys in prompts are masked before they leave MartLLM, and personal data can be hidden per key. It suits developers and small teams who want to call several model families through one prepaid balance.

## Features

- **OpenAI and Anthropic compatibility:** Works with existing OpenAI and Anthropic SDKs by pointing the base URL at MartLLM.
- **Single prepaid balance:** One key and one credit balance cover models from many providers, with no monthly fee or minimum spend.
- **Automatic seller failover:** If one seller fails before answering, the request moves to the next seller for that model.
- **No charge for failed requests:** Requests or generations that fail are not billed.
- **Prompt data masking:** Passwords and API keys are swapped for tags before a request leaves MartLLM, and personal data can be hidden per key.
- **Hosted MCP server:** A Streamable HTTP MCP endpoint exposes model listing, quotes, image and video generation and balance tools.

## Good for

- Calling Claude, GPT, Gemini and DeepSeek through one API key
- Generating images or videos from an agent or script with pay-as-you-go billing
- Adding fallback across several sellers for the same model
- Connecting a coding agent to a hosted model gateway via MCP
- Comparing per-token prices across models before choosing one

## Install

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

```sh
claude mcp add --transport http mcp https://api.martllm.com/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": {
    "mcp": {
      "type": "http",
      "url": "https://api.martllm.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://api.martllm.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://api.martllm.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://api.martllm.com/mcp"
    }
  }
}
```

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

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://api.martllm.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

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

```sh
codex mcp add mcp --url https://api.martllm.com/mcp
```

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

```toml
[mcp_servers.mcp]
url = "https://api.martllm.com/mcp"
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "httpUrl": "https://api.martllm.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http mcp https://api.martllm.com/mcp

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

```json
{
  "mcpServers": {
    "mcp": {
      "serverUrl": "https://api.martllm.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://api.martllm.com/mcp",
      "transport": "http"
    }
  }
}
```

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": {
    "mcp": {
      "type": "streamableHttp",
      "url": "https://api.martllm.com/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "url": "https://api.martllm.com/mcp"
    }
  }
}
```

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": {
    "mcp": {
      "url": "https://api.martllm.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://api.martllm.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://api.martllm.com/mcp"
    }
  }
}
```

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

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://api.martllm.com/mcp
```

Enter a Name (for example "MartLLM"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://api.martllm.com/mcp"
    }
  }
}
```

## Tools

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

- `list_models` (name suggests: reads): List available models.
- `get_model` (name suggests: reads): Get details for a model.
- `quote`: Get a price quote for a request.
- `generate_image`: Generate an image.
- `edit_image` (name suggests: changes): Edit an image.
- `start_video` (name suggests: changes): Start a video generation job.
- `get_job` (name suggests: reads): Check the status of a job.
- `wait_job`: Wait for a job to finish.
- `balance`: Check account balance.

## FAQ

### What is MartLLM?

MartLLM is one OpenAI- and Anthropic-compatible API key for Claude, GPT, Gemini, DeepSeek and other text, image, video and music models, usually below list price. Sellers list offers for each model, and each request goes to the cheapest working offer.

### Do I pay for failed requests?

No. A request or a generation that fails costs $0, and you are only billed for results you receive.

### Is there a fee or minimum spend?

There is no MartLLM fee on requests and no monthly fee or minimum spend. Adding credit by card costs 5.5% + $0.50, and credit starts from $5.

### Is MartLLM OpenAI-compatible?

Yes. Set the base URL to the MartLLM endpoint and keep your existing OpenAI SDK. The Anthropic-compatible endpoint works the same way.

### Is MartLLM free?

No. MartLLM is a paid product.

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

Run this command in your terminal: claude mcp add --transport http mcp https://api.martllm.com/mcp

### What are the best alternatives to MartLLM?

The closest alternatives to MartLLM are UplinkSwitch, LLM Broker, Unrestrictable, apimodels and LLM Gateway.

## 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): UplinkSwitch is a freemium MCP server for design and media.
- [LLM Broker](https://ai-powered.com/mcp/llm-broker): LLM Broker is a paid MCP server for ai models and llm tooling.
- [Unrestrictable](https://ai-powered.com/mcp/unrestrictable): Unrestrictable is a paid MCP server for ai models and llm tooling.
- [apimodels](https://ai-powered.com/mcp/apimodels): apimodels is a paid MCP server for design and media.
- [LLM Gateway](https://ai-powered.com/mcp/llm-gateway): LLM Gateway is an open-source MCP server for ai models and llm tooling.
- [uplinkswitch](https://ai-powered.com/mcp/uplinkswitch-2): uplinkswitch is a paid MCP server for design and media.
- [PentestLLM](https://ai-powered.com/mcp/pentestllm): PentestLLM is a paid MCP server for security.
- [UncensoredLLM](https://ai-powered.com/mcp/uncensoredllm): UncensoredLLM is a freemium MCP server for ai models and llm tooling.

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