Open Source ยท Go ยท MCP

Route your AI agent
across any model

Open-source MCP gateway for personal AI agents. Send cheap tasks to DeepSeek, reasoning-heavy workflows to Claude. Built in Go, runs anywhere.

View on GitHub Get in touch
# Connect Claude Code to MCPGate MCP server
# ~/.claude/mcp_servers.json
{
  "mcpServers": {
    "mcpgate": {
      "url": "https://mcpgate.org/sse",
      "transport": "sse"
    }
  }
}
The Problem

Cloud LLMs are expensive.
Local infra is fragmented.

๐Ÿ’ธ Cost explosion

Routing every request to Claude or GPT-4 is 10โ€“50ร— more expensive than it needs to be. Most tasks don't require frontier reasoning.

๐Ÿ”Œ No standard interface

Each model has a different API. Switching providers means rewriting integrations. Agents have no unified tool layer.

๐Ÿง  Wrong model, wrong task

Budget tracking doesn't need Claude Opus. Code review does. Without smart routing, you pay premium prices for commodity work.

๐Ÿ“ฆ No portable skill layer

Custom skills (budget, RAG, mail) are locked to a single agent. MCP enables any Claude-compatible client to use your tools.

What MCPGate Does

One gateway. All your tools.

๐Ÿ”€

Multi-model routing

DeepSeek for commodity tasks. Gemini for fallback. Claude for agentic planning and MCP tool calls.

๐Ÿ”ง

MCP SSE endpoint

Standard Model Context Protocol server over SSE. Compatible with Claude Code and any MCP client.

๐Ÿ’ฐ

Budget skill

Track expenses and income. Multi-currency (RUB/THB). Recurring payments. Spending forecast.

๐Ÿ“š

RAG search

Personal knowledge base with semantic search. Ask questions over your documents and data.

๐Ÿ“ง

Mail digest

Gmail/IMAP integration. Daily digest agent summarizes your inbox via Telegram.

๐Ÿ“Š

Benchmarks (coming)

Reasoning-heavy workflow benchmarks comparing Claude vs cheap models. Published as OSS data.

Architecture

Stateless. Plugin-based. Go.

Telegram โ”€โ”€โ†’ agent.Service โ”€โ”€โ†’ plugin.Registry
                                    โ”œโ”€โ”€ BudgetSkill
                                    โ”œโ”€โ”€ RAGSearchSkill
                                    โ””โ”€โ”€ MailSkill
                                                  โ”‚
                                                  โ–ผ
MCP SSE :8080 โ”€โ”€โ†’ same plugin.Registry # any MCP client
                                                  โ”‚
                                                  โ–ผ
DeepSeek (primary) โ”‚ Gemini (fallback) โ”‚ Claude (agentic)
Go 1.25 PostgreSQL MCP / SSE DeepSeek Gemini Claude / Bedrock Telegram Bot API Docker Compose GitHub Actions
Open Source

Self-host in 5 minutes

Clone, set your API keys, run docker compose up. MCP endpoint live on :8080.

Star on GitHub hello@mcpgate.org