npm package: @mcpflow.io/mcp-aws-kb-retrieval-server
Description: 使用Bedrock Agent Runtime从AWS知识库检索信息的MCP服务器实现。
Author: Anthropic, PBC
Latest version: 1.0.2

# Aws Kb Retrieval Server

<!-- MCPFlow Packaged MCP -->
> 此包由 [MCPFlow](https://mcpflow.io) 打包并发布到npm仓库。

使用Bedrock Agent Runtime从AWS知识库检索信息的MCP服务器实现。

## 安装与使用

直接使用npx运行:

```bash
npx @mcpflow.io/mcp-aws-kb-retrieval-server
```

或者先安装后使用:

```bash
# 安装
npm install @mcpflow.io/mcp-aws-kb-retrieval-server

# 使用
npx @mcpflow.io/mcp-aws-kb-retrieval-server
```

## 使用方法

## Usage with Claude Desktop

Add this to your `claude_desktop_config.json`:

## 工具函数

### retrieve_from_aws_kb

Performs retrieval from the AWS Knowledge Base using the provided query and Knowledge Base ID.

**参数:**

- `n`: Number of results to retrieve
- `query`: The query to perform retrieval on
- `knowledgeBaseId`: The ID of the AWS Knowledge Base



## 原始信息

- **开发者:** modelcontextprotocol
- **版本:** 1.0.0
- **许可证:** MIT License
- **原始仓库:** [modelcontextprotocol/servers/tree/main/src/aws-kb-retrieval-server](https://github.com/modelcontextprotocol/servers/tree/main/src/aws-kb-retrieval-server)

## 原始README

# AWS Knowledge Base Retrieval MCP Server

An MCP server implementation for retrieving information from the AWS Knowledge Base using the Bedrock Agent Runtime.

## Features

- **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.

## Tools

- **retrieve_from_aws_kb**
  - Perform retrieval operations using the AWS Knowledge Base.
  - Inputs:
    - `query` (string): The search query for retrieval.
    - `knowledgeBaseId` (string): The ID of the AWS Knowledge Base.
    - `n` (number, optional): Number of results to retrieve (default: 3).

## Configuration

### Setting up AWS Credentials

1. Obtain AWS access key ID, secret access key, and region from the AWS Management Console.
2. Ensure these credentials have appropriate permissions for Bedrock Agent Runtime operations.

### Usage with Claude Desktop

Add this to your `claude_desktop_config.json`:

#### Docker

```json
{
  "mcpServers": {
    "aws-kb-retrieval": {
      "command": "docker",
      "args": [ "run", "-i", "--rm", "-e", "AWS_ACCESS_KEY_ID", "-e", "AWS_SECRET_ACCESS_KEY", "-e", "AWS_REGION", "mcp/aws-kb-retrieval-server" ],
      "env": {
        "AWS_ACCESS_KEY_ID": "YOUR_ACCESS_KEY_HERE",
        "AWS_SECRET_ACCESS_KEY": "YOUR_SECRET_ACCESS_KEY_HERE",
        "AWS_REGION": "YOUR_AWS_REGION_HERE"
      }
    }
  }
}
```

```json
{
  "mcpServers": {
    "aws-kb-retrieval": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-aws-kb-retrieval"
      ],
      "env": {
        "AWS_ACCESS_KEY_ID": "YOUR_ACCESS_KEY_HERE",
        "AWS_SECRET_ACCESS_KEY": "YOUR_SECRET_ACCESS_KEY_HERE",
        "AWS_REGION": "YOUR_AWS_REGION_HERE"
      }
    }
  }
}
```

## Building

Docker: 

```sh
docker build -t mcp/aws-kb-retrieval -f src/aws-kb-retrieval-server/Dockerfile . 
```

## License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

This README assumes that your server package is named `@modelcontextprotocol/server-aws-kb-retrieval`. Adjust the package name and installation details if they differ in your setup. Also, ensure that your server script is correctly built and that all dependencies are properly managed in your `package.json`.