MCP-Bastion runs on your own machine — the client starts it, so there is no endpoint to ping. 437 installs a week from pypi. Last commit 1 Nov 2026.
Security middleware for MCP. Blocks prompt injection, PII leakage, and resource exhaustion.
We read the source, 21 h ago · rules 995398eba69f
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": {
"command": "uvx",
"args": [
"mcp-bastion-python"
]
}
}
}
[mcp_servers.mcp-bastion]
command = "uvx"
args = ["mcp-bastion-python"]
{
"mcpServers": {
"mcp-bastion": {
"command": "uvx",
"args": [
"mcp-bastion-python"
]
}
}
}
{
"servers": {
"mcp-bastion": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-bastion-python"
]
}
}
}
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.
Security scanner for AI agents: prompt injection, leaked secrets, PII, and SSRF-risk URL detection.
The local security layer for coding agents: secret redaction, injection checks and an MCP proxy.
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.
Answers built from our own checks of this server.