About Aws Bedrock Guardrails
Aws Bedrock Guardrails is an MCP server for managing AWS Bedrock Guardrails. It supports policy lifecycle operations and Terraform export for teams managing guardrail configurations programmatically or through MCP clients.
Key features
- 01Create, update, delete, and list guardrails
- 02Manage content and topic policies
- 03Configure word and sensitive-information policies
- 04Handle contextual-grounding policies
- 05Export guardrails as Terraform .tf files
Use cases
- 01Manage Bedrock safety policies programmatically
- 02Export guardrail configurations for IaC workflows
- 03Review and update policies through an MCP client
MCP support
Exposes AWS Bedrock Guardrails management operations as tools for MCP clients, including Claude Desktop. Clients can create, edit, delete, list, and export guardrails.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEBedrock Guardrails MCP Server
Description
This MCP server exposes all AWS Bedrock Guardrails management features as tools, allowing you to create, edit, delete, and export guardrails (including all policy types) programmatically or via LLMs like Claude Desktop. It also supports exporting guardrail configurations as Terraform files for infrastructure-as-code workflows.
Features
- Create, update, delete, and list AWS Bedrock Guardrails
- Full support for all policy types: content, topic, word, sensitive information, contextual grounding, etc.
- Export any guardrail as a Terraform
.tffile (CloudFormation schema) - Secure authentication using AWS credentials from environment variables
- Ready for integration with Claude Desktop or any MCP-compatible client
Prerequisites
- Python 3.12+
- uv package manager
- AWS account with Bedrock Guardrails permissions
- AWS credentials set in your environment (see below)
Setup
-
Clone the repository
-
Install dependencies:
uv venv source .venv/bin/activate uv pip install -r requirements.txt # or use pyproject.toml with uv -
Set AWS credentials in your environment:
export AWS_ACCESS_KEY_ID=your-access-key export AWS_SECRET_ACCESS_KEY=your-secret-key export AWS_SESSION_TOKEN=your-session-token # if using temporary credentials export AWS_REGION=us-east-1 # or your preferred regionSecurity Note: Never commit your credentials to source control. Use environment variables or a secure credentials manager.
-
Run the server:
uv run server.py
Claude Desktop Integration
To use this server as a tool in Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"BedrockGuardrailsMCP": {
"command": "uv",
"args": [
"--directory",
"/Users/haji/mcp-servers/bedrock-guardrails-mcp",
"run",
"server.py"
]
}
}
}
- Replace the directory path with your actual project location.
- Restart Claude Desktop after updating the config.
Example Usage
- Create a guardrail with full policy config:
Use the
create_guardrail_fulltool, passing all required and optional policy configs as dictionaries. - Update a guardrail:
Use
update_guardrail_fullwith the guardrail ID and any fields to update. - Export to Terraform:
Use
export_guardrail_to_terraform(guardrail_id)to get a.tfresource block for your guardrail.
Screenshots
Impact & Use Cases
- Enterprise LLM Safety: Centrally manage and automate Bedrock Guardrails for all your generative AI applications.
- DevOps & IaC: Export guardrails to Terraform for version control, reproducibility, and CI/CD integration.
- LLM Tooling: Enable LLMs (like Claude) to programmatically manage safety policies, audit, and remediate risks.
Security
- Credentials are only read from environment variables and never stored in code or logs.
- All AWS API calls are made using the official
boto3SDK.
License
See LICENSE file.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.