This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Superceeded by awslabs.aws-api-mcp-server
Amazon Rekognition MCP Server (DEPRECATED)
A Model Context Protocol (MCP) server for Amazon Rekognition that enables AI assistants to analyze images using Amazon Rekognition's powerful computer vision capabilities (DEPRECATED). Please use AWS API MCP Server for analyzing images using Amazon Rekognition's APIs.
Features
- Face Collection Management: Create and manage collections of faces
- Face Recognition: Index and search for faces in images
- Object and Scene Detection: Identify objects, scenes, and activities in images
- Content Moderation: Detect unsafe or inappropriate content
- Celebrity Recognition: Identify celebrities in images
- Face Comparison: Compare faces between images for similarity
- Text Detection: Extract text from images
Prerequisites
- Install
uvfrom Astral or the GitHub README - Install Python using
uv python install 3.10 - Set up AWS credentials with access to Amazon Rekognition
- You need an AWS account with Amazon Rekognition enabled
- Configure AWS credentials with
aws configureor environment variables - Ensure your IAM role/user has permissions to use Amazon Rekognition
Installation
(DEPRECATED). Please use AWS API MCP Server for analyzing images using Amazon Rekognition's APIs.
| 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-rekognition-mcp-server": {
"command": "uvx",
"args": ["awslabs.amazon-rekognition-mcp-server@latest"],
"env": {
"AWS_PROFILE": "your-aws-profile",
"AWS_REGION": "us-east-1",
"BASE_DIR": "/path/to/base/directory",
"FASTMCP_LOG_LEVEL": "ERROR"
},
"disabled": false,
"autoApprove": []
}
}
}
Windows Installation
For Windows users, the MCP server configuration format is slightly different:
{
"mcpServers": {
"awslabs.amazon-rekognition-mcp-server": {
"disabled": false,
"timeout": 60,
"type": "stdio",
"command": "uv",
"args": [
"tool",
"run",
"--from",
"awslabs.amazon-rekognition-mcp-server@latest",
"awslabs.amazon-rekognition-mcp-server.exe"
],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR",
"AWS_PROFILE": "your-aws-profile",
"AWS_REGION": "us-east-1"
}
}
}
}
or docker after a successful docker build -t awslabs/amazon-rekognition-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>
AWS_REGION=<your-region>
BASE_DIR=/path/to/base/directory
{
"mcpServers": {
"awslabs.amazon-rekognition-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"--interactive",
"--env-file",
"/full/path/to/file/above/.env",
"awslabs/amazon-rekognition-mcp-server:latest"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}
NOTE: Your credentials will need to be kept refreshed from your host
Environment Variables
AWS_PROFILE: AWS CLI profile to use for credentialsAWS_REGION: AWS region to use (default: us-east-1)BASE_DIR: Base directory for file operations (optional)FASTMCP_LOG_LEVEL: Logging level (ERROR, WARNING, INFO, DEBUG)
AWS Authentication
The server uses the AWS profile specified in the AWS_PROFILE environment variable. If not provided, it defaults to the default credential provider chain.
"env": {
"AWS_PROFILE": "your-aws-profile",
"AWS_REGION": "us-east-1"
}
Make sure the AWS profile has permissions to access Amazon Rekognition services. The MCP server creates a boto3 session using the specified profile to authenticate with AWS services.
Tools
list_collections
Returns a list of collection IDs in your account.
list_collections() -> dict
Returns a dictionary containing a list of collection IDs and face model versions.
index_faces
Detects faces in an image and adds them to the specified collection.
index_faces(collection_id: str, image_path: str) -> dict
Parameters:
collection_id: ID of the collection to add the face toimage_path: Path to the image file
Returns a dictionary containing information about the indexed faces.
search_faces_by_image
Searches for faces in a collection that match a supplied face.
search_faces_by_image(collection_id: str, image_path: str) -> dict
Parameters:
collection_id: ID of the collection to searchimage_path: Path to the image file
Returns a dictionary containing information about the matching faces.
detect_labels
Detects instances of real-world entities within an image.
detect_labels(image_path: str) -> dict
Parameters:
image_path: Path to the image file
Returns a dictionary containing detected labels and other metadata.
detect_moderation_labels
Detects unsafe content in an image.
detect_moderation_labels(image_path: str) -> dict
Parameters:
image_path: Path to the image file
Returns a dictionary containing detected moderation labels and other metadata.
recognize_celebrities
Recognizes celebrities in an image.
recognize_celebrities(image_path: str) -> dict
Parameters:
image_path: Path to the image file
Returns a dictionary containing recognized celebrities and other metadata.
compare_faces
Compares a face in the source input image with faces in the target input image.
compare_faces(source_image_path: str, target_image_path: str) -> dict
Parameters:
source_image_path: Path to the source image filetarget_image_path: Path to the target image file
Returns a dictionary containing information about the face matches.
detect_text
Detects text in an image.
detect_text(image_path: str) -> dict
Parameters:
image_path: Path to the image file
Returns a dictionary containing detected text elements and their metadata.
Example Usage
# List available face collections
collections = await list_collections()
# Index a face in a collection
indexed_face = await index_faces(
collection_id="my-collection",
image_path="/path/to/face.jpg"
)
# Search for a face in a collection
matches = await search_faces_by_image(
collection_id="my-collection",
image_path="/path/to/face.jpg"
)
# Detect labels in an image
labels = await detect_labels(
image_path="/path/to/image.jpg"
)
# Detect moderation labels in an image
moderation = await detect_moderation_labels(
image_path="/path/to/image.jpg"
)
# Recognize celebrities in an image
celebrities = await recognize_celebrities(
image_path="/path/to/celebrity.jpg"
)
# Compare faces between two images
comparison = await compare_faces(
source_image_path="/path/to/source.jpg",
target_image_path="/path/to/target.jpg"
)
# Detect text in an image
text = await detect_text(
image_path="/path/to/image_with_text.jpg"
)
Security Considerations
- Use AWS IAM roles with appropriate permissions
- Store credentials securely
- Use temporary credentials when possible
- Be aware of Amazon Rekognition service quotas and limits
License
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.
Release files for awslabs.amazon-rekognition-mcp-server 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| awslabs_amazon_rekognition_mcp_server-0.0.8.tar.gz | 83.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| awslabs_amazon_rekognition_mcp_server-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 99.8 kB
Release files / awslabs_amazon_rekognition_mcp_server-0.0.8.tar.gz
| Download URL | awslabs_amazon_rekognition_mcp_server-0.0.8.tar.gz |
|---|---|
| Size | 83.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2d59001874618a8e0c0c3305b6b1ed7a8a5084918c18cc901aab3389e1b63f1
|
|
BLAKE2b-256 checksum How to use checksums |
cc550331ccb2fb97a573cfb23f25aa4c7778ecfd674d4e9f5921ecdc0cb4d1f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 13, 2025.
Transparency logRelease files / awslabs_amazon_rekognition_mcp_server-0.0.8-py3-none-any.whl
| Download URL | awslabs_amazon_rekognition_mcp_server-0.0.8-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ff65a2e9aea4ea8603fa3284dcbdc43fceb7f47b8b7edb08525c25327b933cc
|
|
BLAKE2b-256 checksum How to use checksums |
eb758e09f08eab18d8146ede22255d853a2d24723a10ac2916b9eb72af9e2ccb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 13, 2025.
Transparency log