# gammainfra.com

> gammainfra.com is a freemium MCP server for ai models and llm tooling. MCP server giving AI agents routed access to many LLM providers via one API. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/yuz0101/gammainfra-mcp-server
- **MCP Registry name:** com.gammainfra/mcp-server
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-27

## About

Routes chat requests from an MCP-compatible assistant to the most suitable model across many providers, using a single OpenAI-style interface. Instead of wiring each provider into an agent separately, the host gets four tools: chat completions, a model catalog with pricing, balance checks, and provider health status.

The chat tool accepts an automatic routing model or a pinned model, along with dials for cost versus quality, latency caps, preference, and region. Each response includes routing metadata such as the serving provider, exact cost in USD, and the fallback chain, so developers can see where their spend went. Bring-your-own-key balances can be queried alongside managed credit.

The server runs locally over stdio through npx and is configured with a GammaInfra API key. It suits developers who use Claude Desktop, Claude Code, Cursor, Cline or Continue and want to control model cost and latency without changing their agent code.

## Features

- **Automatic model routing:** The auto model slug selects a provider and model per request, with fallback retries when an upstream fails.
- **Cost and latency controls:** Tune a cost-quality dial, set a preference, and cap total request time including fallbacks.
- **Per-request cost reporting:** Each response returns the serving provider, the exact cost in USD and the routing path taken.
- **Model catalog lookup:** List available models with per-token pricing and flags for tool use and vision support.
- **Balance and health checks:** Check managed and bring-your-own-key balances and see overall and per-provider status.
- **Regional selection:** Request routing to US, EU, APAC or a specific AWS region.

## Good for

- Let a coding assistant pick cheaper models for routine edits and stronger ones for hard tasks
- Compare the cost of a request across providers before pinning a model
- Keep an agent responsive by capping latency and falling back to other providers
- Track spend per request inside an IDE or desktop assistant
- Keep data processing within a chosen region such as the EU

## Install

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

```sh
claude mcp add mcp-server --env GAMMAINFRA_API_KEY='<GAMMAINFRA_API_KEY>' -- npx -y @gammainfra/mcp-server
```

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-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_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 mcp-server --env GAMMAINFRA_API_KEY='<GAMMAINFRA_API_KEY>' -- npx -y @gammainfra/mcp-server
```

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

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@gammainfra/mcp-server"]
env = { GAMMAINFRA_API_KEY = "<GAMMAINFRA_API_KEY>" }
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e GAMMAINFRA_API_KEY='<GAMMAINFRA_API_KEY>' mcp-server npx -- -y @gammainfra/mcp-server

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_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": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_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": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_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": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_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": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@gammainfra/mcp-server"
      ],
      "env": {
        "GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
      }
    }
  }
}
```

## Tools

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

- `chat_completions`: Send a chat completion request and receive the model response plus routing metadata.
- `list_models` (name suggests: reads): Return the full model catalog with pricing and capability flags.
- `get_balance` (name suggests: reads): Return managed and bring-your-own-key balances.
- `get_status` (name suggests: reads): Return overall and per-provider health and 24h request count.

## FAQ

### What does gammainfra.com cost to get started?

A free API key comes with a $3 trial credit and no credit card is required at signup.

### How is the server installed?

It runs through npx with the package @gammainfra/mcp-server, so no manual install is needed. You add it to your MCP client config with your API key.

### Can gammainfra.com stream responses?

No. MCP tool responses are non-streaming, and the tool does not accept a stream parameter. Streaming requires calling the HTTP API directly.

### Is the server open source?

Yes, it is released under the MIT license and the source is on GitHub.

### How do I add gammainfra.com to Claude Code?

Run this command in your terminal: claude mcp add mcp-server --env GAMMAINFRA_API_KEY='<GAMMAINFRA_API_KEY>' -- npx -y @gammainfra/mcp-server

### What are the best alternatives to gammainfra.com?

The closest alternatives to gammainfra.com are Proxyllm MCP, Phase Router, Longai MCP, Hubris and AgentUtility Model Router.

## Where this comes from

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

## Alternatives

- [Proxyllm MCP](https://ai-powered.com/mcp/proxyllm-mcp): Proxyllm MCP 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.
- [Longai MCP](https://ai-powered.com/mcp/longai-mcp): Longai MCP is an open-source MCP server for design and media.
- [Hubris](https://ai-powered.com/mcp/hubris): Hubris is a paid MCP server for ai models and llm tooling.
- [AgentUtility Model Router](https://ai-powered.com/mcp/agentutility-model-router): AgentUtility Model Router is a paid MCP server for ai models and llm tooling.
- [Adorbis MCP](https://ai-powered.com/mcp/adorbis-mcp): Adorbis MCP is a freemium MCP server for ai models and llm tooling.
- [Myai MCP](https://ai-powered.com/mcp/myai-mcp): Myai MCP is a freemium MCP server for ai models and llm tooling.
- [Straitly](https://ai-powered.com/mcp/straitly): Straitly is a paid MCP server for ai models and llm tooling.

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