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 Aws Kb MCP server exists for a simple reason — assistants are far more useful when they can act on MCP Aws Kb directly instead of describing what you should do. 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. The server will not start without them, which is usually why the tools fail to appear on a first run. 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

This sits in the cloud and infrastructure group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Aws Kb's toolset — retrieve_from_aws_kb, Inputs — is a fair guide to whether it matches your workflow. It is maintained by sammcj; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP Aws Kb's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

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.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp aws kb mcp server does with a few real requests.

Available tools

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

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_ACCESS_KEY_HERE",
        "AWS_SECRET_ACCESS_KEY": "YOUR_SECRET_ACCESS_KEY_HERE",
        "AWS_SESSION_TOKEN": "YOUR_OPTIONAL_SESSION_ID_FOR_SSO_TEMPORARY_CREDENTIALS_HERE",
        "AWS_REGION": "YOUR_AWS_REGION_HERE",
        "AWS_KB_IDS": "[\"kb-12345\", \"kb-67890\"]"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
AWS_ACCESS_KEY_IDCredential the server authenticates with.Yes
AWS_SECRET_ACCESS_KEYCredential the server authenticates with.Yes
AWS_SESSION_TOKENCredential the server authenticates with.Yes
AWS_REGIONConfiguration value read at startup.Optional
AWS_KB_IDSConfiguration value read at startup.Optional

Example prompts to try

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

Frequently asked questions

It connects MCP Aws Kb to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (retrieve_from_aws_kb, Inputs) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Aws Kb directly.