mcp-bastion-python
Security middleware for MCP servers protecting LLM agents from prompt injection, resource exhaustion, and PII leakage
mcp-bastion-python has been downloaded 6,233 times in total on PyPI, including 756 in the last 30 days. The latest version is 1.0.16, released Apr 24, 2026.
Version1.0.16
Downloads
6.23k
LicenseMCP-Bastion Community and Commercial License
Version 1.0
Copyright (c) 2026 Viquar Khan
All rights reserved.
1. Definitions
"Software" means the MCP-Bastion source code, binaries, documentation, and related files in this repository.
"Licensor" means the copyright holder(s) of the Software.
"You" means an individual or legal entity exercising rights under this License.
"Non-Commercial Use" means use that is not primarily intended for or directed toward commercial advantage or monetary compensation.
"Commercial Use" means any use of the Software by or for a business, government, or other organization in production, revenue-generating, internal enterprise, paid consulting, managed service, or other commercial context.
2. Grant for Non-Commercial Use
Subject to this License, Licensor grants You a personal, revocable, non-exclusive, non-transferable, worldwide license to use, copy, modify, and redistribute the Software for Non-Commercial Use only.
3. Attribution and Citation Requirement
Any distribution, public deployment, published benchmark, blog post, paper, or derivative work that uses or is based on the Software must include visible attribution to MCP-Bastion, including:
- Project name: MCP-Bastion
- Repository URL: https://github.com/vaquarkhan/MCP-Bastion
- Copyright notice
If citation metadata exists (for example `CITATION.cff`), You must include that citation information in documentation or acknowledgements.
4. Commercial Use Requires Separate Paid License
No rights are granted under this License for Commercial Use.
For any Commercial Use, You must obtain a separate commercial license from Licensor before use.
See `COMMERCIAL_LICENSE.md` for contact details.
5. Restrictions
You may not:
- remove or alter copyright, attribution, or license notices;
- represent this license as OSI-approved open source;
- use Licensor trademarks, logos, or names except for required attribution.
6. No Warranty
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
7. Limitation of Liability
IN NO EVENT SHALL LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8. Termination
Any use not expressly permitted by this License terminates Your rights automatically.
Upon termination, You must stop use and distribution of the Software until rights are reinstated by Licensor in writing.
9. Governing Terms
For Commercial Use, the separate signed commercial agreement controls and supersedes this License for those use cases.
AuthorViquar Khan
Downloads
Weekly, last 90d.
Includes CI traffic.
VersionsTotal1.*
Range
View
Granularity
Group by
CI traffic
Stack: OffCI: Included2 / 10 series
Selected total9.24k
6.2kAll-time
756Last 30 days
8Last 24 h
<0.01/sPer second
Sponsored
Sponsorships keep pepy free to read
Version distribution
Share of downloads by released version. Computed over the last quarter.
- 0126.0%
1.0.12
1.2k downloadsDownloads1.2k26.0% - 0223.7%
1.0.16
1.1k downloadsDownloads1.1k23.7% - 0313.4%
1.0.13
620 downloadsDownloads62013.4% - 0412.1%
1.0.14
557 downloadsDownloads55712.1% - 0510.8%
1.0.15
501 downloadsDownloads50110.8% - 064.2%
1.0.11
196 downloadsDownloads1964.2% - 073.4%
1.0.7
158 downloadsDownloads1583.4% - 083.2%
1.0.1
147 downloadsDownloads1473.2% - 093.2%
Other
146 downloadsDownloads1463.2%
Guess the next day
Thirteen recent days of mcp-bastion-python downloads. Drag the green handle on the right to guess where day fourteen lands.