Atlas / MCP servers / barbacane-dev / Barbacane

BarbacaneBLOCK

mcp/barbacane-dev/barbacane

Barbacane API and Bidirectional AI Gateway

Verdict
BLOCK
Grade
F
Trust score
46 /100
Exposed tools
9 9r · 0w · 0d
Transport
—
License
AGPL-3.0
Stars
28
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Barbacane

Your spec is your gateway.

Barbacane is a spec-driven API gateway built in Rust. Point it at an OpenAPI or AsyncAPI spec and it enforces it: routing, request and response validation, authentication, rate limiting, a native WAF, and observability, all declared in the spec you already write. No proprietary config language, no drift between your spec and your infrastructure. The same middleware chain also routes LLM traffic and exposes your operations to agents as typed MCP tools.

  • Spec as config — Your OpenAPI 3.x or AsyncAPI 3.x specification is the single source of truth. The compiler turns it into a sealed .bca artifact; no separate gateway DSL to maintain.
  • **A full API
Read from source at commit cfa79733407eOBSERVED · 2026-10-08
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add ui -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "ui": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (9)

9 read · 0 write · 0 destructive.

ToolRiskDescription
barbacane-auth-opt-outreadChecks that operations explicitly opt out of global auth middleware
barbacane-mcp-requires-fieldsreadValidates that MCP-enabled operations have operationId and summary/description
barbacane-no-plaintext-upstreamreadWarns when upstream dispatchers use plaintext protocols instead of HTTPS/WSS
barbacane-no-unknown-extensionsreadDetects unknown x-barbacane-* extension keys
barbacane-valid-path-paramsreadValidates path parameters, supporting Barbacane
barbacane-valid-secret-refsreadValidates env:// and file:// secret reference format
barbacane-validate-ai-regexreadCompile-checks regex patterns in ai-prompt-guard and ai-response-guard profiles
barbacane-validate-dispatch-configreadValidates x-barbacane-dispatch.config against the dispatcher plugin schema
barbacane-validate-middleware-configreadValidates middleware config against the plugin
04

Trust audit

BLOCKgrade F · trust 46/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)FAIL
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (11 observation(s))
Network
declared (14 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHNetwork egress · net.metadata_ip · CWE-200, CWE-319
crates/barbacane-wasm/src/broker.rs:279
split_host_port("169.254.169.254:9092", 9092),
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
HIGHNetwork egress · net.metadata_ip · CWE-200, CWE-319
crates/barbacane-wasm/src/broker.rs:280
("169.254.169.254".into(), 9092)
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
HIGHNetwork egress · net.metadata_ip · CWE-200, CWE-319
crates/barbacane-wasm/src/http_client.rs:455
|| v4.is_link_local() // 169.254.0.0/16, incl. 169.254.169.254 cloud metadata
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
HIGHNetwork egress · net.metadata_ip · CWE-200, CWE-319
crates/barbacane-wasm/src/http_client.rs:848
resolve_permitted_addrs("169.254.169.254", 80, false).await,
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
Makefile:16
DATABASE_URL ?= postgres://barbacane:barbacane@localhost:5432/barbacane
HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
crates/barbacane-control/src/api/tests.rs:7
//! DATABASE_URL=postgres://barbacane:barbacane@localhost:5432/barbacane \
HIGHPrompt injection · prompt.override · CWE-94, CWE-1427
adr/0024-ai-gateway-plugin.md:394
- **Pattern blocking** — regex-based prompt injection detection (blocks known jailbreak patterns)
Why it matters. asks the agent to drop prior instructions or safety
Fix. remove the instruction
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/barbacane-test/src/gateway.rs:601
format!("http://127.0.0.1:{}", self.admin_port)
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/barbacane-test/src/gateway.rs:844
port_from_log_line("[stderr] barbacane: listening on http://127.0.0.1:52133"),
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/barbacane-test/src/gateway.rs:848
port_from_log_line("[stderr] barbacane: admin API on http://127.0.0.1:41999"),
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/barbacane-test/src/gateway.rs:852
port_from_log_line("[stderr] barbacane dev: listening on http://127.0.0.1:8080"),
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
crates/barbacane-test/src/gateway.rs:856
port_from_log_line("[stderr] barbacane: listening on https://127.0.0.1:8443"),
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
.github/workflows/ci.yml:337
DATABASE_URL: postgres://barbacane:barbacane@localhost:5432/barbacane
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
.github/workflows/ci.yml:571
DATABASE_URL: postgres://barbacane:barbacane@localhost:5432/barbacane
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
.github/workflows/coverage-full.yml:45
DATABASE_URL: postgres://barbacane:barbacane@localhost:5432/barbacane
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
docs/rulesets/tests/invalid-plaintext-secret.yaml:18
api_key: "sk-plaintext-should-warn"
LOWInventory / provenance · inv.hidden_file · CWE-1104
.coderabbit.yaml
.coderabbit.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
crates/barbacane-compiler/src/artifact.rs:5954
"SecRule ARGS \"@pmFromFile ../../etc/passwd\" \"id:2003,phase:2,deny\"\n",
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
crates/barbacane-control/src/api/multipart.rs:86
assert_eq!(safe_filename("../../etc/passwd"), "passwd");
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
crates/barbacane-control/src/api/router.rs:31
const OPENAPI_SPEC: &str = include_str!("../../openapi.yaml");
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
crates/barbacane-test/src/cli.rs:406
fixtures().join("../../plugins/mock/mock.wasm").display()
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
crates/barbacane-test/src/gateway.rs:764
"../../target/debug/barbacane",
LOWNetwork egress · net.metadata_ip · CWE-200, CWE-319
crates/barbacane-test/tests/security/ssrf.rs:53
"host must refuse outbound HTTP to 169.254.169.254 (metadata SSRF); \
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
ui/package.json
@tanstack/react-query, ajv, ajv-formats, class-variance-authority, clsx, lucide-react, react, react-dom
Why it matters. 30 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.credential_read · CWE-94, CWE-1427
docs/reference/cli.md:675
| `env://` | `env://API_KEY` | Read from environment variable |
Why it matters. asks the agent to read credentials

Gates applied: instruction_override, no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha cfa79733407efull audit observations/trust-audit/mcp-server/barbacane-dev__barbacane.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-08cfa79733407eBLOCKF46first audit
06

Questions

What is the Barbacane MCP server?

Barbacane API and Bidirectional AI Gateway

What tools does Barbacane expose?

9 in total: 9 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Barbacane safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (46/100) and found 7 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does Barbacane need?

No credential environment variables were found in its source, so it appears to need none.

How current is this page?

The grade is for one exact copy of the source (cfa79733407e), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement