Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

mcp-bedrock-kb-retrieval-expert

A Model Context Protocol (MCP) server for accessing Amazon Bedrock Knowledge Bases.

Features

  • Discover knowledge bases and their data sources
  • Query knowledge bases with natural language
  • Filter results by data source
  • Rerank results

Prerequisites

Installation Requirements

  1. Install uv from Astral or the GitHub README
  2. Install Python using uv python install 3.13

AWS Requirements

  1. AWS CLI Configuration: You must have the AWS CLI configured with credentials and an AWS_PROFILE that has access to Amazon Bedrock and Knowledge Bases
  2. Amazon Bedrock Knowledge Base: You must have at least one Amazon Bedrock Knowledge Base with the tag key mcp-multirag-kb with a value of true
  3. IAM Permissions: Your IAM role/user must have appropriate permissions to:
    • List and describe knowledge bases
    • Access data sources
    • Query knowledge bases

Reranking Requirements

If you intend to use reranking functionality, your Bedrock Knowledge Base needs additional permissions:

  1. Your IAM role must have permissions for both bedrock:Rerank and bedrock:InvokeModel actions
  2. The Amazon Bedrock Knowledge Bases service role must also have these permissions
  3. Reranking is only available in specific regions: us-west-2, us-east-1, ap-northeast-1, and ca-central-1

For detailed instructions on setting up knowledge bases, see:

Installation

Add the server to your MCP client config (e.g. for Amazon Q CLI MCP, ~/.aws/amazonq/mcp.json):

{
  "mcpServers": {
    "awslabs.mcp-bedrock-kb-retrieval-expert": {
      "command": "uvx",
      "args": ["awslabs.mcp-bedrock-kb-retrieval-expert"],
      "env": {
        "SHELL": "/usr/bin/zsh",
        "AWS_PROFILE": "your-profile-name"
      }
    }
  }
}

Limitations

  • Results with IMAGE content type are not included in the KB query response.
  • The reranking parameter requires additional permissions, Amazon Bedrock model access, and is only available in specific regions.

Release files for awslabs.mcp-bedrock-kb-retrieval-expert 0.0.311803

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awslabs.mcp-bedrock-kb-retrieval-expert 0.0.311803
File Size Uploaded
awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803.tar.gz 28.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for awslabs.mcp-bedrock-kb-retrieval-expert 0.0.311803
File Interpreter ABI Platform
awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803-py3-none-any.whl Python 3 none any Details

Total release size: 38.6 kB

Release files / awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803.tar.gz

Download URL awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c361f94612cd2e6abdacfd27bbb7b88801c4cbd8230371e0c03daad4bcaa7b00
BLAKE2b-256 checksum
How to use checksums
f69b0f498c45735915a3cac2dcf16476255917cbab15daebf31c61b7618688a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 31, 2025.

Transparency log

Release files / awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803-py3-none-any.whl

Download URL awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8293604deb1f8356159fbc69611f5d43603aca019cd429a663fef6f77be861be
BLAKE2b-256 checksum
How to use checksums
197688cbee395226254b66b5cdf7fedc133bc97d4b9a1c5758aef09c7f129467
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 31, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.311803 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page