AWS KB Retrieval MCP Server
Query Amazon Bedrock Knowledge Bases for RAG-style document retrieval.
claude_desktop_config.json
{
"mcpServers": {
"server-aws-kb-retrieval": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aws-kb-retrieval"
],
"env": {
"AWS_ACCESS_KEY_ID": "your-access-key-id",
"AWS_SECRET_ACCESS_KEY": "your-secret-access-key",
"AWS_REGION": "us-east-1",
"KNOWLEDGE_BASE_ID": "your-kb-id"
}
}
}
} Environment Variables
| Variable | Required | Description |
|---|---|---|
AWS_ACCESS_KEY_ID | ✓ Required | AWS access key ID with Bedrock permissions. |
AWS_SECRET_ACCESS_KEY | ✓ Required | AWS secret access key paired with the access key ID. |
AWS_REGION | ✓ Required | AWS region where the Knowledge Base is deployed. |
KNOWLEDGE_BASE_ID | ✓ Required | The Amazon Bedrock Knowledge Base ID to query. |
Setup Instructions
- Ensure Node.js 18+ is installed on your system.
-
Copy the config block above into your
claude_desktop_config.jsonfile (typically at~/.config/claude/claude_desktop_config.jsonon macOS/Linux or%APPDATA%\Claude\claude_desktop_config.jsonon Windows). - Set the
AWS_ACCESS_KEY_IDenvironment variable: AWS access key ID with Bedrock permissions. - Set the
AWS_SECRET_ACCESS_KEYenvironment variable: AWS secret access key paired with the access key ID. - Set the
AWS_REGIONenvironment variable: AWS region where the Knowledge Base is deployed. - Set the
KNOWLEDGE_BASE_IDenvironment variable: The Amazon Bedrock Knowledge Base ID to query. - Restart your AI client to apply the config.