stdio databaseawsai

AWS KB Retrieval MCP Server

Query Amazon Bedrock Knowledge Bases for RAG-style document retrieval.

Installation

npx -y @modelcontextprotocol/server-aws-kb-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.

Prerequisites

  • Node.js 18 or later
  • Required API keys — see the Environment Variables table above

Common Errors

  • Server not found / spawn error — ensure Node.js is on your PATH and the package is accessible via npx.
  • Permission denied — check that the path in args is readable by the process running your AI client.
  • Authentication failed — verify your API key is set correctly in the env block.

Related Servers