Query Amazon Bedrock Knowledge Bases using natural language to retrieve relevant information from your data sources.
MCP server for accessing Amazon Bedrock Knowledge Bases
uv
from Astral or the GitHub READMEuv python install 3.10
mcp-multirag-kb
with a value of true
If you intend to use reranking functionality, your Bedrock Knowledge Base needs additional permissions:
bedrock:Rerank
and bedrock:InvokeModel
actionsReranking can be globally enabled or disabled using the BEDROCK_KB_RERANKING_ENABLED
environment variable:
false
(default): Disables reranking for all queries unless explicitly enabledtrue
: Enables reranking for all queries unless explicitly disabledThe environment variable accepts various formats:
This setting provides a global default, while individual API calls can still override it by explicitly setting the reranking
parameter.
For detailed instructions on setting up knowledge bases, see:
Configure the MCP server in your MCP client configuration (e.g., for Amazon Q Developer CLI, edit ~/.aws/amazonq/mcp.json
):
{
"mcpServers": {
"awslabs.bedrock-kb-retrieval-mcp-server": {
"command": "uvx",
"args": ["awslabs.bedrock-kb-retrieval-mcp-server@latest"],
"env": {
"AWS_PROFILE": "your-profile-name",
"AWS_REGION": "us-east-1",
"FASTMCP_LOG_LEVEL": "ERROR",
"KB_INCLUSION_TAG_KEY": "optional-tag-key-to-filter-kbs",
"BEDROCK_KB_RERANKING_ENABLED": "false"
},
"disabled": false,
"autoApprove": []
}
}
}
or docker after a successful docker build -t awslabs/bedrock-kb-retrieval-mcp-server .
:
# fictitious `.env` file with AWS temporary credentials
AWS_ACCESS_KEY_ID=ASIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_SESSION_TOKEN=AQoEXAMPLEH4aoAH0gNCAPy...truncated...zrkuWJOgQs8IZZaIv2BXIa2R4Olgk
{
"mcpServers": {
"awslabs.bedrock-kb-retrieval-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"--interactive",
"--env",
"FASTMCP_LOG_LEVEL=ERROR",
"--env",
"KB_INCLUSION_TAG_KEY=optional-tag-key-to-filter-kbs",
"--env",
"BEDROCK_KB_RERANKING_ENABLED=false",
"--env",
"AWS_REGION=us-east-1",
"--env-file",
"/full/path/to/file/above/.env",
"awslabs/bedrock-kb-retrieval-mcp-server:latest"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}
NOTE: Your credentials will need to be kept refreshed from your host
IMAGE
content type are not included in the KB query response.reranking
parameter requires additional permissions, Amazon Bedrock model access, and is only available in specific regions.Access Axiom logs through an MCP server. Requires an Axiom API token.
An unofficial server for interacting with the Yandex Cloud API.
Analyze CDK projects to identify AWS services used and get pricing information from AWS pricing webpages and API.
Deploy a remote, authentication-free MCP server on Cloudflare Workers or locally via npm.
A remote MCP server without authentication, deployable on Cloudflare Workers.
Exposes Check Point security management data for AI-powered automation and analysis.
A Python-based MCP server for Cisco's Meraki Dashboard, providing tools to query the API for discovering, monitoring, and managing your Meraki environment.
Integrate with Salesforce to perform actions like testing connections and running queries.
An MCP server for interacting with the ThingsPanel IoT platform.
Search and run capsules, execute pipelines, and manage data assets on the Code Ocean platform.