Multi-Tenant Gateway Architecture

One gateway, unlimited APIs. Built for scale, designed for simplicity.

Gateway-Only Architecture

One gateway handles all MCP services through multi-tenant routing based on the Host header. Each service is defined by its configuration.

System Architecture

┌──────────────────────────────────────────────┐
│         Client (Claude.ai, ChatGPT)           │
└────────────────┬─────────────────────────────┘
                 │ Calls your-api.mcp.mcpify.org
                 ↓
┌──────────────────────────────────────────────┐
│              Managed HTTPS edge               │
│  Maps each *.mcp.mcpify.org → Gateway         │
└────────────────┬─────────────────────────────┘
                 │ Preserves Host header
                 ↓
┌──────────────────────────────────────────────┐
│         MCP Gateway Service (Port 8080)       │
│                                                │
│  • Parses service from Host header            │
│  • Handles MCP protocol for ALL services      │
│  • Token counting (cached per tool)           │
│  • OAuth vault with auto-refresh              │
│  • Per-service response caching               │
└────────────────┬─────────────────────────────┘
                 │ Loads config from storage
                 ↓
┌──────────────────────────────────────────────┐
│    Tool Configurations                        │
│                                                │
│  • One JSON config per service                │
│  • e.g. YOUR-API.json                         │
└──────────────────────────────────────────────┘

Core Services

🧮 Token Intelligence

  • • Centralized token counting
  • • Response caching with per-tool TTLs

💾 Smart Caching

  • • Response caching per service
  • • Field filtering support
  • • Full rows kept behind a reference when a compact view is served
  • • TTL control per tool

🔐 OAuth Vault

  • • Secure token storage
  • • Automatic refresh handling
  • • Multi-tenant isolation
  • • Encrypted at rest

📊 Analytics

  • • Usage and latency data per service
  • • Shared with you on request

📄 Pagination

  • • Cursor and page-number strategies
  • • Bounded scans across pages, returned as a compact summary
  • • Continuation details (hasMore, and totalCount when the API states it) on large results

Multi-Tenant Routing

How It Works

  1. 1. Request arrives at subdomain:hubspot.mcp.mcpify.org
  2. 2. The managed HTTPS edge sends each *.mcp.mcpify.org domain to the gateway→ gateway
  3. 3. Gateway parses service from Host headerservice = "hubspot"
  4. 4. Loads configuration from storageconfigs/hubspot.json
  5. 5. Handles MCP protocol for that serviceReturns tools, executes calls

Benefits at Scale

For 20-30 Wrappers

Bug Fixes

Fix once in gateway
vs 30 different places

Updates

Single gateway deployment
All wrappers benefit instantly

Security

API Key Authentication

API keys authenticate calls to your services

OAuth Token Encryption

Tokens encrypted at rest

Service Isolation

Multi-tenant with namespace separation

Minimal Permissions

Service account follows principle of least privilege