Skip to main content

mcp-bastion-litellm

Security middleware for LiteLLM powered by MCP-Bastion.

MCP-Bastion security middleware for LiteLLM (100+ LLM providers via one OpenAI-compatible API).

Install

pip install mcp-bastion-litellm

Usage

from mcp_bastion_litellm import SecureLiteLLM

client = SecureLiteLLM()
print(client.chat("What is MCP?", model="gpt-4o-mini"))

Features

  • Content filtering on prompts / messages
  • Rate limiting per caller
  • Prompt injection heuristics (via MCP-Bastion core)
  • Pulls in mcp-bastion-python automatically

License

Same terms as the MCP-Bastion project: see LICENSE. Non-commercial use is free with required citation/attribution; copyright terms apply. Commercial use as defined in the License may need a separate agreement (COMMERCIAL_LICENSE.md).

Release files for mcp-bastion-litellm 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-bastion-litellm 5.1.0
File Size Uploaded
mcp_bastion_litellm-5.1.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-bastion-litellm 5.1.0
File Interpreter ABI Platform
mcp_bastion_litellm-5.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / mcp_bastion_litellm-5.1.0.tar.gz

Download URL mcp_bastion_litellm-5.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
59f251894445af19ec739ba5aaf77edcc223cf371b8c7504aa9817b21bd036d8
BLAKE2b-256 checksum
How to use checksums
408ae9d1f92197ff960e6cb79818d2ede7c3347dc5926ecd9eb40c92b4822e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / mcp_bastion_litellm-5.1.0-py3-none-any.whl

Download URL mcp_bastion_litellm-5.1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db1677c04a61fca6b15f02b38a4a8169fb91e461e43ffef09738520b8f94b13f
BLAKE2b-256 checksum
How to use checksums
2be19e18e995fed6e871016619cf5e93456a1b3cdb33517a8af668c03211e38a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

5.1.0 This release

2 release files

5.0.0

2 release files

4.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page