gammainfra.com
MCP server giving AI agents routed access to many LLM providers via one API
gammainfra.com is a freemium MCP server for ai models and llm tooling. It runs locally on your machine and is started by your AI client.
- Pricing
- Freemium
- Platforms
- CLI, API, Self-hosted
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 0.1.1
- Listing updated
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add mcp-server --env GAMMAINFRA_API_KEY='<GAMMAINFRA_API_KEY>' -- npx -y @gammainfra/mcp-serverAdd --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": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@gammainfra/mcp-server"
],
"env": {
"GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add mcp-server --env GAMMAINFRA_API_KEY='<GAMMAINFRA_API_KEY>' -- npx -y @gammainfra/mcp-serverOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@gammainfra/mcp-server"]
env = { GAMMAINFRA_API_KEY = "<GAMMAINFRA_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@gammainfra/mcp-server"
],
"env": {
"GAMMAINFRA_API_KEY": "<GAMMAINFRA_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
GAMMAINFRA_API_KEYGammaInfra API key (sk-gammainfra-...). Free key at https://gammainfra.com/signupRequiredGAMMAINFRA_BASE_URLOptional base URL override. Defaults to https://api.gammainfra.com/v1
About gammainfra.com
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.
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, 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_modelsName suggests: reads
- Return the full model catalog with pricing and capability flags.
- get_balanceName suggests: reads
- Return managed and bring-your-own-key balances.
- get_statusName suggests: reads
- Return overall and per-provider health and 24h request count.
What it does
- 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
Pricing
Freemium
Free signup with $3 trial credit; usage is billed from balance.
gammainfra.com 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.