Straitly
OpenAI-compatible gateway to 117 LLMs with per-token billing below list price
Straitly is a paid MCP server for ai models and llm tooling. It runs locally on your machine and is started by your AI client.
- Pricing
- Paid
- Platforms
- API, CLI, Web
- Runs
- Locally
- Version
- 0.2.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add straitly-mcp --env STRAITLY_API_KEY='<STRAITLY_API_KEY>' -- npx -y straitly-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": {
"straitly-mcp": {
"command": "npx",
"args": [
"-y",
"straitly-mcp"
],
"env": {
"STRAITLY_API_KEY": "<STRAITLY_API_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add straitly-mcp --env STRAITLY_API_KEY='<STRAITLY_API_KEY>' -- npx -y straitly-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.straitly-mcp]
command = "npx"
args = ["-y", "straitly-mcp"]
env = { STRAITLY_API_KEY = "<STRAITLY_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"straitly-mcp": {
"command": "npx",
"args": [
"-y",
"straitly-mcp"
],
"env": {
"STRAITLY_API_KEY": "<STRAITLY_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
STRAITLY_API_KEYStraitly API key. Needed only for chat_completion; the other tools work without it.
About Straitly
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.
Tools this server provides (3)
Taken from the project documentation; the running server may differ.
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_modelsName suggests: reads
- Search the live catalog of models by lab, name or ID, with context window and per-million-token pricing.
- get_modelName 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.
What it does
- 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
Pricing
Paid
Prepaid per-token credits from $5; most models billed 40% under list price; no subscription.
Prices change. Check straitly.ai before you buy.
Straitly 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.