Skip to content
reaatechREAATECH

reaatech/mcp-gateway

0Last commit: Jun 4, 2026GitHub →

These packages give you a full-featured gateway for MCP (Model Context Protocol) servers, handling authentication, rate limiting, caching, schema validation, tool access control, and fan-out routing to multiple upstreams. You would adopt them to add production middleware—like Kong or Envoy—in front of your MCP servers without building each piece from scratch. The ten packages are independently versioned and composable, so you can install only the middleware you need (e.g., just auth and rate limiting) or wire them all together through the provided Express 5 server with a CLI.

Packages

10 packages

@reaatech/mcp-gateway-allowlist

v1.0.0
A per-tenant tool access control library for MCP gateways, providing Express middleware that enforces allow/deny rules with wildcard pattern matching and versioned allowlist storage.
status
published
published
22 days ago

@reaatech/mcp-gateway-audit

v1.0.0
A structured audit logging library for the MCP Gateway that captures security-relevant events (auth, rate limiting, tool execution, cache operations) with configurable severity, multiple storage backends (console, file, in-memory), tamper-evident SHA-256 chaining, and a query API. Provides logger classes and event creation utilities that output JSON.
status
published
published
22 days ago

@reaatech/mcp-gateway-auth

v1.0.0
Pluggable Express middleware that authenticates requests via API key, JWT (with JWKS), OAuth2 token introspection (RFC 7662), or OIDC ID token validation, attaching a typed `AuthContext` with tenant, user, and scope information to every request.
status
published
published
22 days ago

@reaatech/mcp-gateway-cache

v1.0.0
An Express middleware and cache manager for MCP Gateway responses, providing in-memory LRU or Redis backends with per-tool TTL strategies, `Cache-Control` bypass support, and standard `X-Cache` response headers.
status
published
published
22 days ago

@reaatech/mcp-gateway-core

v1.0.0
Core types, Zod schemas, configuration loading, and structured logging for the MCP Gateway ecosystem. It provides domain interfaces, runtime validation, YAML-based config loading with hot-reload, SSRF-protected upstream validation, and a Pino-based structured logger.
status
published
published
22 days ago

@reaatech/mcp-gateway-fanout

v1.0.0
A function that fans out a single MCP request to multiple upstream servers, then aggregates responses using strategies like first-success, all-wait, or majority-vote. It provides `executeFanout()` and related utilities for weighted upstream selection, circuit breaking, retry with exponential backoff, and health checking.
status
published
published
22 days ago

@reaatech/mcp-gateway-gateway

v1.0.0
An Express 5-based MCP Gateway server factory (`createApp()`) that wires together authentication, rate limiting, schema validation, tool allowlists, fan-out routing, response caching, audit logging, and OpenTelemetry observability into a single middleware pipeline, with a CLI binary for start, health checks, config validation, and diagnostics.
status
published
published
22 days ago

@reaatech/mcp-gateway-observability

v1.0.0
OpenTelemetry tracing, metrics, health checks, and structured logging for the MCP Gateway, providing auto-configured OTel SDK initialization, pre-built gateway metrics (counters, histograms, gauges), liveness/readiness/deep-health endpoints, and structured JSON logging via Pino. Exports health check functions (`getLiveness`, `getDeepHealth`, `registerProbe`, `createRedisProbe`), metric instruments, and a Pino logger.
status
published
published
22 days ago

@reaatech/mcp-gateway-rate-limit

v1.0.0
A per-tenant rate limiter for MCP gateways using a token bucket algorithm, providing Express middleware that enforces configurable per-minute and per-day request limits and sets standard `X-RateLimit-*` response headers. Exports a `createRateLimiter()` factory function that returns a `RateLimiter` class instance, with in-memory and Redis-backed storage options (Redis support requires the `redis` package).
status
published
published
22 days ago

@reaatech/mcp-gateway-validation

v1.0.0
JSON Schema validation for MCP protocol messages, providing an Express middleware that validates JSON-RPC 2.0 request structure and MCP method payloads, plus a `SchemaValidator` class and `CustomSchemaManager` for per-tool argument/output validation with schema caching and versioning.
status
published
published
22 days ago

Comments

Sign in with GitHub to comment and vote.

Loading comments…