servers/src/aws-kb-retrieval-server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
André Holzmüller 0dd9ac9ea0 fix warnings: - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
On branch erdnax123-patch-2
Changes to be committed:
	modified:   src/aws-kb-retrieval-server/Dockerfile
	modified:   src/brave-search/Dockerfile
	modified:   src/everart/Dockerfile
	modified:   src/everything/Dockerfile
	modified:   src/filesystem/Dockerfile
	modified:   src/gdrive/Dockerfile
	modified:   src/github/Dockerfile
	modified:   src/gitlab/Dockerfile
	modified:   src/google-maps/Dockerfile
	modified:   src/memory/Dockerfile
	modified:   src/postgres/Dockerfile
	modified:   src/sequentialthinking/Dockerfile
	modified:   src/slack/Dockerfile
2025-01-02 12:56:40 -03:00
..
Dockerfile fix warnings: - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) 2025-01-02 12:56:40 -03:00
index.ts added aws kb server 2024-12-02 15:11:07 -05:00
package.json Add Dockerfiles for the 17 sample MCP servers 2024-12-19 13:11:34 -08:00
README.md Update readmes to use new mcp namespace 2024-12-19 13:11:36 -08:00
tsconfig.json added aws kb server 2024-12-02 15:11:07 -05:00

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

{
  "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"
      }
    }
  }
}
{
  "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:

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.