MCP-Bastion runs on your own machine — the client starts it, so there is no endpoint to ping. 283 installs a week from pypi. Last commit 17 Sep 2026.
Security middleware for MCP. Blocks prompt injection, PII leakage, and resource exhaustion.
We read the source, 18 h ago · rules 3dff92dd89df
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
return subprocess.run(argv, env=env).returncode
__import__(mod)
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add mcp-bastion -- uvx mcp-bastion-python
{
"mcpServers": {
"mcp-bastion": {
"args": [
"mcp-bastion-python"
],
"command": "uvx"
}
}
}
[mcp_servers.mcp-bastion]
command = "uvx"
args = ["mcp-bastion-python"]
{
"mcpServers": {
"mcp-bastion": {
"args": [
"mcp-bastion-python"
],
"command": "uvx"
}
}
}
{
"mcpServers": {
"mcp-bastion": {
"args": [
"mcp-bastion-python"
],
"command": "uvx"
}
}
}
MCP security guard + package manager: trust-scored installs, blocks prompt injection and rug-pulls.
Scan for prompt injection, secrets, PII, and vet MCP servers before installation
Security gateway for MCP agents: blocks prompt-injection-driven tool calls before they execute.
Multi-agent LLM security layer detecting prompt injection and jailbreaks.
Security layer for AI agents: blocks prompt injection, detects fake packages, scans vulnerabilities.
Security-first web access for Claude. Sanitizes pages, blocks injection, redacts PII.
Security firewall for AI agents — scans MCP calls for injection, secrets, and risks.
Scan prompts for injection attacks, redact PII, and audit LLM SDK usage from any MCP client
Answers built from our own checks of this server.