Skip to main content

AWS Labs Amazon Kendra Index MCP Server

An AWS Labs Model Context Protocol (MCP) server for Amazon Kendra. This MCP server allows you to use Kendra Indices as additional context for RAG.

Features:

  • Enhance your existing MCP-enabled ChatBot with additional RAG indices
  • Enhance the responses from coding assistants such as Kiro, Cline, Cursor, and Windsurf

Pre-Requisites:

  1. Sign-Up for an AWS account
  2. Create an Amazon Kendra Index with your RAG documentation
  3. Install uv from Astral or the GitHub README
  4. Install Python using uv python install 3.10

Tools:

KendraQueryTool

  • The KendraQueryTool takes the query specified by the user and queries a Kendra index to gain additional context for the response. This queries either the default index, or an index specified in the users prompt.
  • Required Parameters: query (str)
  • Optional Parameters: indexId (str), region (str)
  • Example:
    • Can you help me understand how to implement a progress event in the CreateHandler using Java? Use the KendraQueryTool to gain additional context.
    • Can you use the test-kendra-index to help answer the following questions...

KendraListIndexesTool

  • The KendraListIndexesTool lists the Kendra Indexes in your account. By default it will list all the indices in the regions provided as environment variables to the mcp config file. Otherwise the region can be specified in the prompt.
  • Optional Parameters: region (str)
  • Example:
    • Can you list the Kendra Indexes in my account in the us-west-2 region

Setup

IAM Configuration

  1. Provision a user in your AWS account IAM
  2. Attach a policy that contains at a minimum the kendra:Query and kendra:ListIndices permissions. Alternatively the AWS Managed AmazonKendraFullAccess policy can be attached. Always follow the principal or least privilege when granting users permissions. See the documentation for more information on IAM permissions for Amazon Kendra.
  3. Use aws configure on your environment to configure the credentials (access ID and access key)

Installation

Kiro Cursor VS Code
Add to Kiro Install MCP Server Install on VS Code

Configure the MCP server in your MCP client configuration (e.g., for Kiro, edit ~/.kiro/settings/mcp.json):

{
      "mcpServers": {
            "awslabs.amazon-kendra-index-mcp-server": {
                  "command": "uvx",
                  "args": ["awslabs.amazon-kendra-index-mcp-server"],
                  "env": {
                    "FASTMCP_LOG_LEVEL": "ERROR",
                    "KENDRA_INDEX_ID": "[Your Kendra Index Id]",
                    "AWS_PROFILE": "[Your AWS Profile Name]",
                    "AWS_REGION": "[Region where your Kendra Index resides]"
                  },
                  "disabled": false,
                  "autoApprove": []
                }
      }
}

Windows Installation

For Windows users, the MCP server configuration format is slightly different:

{
  "mcpServers": {
    "awslabs.amazon-kendra-index-mcp-server": {
      "disabled": false,
      "timeout": 60,
      "type": "stdio",
      "command": "uv",
      "args": [
        "tool",
        "run",
        "--from",
        "awslabs.amazon-kendra-index-mcp-server@latest",
        "awslabs.amazon-kendra-index-mcp-server.exe"
      ],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR",
        "KENDRA_INDEX_ID": "[Your Kendra Index Id]",
        "AWS_PROFILE": "[Your AWS Profile Name]",
        "AWS_REGION": "[Region where your Kendra Index resides]"
      }
    }
  }
}

or docker after a successful docker build -t awslabs/amazon-kendra-index-mcp-server.:

# fictitious `.env` file with AWS temporary credentials
AWS_ACCESS_KEY_ID=<from the profile you set up>
AWS_SECRET_ACCESS_KEY=<from the profile you set up>
AWS_SESSION_TOKEN=<from the profile you set up>
  {
    "mcpServers": {
      "awslabs.amazon-kendra-index-mcp-server": {
        "command": "docker",
        "args": [
          "run",
          "--rm",
          "--interactive",
          "--env-file",
          "/full/path/to/file/above/.env",
          "awslabs/amazon-kendra-index-mcp-server:latest"
        ],
        "env": {},
        "disabled": false,
        "autoApprove": []
      }
    }
  }

NOTE: Your credentials will need to be kept refreshed from your host

Best Practices

  • Follow the principle of least privilege when setting up IAM permissions
  • Use separate AWS profiles for different environments (dev, test, prod)
  • Monitor broker metrics and logs for performance and issues
  • Implement proper error handling in your client applications

Security Considerations

When using this MCP server, consider:

  • This MCP server needs permissions to query and list Amazon Kendra Indexes
  • This MCP server cannot create, modify, or delete resources in your account

Troubleshooting

  • If you encounter permission errors, verify your IAM user has the correct policies attached
  • For connection issues, check network configurations and security groups
  • If resource modification fails with a tag validation error, it means the resource was not created by the MCP server
  • For general Amazon Kendra issues, consult the Amazon Kendra developer guide

Version

Current MCP server version: 0.0.0

Release files for awslabs.amazon-kendra-index-mcp-server 1.1.0

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.amazon-kendra-index-mcp-server 1.1.0
File Size Uploaded
awslabs_amazon_kendra_index_mcp_server-1.1.0.tar.gz 96.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for awslabs.amazon-kendra-index-mcp-server 1.1.0
File Interpreter ABI Platform
awslabs_amazon_kendra_index_mcp_server-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size:109.7 kB

Release files / awslabs_amazon_kendra_index_mcp_server-1.1.0.tar.gz

Download URL awslabs_amazon_kendra_index_mcp_server-1.1.0.tar.gz
Size 96.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c14a7b0b16339fb72239eef7d20317853522b6d48fbbf4f5a60b3a0a4642e5fb
BLAKE2b-256 checksum
How to use checksums
a1c7841be13fbf8b96433110a8dfa1d3333bfaa1c2a86808ebb41c750cc7a472
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 26, 2026.

Transparency log

Release files / awslabs_amazon_kendra_index_mcp_server-1.1.0-py3-none-any.whl

Download URL awslabs_amazon_kendra_index_mcp_server-1.1.0-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
128c0df046e5eb7bffb0078f2614c6ca16ae02b1a5d845ad0250c27e4666b969
BLAKE2b-256 checksum
How to use checksums
896efcd17f097b687a61d6afededdb7d941678aab80c931fc6c3909015333ea9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 26, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.1

2 release files

This release

1.1.0 This release

2 release files

1.0.21

2 release files

1.0.19

2 release files

1.0.16

2 release files

1.0.12

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.2

2 release files

0.0.1

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