MCP Aws Kb MCP Server

MCP server for AWS Knowledge Base retrieval using Bedrock Agent Runtime

Local serverstdio

What is the MCP Aws Kb MCP Server?

MCP server for AWS Knowledge Base retrieval using Bedrock Agent Runtime

What you get

  • RAG (Retrieval-Augmented Generation) — Retrieve context from the AWS Knowledge Base based on a query and a Knowledge Base ID
  • Supports multiple results retrieval — Option to retrieve a customizable number of results

What the assistant can call

Once MCP Aws Kb is connected, these are the calls the assistant has available:

  • retrieve_from_aws_kb — Perform retrieval operations using the AWS Knowledge Base
  • Inputs — - query (string): The search query for retrieval

Configuration and credentials

You will need 5 environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGION, AWS_KB_IDS. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

The server ships on npm as with, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Choosing this one

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.

Recorded tools

  • retrieve_from_aws_kb — Perform retrieval operations using the AWS Knowledge Base.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
retrieve_from_aws_kbPerform retrieval operations using the AWS Knowledge Base.
Inputs:query (string): The search query for retrieval.
knowledgeBaseIdstring): The ID of the AWS Knowledge Base.

How to install the MCP Aws Kb MCP Server

{
  "mcpServers": {
    "aws-kb-retrieval": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "AWS_ACCESS_KEY_ID",
        "-e",
        "AWS_SECRET_ACCESS_KEY",
        "-e",
        "AWS_REGION",
        "-e",
        "AWS_KB_IDS",
        "mcp/aws-kb-retrieval-server"
      ],
      "env": {
        "AWS_ACCESS_KEY_ID": "YOUR_AWS_ACCESS_KEY_ID",
        "AWS_SECRET_ACCESS_KEY": "YOUR_AWS_SECRET_ACCESS_KEY",
        "AWS_SESSION_TOKEN": "YOUR_AWS_SESSION_TOKEN",
        "AWS_REGION": "YOUR_AWS_REGION_HERE",
        "AWS_KB_IDS": "[\"kb-12345\", \"kb-67890\"]"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
AWS_ACCESS_KEY_IDDeclared in the maintainer’s client configuration.Check documentation
AWS_SECRET_ACCESS_KEYDeclared in the maintainer’s client configuration.Check documentation
AWS_SESSION_TOKENDeclared in the maintainer’s client configuration.Optional
AWS_REGIONDeclared in the maintainer’s client configuration.Check documentation
AWS_KB_IDSDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use MCP Aws Kb to retrieve from aws kb.”
  • “Use MCP Aws Kb to Inputs.”

Frequently asked questions

MCP server for AWS Knowledge Base retrieval using Bedrock Agent Runtime Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.