An AWS Labs Model Context Protocol (MCP) server for Amazon Q Business anonymous mode application.
Project description
AWS Labs Amazon Q Business anonymous mode MCP Server
An AWS Labs Model Context Protocol (MCP) server for Amazon Q Business anonymous mode application. This is a simple MCP server for Amazon Q Business, and it supports Amazon Q Business application created using anonymous mode access. Use this MCP server to query the Amazon Q Business application created using anonymous mode to get responses based on the content you have ingested in it.
Features
- You can use this MCP server from your local machine
- Query Amazon Q Business application created using anonymous mode to get responses based on the content you have ingested in it.
Prerequisites
- Sign up for an AWS account
- Create an Amazon Q Business application using anonynmous mode
- Install
uvfrom Astral or the GitHub README - Install Python using
uv python install 3.10
Tools
QBusinessQueryTool
- The QBusinessQueryTool takes the query specified by the user and queries the Amazon Q Business application to get a response.
- Required parameter: query(str)
- Example:
Can you get me the details of the ACME project? Use the QBusinessQueryTool to get the context.. Note that in this case the details of the ACME are required to be ingested to the underlying Amazon Q Business application created using anonymous mode.
Setup
IAM Configuration
- Provision a user in your AWS account IAM
- Attach a policy that contains at a minimum the
qbusiness:ChatSyncpermission. Always follow the principal or least privilege when granting users permissions. See the documentation for more information on IAM permissions for Amazon Q Business. - Use
aws configureon your environment to configure the credentials (access ID and access key)
Installation
| Cursor | VS Code |
|---|---|
Configure the MCP server in your MCP client configuration (e.g., for Amazon Q Developer CLI, edit ~/.aws/amazonq/mcp.json): |
{
"mcpServers": {
"awslabs.amazon-qbusiness-anonymous-mcp-server": {
"command": "uvx",
"args": ["awslabs.qbusiness-anonymous-mcp-server"],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR",
"QBUSINESS_APPLICATION_ID": "[Your Amazon Q Business application id]",
"AWS_PROFILE": "[Your AWS Profile Name]",
"AWS_REGION": "[Region where your Amazon Q Business application resides]"
},
"disabled": false,
"autoApprove": []
}
}
}
Windows Installation
For Windows users, the MCP server configuration format is slightly different:
{
"mcpServers": {
"awslabs.amazon-qbusiness-anonymous-mcp-server": {
"disabled": false,
"timeout": 60,
"type": "stdio",
"command": "uv",
"args": [
"tool",
"run",
"--from",
"awslabs.amazon-qbusiness-anonymous-mcp-server@latest",
"awslabs.amazon-qbusiness-anonymous-mcp-server.exe"
],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR",
"QBUSINESS_APPLICATION_ID": "[Your Amazon Q Business application id]",
"AWS_PROFILE": "[Your AWS Profile Name]",
"AWS_REGION": "[Region where your Amazon Q Business application 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-qbusiness-anonymous-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"--interactive",
"--env-file",
"/full/path/to/file/above/.env",
"awslabs/amazon-qbusiness-anonymous-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 use conversation APIs with your Amazon Q Business application created in anonymous mode.
- 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 Q Business issues, consult the Amazon Q Business user guide
Version
Current MCP server version: 0.0.0
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awslabs_amazon_qbusiness_anonymous_mcp_server-0.0.6.tar.gz.
File metadata
- Download URL: awslabs_amazon_qbusiness_anonymous_mcp_server-0.0.6.tar.gz
- Upload date:
- Size: 77.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9bdd037e413df0e9498941ec7684aadcc62d093809bfbcc9aa1e243bb8d6088
|
|
| MD5 |
7967534ddd94acead21152b51a6d400e
|
|
| BLAKE2b-256 |
df0530408141de2650b77b333f7bce0e6fdcdd71f0856001243bd3a5568db574
|
Provenance
The following attestation bundles were made for awslabs_amazon_qbusiness_anonymous_mcp_server-0.0.6.tar.gz:
Publisher:
release.yml on awslabs/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awslabs_amazon_qbusiness_anonymous_mcp_server-0.0.6.tar.gz -
Subject digest:
f9bdd037e413df0e9498941ec7684aadcc62d093809bfbcc9aa1e243bb8d6088 - Sigstore transparency entry: 604503264
- Sigstore integration time:
-
Permalink:
awslabs/mcp@971534fb1e8142ce3023ef010b05dc2b430b29b8 -
Branch / Tag:
refs/tags/2025.10.20251013201003 - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@971534fb1e8142ce3023ef010b05dc2b430b29b8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file awslabs_amazon_qbusiness_anonymous_mcp_server-0.0.6-py3-none-any.whl.
File metadata
- Download URL: awslabs_amazon_qbusiness_anonymous_mcp_server-0.0.6-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4d3b5cf1e9ae538f8ccab4f3683d84f0b047720dd79cf77030a0e472c9bdef5
|
|
| MD5 |
bdf79ccd47b0a8447881e700c4c16461
|
|
| BLAKE2b-256 |
c79b9677897e8119b7f0c0ed0e1e48a8aaa1e1d794df7016926e9ba98bda6865
|
Provenance
The following attestation bundles were made for awslabs_amazon_qbusiness_anonymous_mcp_server-0.0.6-py3-none-any.whl:
Publisher:
release.yml on awslabs/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awslabs_amazon_qbusiness_anonymous_mcp_server-0.0.6-py3-none-any.whl -
Subject digest:
a4d3b5cf1e9ae538f8ccab4f3683d84f0b047720dd79cf77030a0e472c9bdef5 - Sigstore transparency entry: 604503303
- Sigstore integration time:
-
Permalink:
awslabs/mcp@971534fb1e8142ce3023ef010b05dc2b430b29b8 -
Branch / Tag:
refs/tags/2025.10.20251013201003 - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@971534fb1e8142ce3023ef010b05dc2b430b29b8 -
Trigger Event:
push
-
Statement type: