MCP server for accessing Amazon Bedrock Knowledge Bases
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
actionsFor detailed instructions on setting up knowledge bases, see:
Here are some ways you can work with MCP across AWS, and we'll be adding support to more products including Amazon Q Developer CLI soon: (e.g. for Amazon Q Developer CLI MCP, ~/.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"
},
"disabled": false,
"autoApprove": []
}
}
}
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.