LocalFree

Bastion MCP server

vaquarkhan/MCP-Bastion

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

7 GitHub stars1 forks

Install Bastion in Claude Code

Claude Code
claude mcp add vaquarkhan-bastion -- uvx mcp-bastion-python
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "vaquarkhan-bastion": {
      "command": "uvx",
      "args": [
        "mcp-bastion-python"
      ]
    }
  }
}

Frequently asked questions

What does the Bastion MCP server do?

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

Is the Bastion MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does Bastion run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Bastion to Claude Code?

Run: claude mcp add vaquarkhan-bastion -- uvx mcp-bastion-python

More security & identity MCP servers

View all