Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

LLM Gateway

MCP server by theopenco Community

Routes requests from your applications to multiple LLM providers through one gateway, and tracks token usage and costs. Available as a hosted service at llmgateway.io or self-hosted with Docker.

  • Score 84
  • 1.8k stars
  • NOASSERTION
  • Updated

Install LLM Gateway

Built from the published package, never by AI.

claude mcp add --transport http llm-gateway https://api.llmgateway.io/mcp --header "Authorization: Bearer YOUR_API_KEY"

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install LLM Gateway in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the llm-gateway block.

About

LLM Gateway is an open-source API gateway for Large Language Models. It sits between your applications and LLM providers such as OpenAI, Anthropic and Google Vertex AI, so you can route requests to several providers through one place. It offers an OpenAI-compatible API format, manages API keys for different providers in one place, and tracks token usage and costs.

It can be used as a hosted service at llmgateway.io, where you create an account and get an API key, or self-hosted on your own infrastructure for control over your data and configuration. The self-hosted route uses Docker images. The project also includes performance monitoring to compare models' cost-effectiveness and a dashboard. It is meant for applications that call several LLM providers and need usage and cost tracking. Enterprise features such as advanced billing and full request retention require a separate license.

Written from the project's README and checked against it.

What you need

  • An account and API key from llmgateway.io (hosted version)
  • Docker (self-hosted version)
  • pnpm, for the development setup
SettingNeededWhat it is
AuthorizationHeader, secretRequiredLLM Gateway API key as 'Bearer <api-key>'. Create one at https://llmgateway.io/dashboard

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Show my LLM token usage and costs across all providers
  • Send this chat request through the LLM Gateway API
  • Compare the performance and cost of two models

Good to know

  • The source describes an API gateway and does not list any MCP tools.
  • Full request and response payload retention is only on Retain All Data; other plans are metadata only.
  • Commercial features in the ee/ directory require an Enterprise license.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Route requests to multiple LLM providers
  • Track token usage and costs
  • Manage API keys for several providers

Alternatives to LLM Gateway

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.

AAA Remote 24k
Sim simstudioai
100

Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.

AAA Remote 30k
Omnara omnara-ai
98

Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.

AAA Remote 3.5k
strata Klavis-AI
95

Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.

AAA Remote 5.8k
voicemode mbailey
95

VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

LLM Gateway: common questions

Is LLM Gateway open source?

Core functionality is licensed under AGPLv3. Commercial features in the ee/ directory require an Enterprise license.

Which LLM providers does it support?

The source names OpenAI, Anthropic and Google Vertex AI, and says it connects to various other providers as well. New providers onboard through Airside, not through pull requests.

Can I run LLM Gateway on my own servers?

Yes. The source says it can be self-hosted on your own infrastructure with Docker, for complete control over your data and configuration.

How do I install LLM Gateway?

In Claude Code run claude mcp add --transport http llm-gateway https://api.llmgateway.io/mcp --header "Authorization: Bearer YOUR_API_KEY". For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is LLM Gateway the official server?

LLM Gateway is a community project by theopenco, not verified by a company domain.

Is LLM Gateway free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is LLM Gateway safe to use?

It scores 84 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to LLM Gateway?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does LLM Gateway work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

LLM Gateway Install

Add to stack

Loading.