mcpbeat Sign in

MCP-Bastion MCP Server

by vaquarkhan Your server? Claim it
local only

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.

Installs per day peak 619 · avg 89 · -54% w/w
a month agotoday
437
Installs / week
pypi · mcp-bastion-python
7
Stars
0 open issues
1 Nov 2026
Last commit
from GitHub
—
License
Python

What the code does

We read the source, 21 h ago · rules 995398eba69f

Capabilities

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.

This code can reach further than it looks

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.

Three servers free · no card

Connect this server

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.

run in your terminal
claude mcp add mcp-bastion -- uvx mcp-bastion-python
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-bastion": {
      "command": "uvx",
      "args": [
        "mcp-bastion-python"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.mcp-bastion]
command = "uvx"
args = ["mcp-bastion-python"]
.cursor/mcp.json
{
  "mcpServers": {
    "mcp-bastion": {
      "command": "uvx",
      "args": [
        "mcp-bastion-python"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "mcp-bastion": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-bastion-python"
      ]
    }
  }
}

Alternatives to MCP-Bastion

same job, measured the same way
mcpm
by getmcpm

MCP security guard + package manager: trust-scored installs, blocks prompt injection and rug-pulls.

1 121 installs/wk local only
Mund — MCP Security Scanner
by tyox-all

Scan for prompt injection, secrets, PII, and vet MCP servers before installation

94 installs/wk local only
Tripwire
by bonesdefi

Security gateway for MCP agents: blocks prompt-injection-driven tool calls before they execute.

47 installs/wk local only
Agent-Shield
by startekenterprises-ai

Security scanner for AI agents: prompt injection, leaked secrets, PII, and SSRF-risk URL detection.

answering
Zn Gate
by usezn

The local security layer for coding agents: secret redaction, injection checks and an MCP proxy.

1 483 installs/wk local only
AI Firewall MCP
by akhilucky

Multi-agent LLM security layer detecting prompt injection and jailbreaks.

125 installs/wk local only
Agent Security Scanner MCP
by sinewaveai

Security layer for AI agents: blocks prompt injection, detects fake packages, scans vulnerabilities.

418 installs/wk local only
Visus MCP
by leochong

Security-first web access for Claude. Sanitizes pages, blocks injection, redacts PII.

local only

MCP-Bastion — questions

Answers built from our own checks of this server.

Why is there no uptime for MCP-Bastion?
MCP-Bastion runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package mcp-bastion-python was installed 437 times last week.
How do I connect MCP-Bastion?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls mcp-bastion-python straight from pypi; nothing to host, nothing to sign up for.
How many people use MCP-Bastion?
The pypi package mcp-bastion-python was installed 437 times in the last week. Week over week that is -54%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is MCP-Bastion open source?
We cannot say either way: written in Python and 7 stars on GitHub, but we could not determine the licence, and without one the code is not open source by default.