CAPI

•
11
•

Provides a lightweight API gateway and load balancer leveraging Apache Camel for dynamic routing and automated service discovery through HashiCorp Consul.

CAPI is a lightweight API Gateway and load balancer powered by Apache Camel dynamic routes. It enables services to register themselves in HashiCorp Consul, automatically discovering them, creating routes, and applying security, throttling, and observability policies without requiring a database. Additionally, CAPI offers experimental features like an MCP Gateway to expose existing REST APIs as tools for LLM agents and a gRPC Gateway for transparent HTTP/2 reverse proxying of gRPC services.

Key Features

01Integrated security with OAuth2/OIDC token validation and OPA authorization
028 GitHub stars
03Distributed throttling, load balancing, and failover capabilities
04[Experimental] MCP Gateway to expose REST APIs as LLM tools
05REST, WebSocket, and SSE gateway with dynamic routing
06Automatic service discovery and routing via HashiCorp Consul

Use Cases

01Securing and monitoring APIs with integrated authentication, authorization, tracing, and metrics
02Exposing existing REST APIs as callable tools for LLM agents without backend code changes
03Building a lightweight and dynamic API gateway for microservices