Gateway Architecture

The multi-tenant gateway that powers MCPify's AI integrations at scale

The MCPify Gateway is a high-performance, multi-tenant gateway that sits between AI agents and your APIs. It handles authentication, routing, caching, and monitoring while providing a unified interface for all your MCP services.

Architecture Overview

AI Agents Layer

Claude, GPT-5, Custom Agents

LLMs and AI agents connect via MCP protocol

↓ MCP Protocol (JSON-RPC over Streamable HTTP)

MCPify Gateway

Core Infrastructure
• Authentication & Authorization
• Request Routing
• Response Caching
• Monitoring & Analytics
• Error Handling & Retries
↓ HTTP(S) to your APIs

Your APIs

External Services

CRM, ERP, Databases, Custom APIs, Third-party services

Core Components

Request Router

Intelligent routing based on service discovery:

  • Service discovery and registration
  • Circuit breaker for fault tolerance
  • Automatic retry with backoff

Authentication Manager

Centralized authentication and credential management:

Supported Auth Types

  • • OAuth 2.0
  • • API Key authentication
  • • JWT tokens
  • • Basic authentication
  • • Custom headers

Security Features

  • • Encrypted credential vault
  • • Automatic token refresh
  • • Multi-tenant isolation
  • • Audit logging

Intelligent Cache Layer

Multi-tier caching:

Response Cache

API responses • TTL set per tool

Durable Cache

Responses from append-only APIs • stored durably

MCP Transport

Streamable HTTP

The gateway serves the MCP Streamable HTTP transport. A tool call is a POST to the service endpoint; the result comes back as JSON, or as one server-sent event when the client accepts only text/event-stream.

POST https://my-api.mcp.mcpify.org/mcp
Accept: application/json, text/event-stream

{"jsonrpc":"2.0","id":1,"method":"tools/call",
 "params":{"name":"my-api___list_users","arguments":{}}}

Monitoring & Analytics

Collected Per Service

  • • Request volume
  • • Response times
  • • Error rates

Available On Request

  • • Usage per service
  • • Token consumption
  • • Most-called tools
  • • See Observability docs

Health Monitoring

  • • Service availability
  • • Resource utilization

Deployment

🌐 Hosted by MCPify

Fully managed multi-tenant gateway

  • • No infrastructure to manage
  • • Automatic scaling and updates
  • • Hosted in the EU/EEA

Related Documentation