AWS Knowledge Base Retrieval MCP server enables efficient context-based search with customizable results using Bedrock Agent Runtime
The AWS Knowledge Base Retrieval MCP Server is an implementation that leverages the Model Context Protocol (MCP) to facilitate the retrieval of information from the AWS Knowledge Base using the Bedrock Agent Runtime. This server enables seamless integration with various AI applications, providing a robust platform for users to augment their queries through contextual data extracted directly from specific knowledge bases.
The core feature of this MCP server is RAG (Retrieval-Augmented Generation), which means it can retrieve context-rich information from the AWS Knowledge Base aligned with specific user queries. Additionally, it supports customizable result retrieval, allowing users to specify and get a pre-set number or dynamic quantity of results.
Below is an illustration of how this data flows through the Model Context Protocol:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
This MCP server is designed to be compatible with various MCP clients, including:
The architecture of the AWS Knowledge Base Retrieval MCP Server is built around a plugin-based structure that integrates seamlessly with the Model Context Protocol. It utilizes Docker for containerization, ensuring robustness and portability across different environments.
Docker users can build the server using this command:
docker build -t mcp/aws-kb-retrieval -f src/aws-kb-retrieval-server/Dockerfile .
To start using the AWS Knowledge Base Retrieval MCP Server, you first need to configure your environment with the necessary AWS credentials. These include:
Ensure that these keys have the appropriate permissions for Bedrock Agent Runtime operations.
Add this to your claude_desktop_config.json
file if you are using 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"
}
}
}
}
Alternatively, you can configure the server using npx
:
{
"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"
}
}
}
}
This server shines in various AI workflows, particularly where timely and accurate context is crucial. For instance:
Suppose an engineer needs immediate access to AWS-related technical support documents. By sending a query through the MCP protocol, this server can retrieve detailed and relevant documentation seamlessly.
The AWS Knowledge Base Retrieval MCP Server is designed to work with various MCP clients, ensuring compatibility across different AI applications:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
{
"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"
}
}
}
}
Ensure you have the necessary AWS credentials and permissions to run Bedrock Agent Runtime operations.
Does this server support multiple result retrieval?
n
results.Can I use this server without Docker or npx?
What permissions do AWS keys need for this server to function properly?
Is there a limit to the number of results that can be retrieved at once?
How do I troubleshoot connection issues with the AWS Knowledge Base through this server?
To contribute to the AWS Knowledge Base Retrieval MCP Server, follow these steps:
npm install
.For more information on MCP servers and clients, visit the official Model Context Protocol website and GitHub repositories.
By integrating the AWS Knowledge Base Retrieval MCP Server into your projects, you ensure that AI applications can leverage rich contextual data from the AWS Knowledge Base, thereby improving performance and user experience in various workflows.
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration