Skip to main content

An AWS Labs Model Context Protocol (MCP) server bedrock-kb-retrieval expert

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803.tar.gz.

File metadata

File hashes

Hashes for awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803.tar.gz
Algorithm Hash digest
SHA256 c361f94612cd2e6abdacfd27bbb7b88801c4cbd8230371e0c03daad4bcaa7b00
MD5 56877e6e48e741a4359cb35d9f33090c
BLAKE2b-256 f69b0f498c45735915a3cac2dcf16476255917cbab15daebf31c61b7618688a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803.tar.gz:

Publisher: release.yml on awslabs/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803-py3-none-any.whl.

File metadata

File hashes

Hashes for awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803-py3-none-any.whl
Algorithm Hash digest
SHA256 8293604deb1f8356159fbc69611f5d43603aca019cd429a663fef6f77be861be
MD5 69edc14e9e9c2976084841dd53e8bb5c
BLAKE2b-256 197688cbee395226254b66b5cdf7fedc133bc97d4b9a1c5758aef09c7f129467

See more details on using hashes here.

Provenance

The following attestation bundles were made for awslabs_mcp_bedrock_kb_retrieval_expert-0.0.311803-py3-none-any.whl:

Publisher: release.yml on awslabs/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page