Skip to content
Claude Code

MCP-Bastion for Claude Code

io.github.vaquarkhan/mcp-bastion

Security middleware for MCP. Blocks prompt injection, PII leakage, and resource exhaustion.

client:Claude Code transport:stdio runtime:pypi

Install MCP-Bastion in Claude Code

run in your project directory

claude mcp add mcp-bastion -- uvx mcp-bastion-python

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

MCP-Bastion in other clients