barbacane
Active·★ 27·AGPL-3.0·Updated 2026-05-05
★ Trending★ Security & Safety★ API Integration
Barbacane API and Bidirectional AI Gateway
Barbacane is a spec-driven API gateway built in Rust. It uses OpenAPI/AsyncAPI specs as configuration, compiles them into sealed artifacts, and provides routing, validation, authentication, AI traffic management, and MCP support. It features fast performance, security by default, and an extensible plugin system.
#ai#ai-gateway#ai-gateways#api#asyncapi#gateway#mcp-server#mcp-servers
01
Features
01Spec as config — your OpenAPI/AsyncAPI spec is the single source of truth
02Fast and predictable — Rust, Tokio, and Hyper, with route lookup in ~83 ns
03Secure by default — memory-safe runtime, TLS via Rustls, sandboxed WASM plugins
04AI gateway built-in — unified LLM routing with provider fallback and dedicated middlewares
05MCP from your spec — every operation is automatically exposed as a Model Context Protocol tool
02
Compatibility
Rust
Rust 1.75+
Verified via docs
Linux
Linux
Verified via docs
macOS
macOS
Verified via docs
03
Quick start
1
$ git clone https://github.com/barbacane-dev/barbacane.git
2
$ cd barbacane
3
$ cargo build --release
04
Use cases
↳API gateway for microservices with spec-driven routing and validation
↳AI proxy to unify multiple LLM providers with fallback and policy enforcement
↳Expose existing OpenAPI specs as MCP tools for AI agents
05
Alternatives
FunASR★ 16.6k
Industrial-grade speech recognition toolkit: 170x realtime, 50+ languages, speaker diarization, emotion detection, streaming, and OpenAI-compatible API.
thunderbit-mcp-server★ 13
AI-powered web scraping and structured data extraction. CLI + MCP server + Claude Code plugin for the Thunderbit Open API.
Related searches
Comments
Log in to leave a comment
- PPeyton LeeMay 6, 2026
Works for real-time integration scenarios where unidirectional REST isn't sufficient.
- Elliot ChenApr 11, 2026
Bidirectional AI gateway for API integration scenarios that need two-way communication.
- PParker ZhangMar 16, 2026
Gateway architecture handles the routing complexity so application code stays clean.
- EEllis ClarkMar 7, 2026
Good for workflows where AI needs to both query and respond through the same channel.