Skip to main content
Glama
README.md
# Bawbel MCP Server

<!-- mcp-name: io.github.bawbel/bawbel-mcp -->

**Security scanner for MCP servers and agentic AI components, exposed as MCP tools.**

Bawbel MCP Server lets any MCP-compatible agent scan servers, check skill files,
score conformance, manage justified suppressions, and query the AVE threat
intelligence database mid-conversation.

[![PyPI version](https://badge.fury.io/py/bawbel-mcp.svg)](https://pypi.org/project/bawbel-mcp/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/bawbel-mcp.svg)](https://pypi.org/project/bawbel-mcp/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/bawbel-mcp.svg)](https://pypi.org/project/bawbel-mcp/)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
[![AVE Standard](https://img.shields.io/badge/AVE-records-teal.svg)](https://github.com/bawbel/ave)
[![MCP Compatible](https://img.shields.io/badge/MCP-compatible-blue.svg)](https://modelcontextprotocol.io)
[![Powered by](https://img.shields.io/badge/powered_by-bawbel--scanner_v1.2.2-1B5E3F.svg)](https://github.com/bawbel/scanner)

---

## Install

```bash
pip install bawbel-mcp
```

Or with all detection engines (YARA, Semgrep, LLM, Magika, Sandbox):

```bash
pip install "bawbel-mcp[all]"
```

---

## Tools

| Tool | Description |
|---|---|
| `scan_content` | Scan raw text content for AVE vulnerabilities |
| `scan_server_card` | Fetch and scan an MCP server-card before connecting |
| `scan_creds` | Credential-focused scan (API keys, tokens, passwords, private keys) |
| `scan_chain` | Delegation chain scan (unsafe sub-agent spawning and inherited permissions) |
| `check_conformance` | Score a server manifest against the MCP spec (18 checks, A+ to F) |
| `accept_finding` | Insert a justified suppression with reason, reviewer, and optional expiry |
| `lookup_ave` | Get a full AVE record by ID with remediation guidance |
| `search_ave` | Search AVE records by keyword |
| `list_ave` | List all AVE records with optional severity/category filters |
| `check_pins` | Detect rug pull drift in a directory of skill files |

## Resources

| Resource | Description |
|---|---|
| `ave://stats` | AVE record counts by severity, from the published AVE corpus |
| `ave://record/{ave_id}` | Full AVE record for a specific ID |

---

## Usage

### Claude Desktop

Add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "bawbel": {
      "command": "uvx",
      "args": ["bawbel-mcp"]
    }
  }
}
```

### Claude Code

```bash
claude mcp add bawbel uvx bawbel-mcp
```

### Cursor / Windsurf

Add to your MCP settings:

```json
{
  "bawbel": {
    "command": "uvx",
    "args": ["bawbel-mcp"]
  }
}
```

### Remote deployment (Streamable HTTP)

```bash
uvx bawbel-mcp --transport streamable-http --host 0.0.0.0 --port 8000
```

---

## Example conversations

**Scan a server before connecting:**

> "Before I add this MCP server to my config, scan it for security issues:
> https://api.some-mcp-server.com"

Claude calls `scan_server_card("https://api.some-mcp-server.com")` and reports
findings with AVE IDs, AIVSS severity scores, and remediation steps.

**Check a skill file:**

> "Check this skill file content for prompt injection vulnerabilities"

Claude calls `scan_content(content)` and returns findings including any
toxic flow chains detected.

**Check for hardcoded credentials:**

> "Does this skill file contain any hardcoded API keys or secrets?"

Claude calls `scan_creds(content)` and returns credential findings only.

**Check for unsafe delegation:**

> "Does this skill spawn sub-agents without proper trust boundaries?"

Claude calls `scan_chain(content)` and returns delegation chain findings.

**Accept a false positive:**

> "Mark AVE-2026-00001 on line 7 of travel.md as a false positive.
> Reason: internal registry endpoint, not attacker-controlled."

Claude calls `accept_finding(...)` and writes the justified suppression
comment directly into the file. The approval is tracked in version control.

**Score a server against the spec:**

> "Does this server follow the MCP spec? https://api.some-mcp-server.com"

Claude calls `check_conformance("https://api.some-mcp-server.com")` and
returns a score, grade, and list of failed checks.

**Look up a vulnerability:**

> "What is AVE-2026-00041 and how do I fix it?"

Claude calls `lookup_ave("AVE-2026-00041")` and returns the full record
with behavioral fingerprint, IOCs, and remediation steps.

**Search for relevant vulnerabilities:**

> "What AVE records cover credential exfiltration?"

Claude calls `search_ave("credential exfiltration")` and returns matching
records with AIVSS scores and OWASP MCP categories.

**Audit mode - see all findings including suppressed:**

> "Scan this file and show me everything, including suppressed findings."

Claude calls `scan_content(content, no_ignore=True)` and bypasses all
suppression layers.

---

## AVE data and configuration

`lookup_ave` and `search_ave` query the AVE API first. When it is unavailable (5xx,
timeout, or network error) they fall back to the published AVE corpus, which is fetched
once and cached. `list_ave` and `ave://stats` use the cached corpus. Every reply ends with
a `Source:` line, and names the fallback when one happened. Registry scan data came from
PiranhaDB, which is offline, so `ave://stats` reports it as unavailable.

| Variable | Default | Description |
|---|---|---|
| `BAWBEL_AVE_API_URL` | `https://api.aveproject.org` | AVE API: `/records/{id}`, `/search?q=` |
| `BAWBEL_AVE_CORPUS_URL` | `https://raw.githubusercontent.com/aveproject/ave/main/dist/ave-records-latest.json` | Published AVE corpus |
| `BAWBEL_AVE_CORPUS_TTL_SEC` | `3600` | How long the cached corpus is reused |
| `BAWBEL_HTTP_TIMEOUT_SEC` | `10` | Timeout for every outbound request |
| `BAWBEL_MAX_API_RESPONSE_BYTES` | `4194304` | Largest AVE JSON response accepted |

URLs must be `http://` or `https://` with a plain host; integers must be positive. Any
other value is ignored with a warning and the default is used.

---

## Requirements

- Python 3.10+
- `bawbel-scanner>=1.2.2` (installed automatically)
- `fastmcp>=3.0.0` (installed automatically)

The `bawbel` CLI must be available in PATH. Installing `bawbel-mcp` installs
`bawbel-scanner` which provides the `bawbel` CLI.

---

## Related

- [bawbel-scanner](https://github.com/bawbel/scanner) - CLI scanner
- [bawbel/ave](https://github.com/bawbel/ave) - AVE standard and records
- [aveproject/ave](https://github.com/aveproject/ave) - the AVE standard and records, an independent project
- [bawbel.io/docs](https://bawbel.io/docs) - Full documentation

---

Apache 2.0. Built by [Bawbel](https://bawbel.io).

TDQS

A3.9/5.0

Scored across 10 tools

Disambiguation4/5

The scan_* tools are the most likely to be confused, but their descriptions clearly separate general content scanning, server-card scanning, credential-specific scanning, and chain-specific scanning. The AVE lookup/search/list tools are also related but have distinct retrieval semantics.

Naming Consistency5/5

All tools follow a predictable verb_noun pattern: scan_content, scan_server_card, check_conformance, lookup_ave, accept_finding. Naming style is consistent throughout with no mixed conventions.

Tool Count5/5

10 tools is well-scoped for a security scanning and AVE management server. Each tool covers a distinct capability without excessive fragmentation or bloat.

Completeness4/5

The server covers scanning, targeted scans, finding lookup, suppression, conformance checking, and pin verification. Minor gaps exist around managing existing suppressions and scanning files by path directly, but core workflows are well covered.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues