# Straitly

> Straitly is a paid MCP server for ai models and llm tooling. OpenAI-compatible gateway to 117 LLMs with per-token billing below list price. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, CLI, Web, VS Code, Self-hosted
- **Website:** https://straitly.ai
- **Repository:** https://github.com/straitly-ai/straitly-mcp
- **MCP Registry name:** io.github.Straitly-ai/straitly-mcp
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-27

## About

Straitly sits between your code and model providers, so one key reaches Claude, GPT, Gemini, Grok, DeepSeek and other models. Requests go to a single base URL, and the same OpenAI or Anthropic SDK calls keep working after a two-line change.

Pricing is per token from prepaid credits, with most models billed 40% under the provider's published list price and no added commission on top-ups. Usage from many customers is pooled, and failover moves a request to another provider if one goes down.

The Straitly MCP server lets AI clients such as Claude Desktop, Cursor and Claude Code search the model catalog, look up model pricing and run chat completions. Listing and lookup work without a key; chat completions need a Straitly API key.

## Features

- **Single OpenAI-compatible endpoint:** One base URL and API key route calls to 117 models from multiple labs.
- **Per-token prepaid billing:** Credits are drawn down per token with no subscription or minimum spend.
- **Discounted list-price rates:** Most models are billed 40% under the provider's published list price.
- **Provider failover:** A request moves to another provider if the first one is unavailable.
- **Zero data retention:** Prompts and completions are not stored or used for training by default.
- **MCP model catalog tools:** list_models, get_model and chat_completion let MCP clients query and call models.

## Good for

- Cut monthly spend on Claude or GPT API usage without changing application code
- Compare model prices and context windows before choosing one for a project
- Route coding assistants like Cursor or Claude Code through a single key across several models
- Give an MCP-enabled assistant access to model lookup and completions

## Install

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

```sh
claude mcp add straitly-mcp --env STRAITLY_API_KEY='<STRAITLY_API_KEY>' -- npx -y straitly-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": {
    "straitly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "straitly-mcp"
      ],
      "env": {
        "STRAITLY_API_KEY": "<STRAITLY_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "straitly-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "straitly-mcp"
      ],
      "env": {
        "STRAITLY_API_KEY": "<STRAITLY_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 straitly-mcp --env STRAITLY_API_KEY='<STRAITLY_API_KEY>' -- npx -y straitly-mcp
```

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

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

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

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "straitly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "straitly-mcp"
      ],
      "env": {
        "STRAITLY_API_KEY": "<STRAITLY_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": {
    "straitly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "straitly-mcp"
      ],
      "env": {
        "STRAITLY_API_KEY": "<STRAITLY_API_KEY>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "straitly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "straitly-mcp"
      ],
      "env": {
        "STRAITLY_API_KEY": "<STRAITLY_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": {
    "straitly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "straitly-mcp"
      ],
      "env": {
        "STRAITLY_API_KEY": "<STRAITLY_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": {
    "straitly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "straitly-mcp"
      ],
      "env": {
        "STRAITLY_API_KEY": "<STRAITLY_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "straitly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "straitly-mcp"
      ],
      "env": {
        "STRAITLY_API_KEY": "<STRAITLY_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": {
    "straitly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "straitly-mcp"
      ],
      "env": {
        "STRAITLY_API_KEY": "<STRAITLY_API_KEY>"
      }
    }
  }
}
```

## Tools

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

- `list_models` (name suggests: reads): Search the live catalog of models by lab, name or ID, with context window and per-million-token pricing.
- `get_model` (name suggests: reads): Fetch live metadata, pricing and documentation URL for a specific model.
- `chat_completion`: Run a chat completion against any model on the Straitly API using an API key.

## FAQ

### How do I switch an existing app to Straitly?

Set the base URL to https://api.straitly.ai/v1 and use your Straitly API key in place of the provider key. The OpenAI and Anthropic SDKs keep working.

### Is there a subscription or minimum spend?

No. Credits can be topped up from $5, with no subscription, no minimum spend and no card fee on top-ups.

### Do failed requests get charged?

No, failed requests cost nothing.

### Does the MCP server need an API key?

Listing and looking up models work without a key. chat_completion requires a STRAITLY_API_KEY.

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

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

### What are the best alternatives to Straitly?

The closest alternatives to Straitly are UplinkSwitch, uplinkswitch, MartLLM, Hubris and Unrestrictable.

## 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.
- [uplinkswitch](https://ai-powered.com/mcp/uplinkswitch-2): uplinkswitch is a paid MCP server for design and media.
- [MartLLM](https://ai-powered.com/mcp/martllm): MartLLM is a paid MCP server for ai models and llm tooling.
- [Hubris](https://ai-powered.com/mcp/hubris): Hubris 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.
- [CrowLLM](https://ai-powered.com/mcp/crowllm-2): CrowLLM is a freemium MCP server for ai models and llm tooling.
- [LLM Broker](https://ai-powered.com/mcp/llm-broker): LLM Broker is a paid MCP server for ai models and llm tooling.
- [Phase Router](https://ai-powered.com/mcp/phase-router): Phase Router is a paid MCP server for ai models and llm tooling.

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