$npx skillfedfor your agent

pymongo-auth-aws

MONGODB-AWS authentication support for PyMongo

Worth itPyPI DatabaseReleased Sep 20242.2M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pymongo_auth_aws-1.3.0-py3-none-any.whl
v1.3.0 · released 2024-09-11 · Python >=3.8 · 2 runtime deps: boto3, botocore

Yes. Install this if you are using PyMongo with MongoDB Atlas or MongoDB instances that support MONGODB-AWS authentication and you want to authenticate using AWS IAM credentials. It has low install friction, is actively maintained, carries no known vulnerabilities, and is licensed permissively. The only prerequisite is that you have AWS credentials available in your environment.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires boto3 and botocore to be installed; AWS credentials must be available in the environment (via IAM role, environment variables, or AWS config file).
  • Low install friction with a pure-Python wheel distribution.
  • Actively maintained as of 2026-08-14 with recent commits; no known vulnerabilities.

License · maintenance · safety

permissive license (permissive) — Apache License 2.0 is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2024-09-11 (702 days) · last repo commit 2026-08-14 · 11 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,213,863 downloads/mo, #3,205 on PyPI

Verify before relying

pip install pymongo-auth-aws

import pymongo_auth_aws
from pymongo import MongoClient

client = MongoClient('mongodb+srv://<user>@<host>/?authMechanism=MONGODB-AWS')
  • Whether the package works with all PyMongo versions or requires a specific version range.
  • Whether AWS credentials must be configured in the environment or if they can be passed programmatically.
Same gist for agents: .md · .json

What it is and what it does

pymongo-auth-aws is a plugin that extends PyMongo's authentication capabilities to support AWS IAM-based credentials. It bridges PyMongo and AWS by using boto3 and botocore to obtain temporary security tokens and pass them to MongoDB's MONGODB-AWS authentication mechanism. This allows applications running on AWS (EC2, Lambda, ECS, etc.) or with AWS credentials configured locally to authenticate to MongoDB Atlas or self-hosted MongoDB instances without managing long-lived database passwords.

The package is designed as a drop-in extension: once installed, you specify `authMechanism=MONGODB-AWS` in your MongoDB connection string, and pymongo-auth-aws handles credential retrieval and token generation transparently. It supports CPython 3.8+ and PyPy 3.7+, and is actively maintained by MongoDB.

Use it for

  • Authenticate Lambda functions or ECS tasks to MongoDB using their IAM roles without embedding database credentials.
  • Connect EC2 instances to MongoDB Atlas using temporary AWS STS tokens instead of static passwords.
  • Enable local development with AWS IAM credentials by leveraging boto3's credential chain (environment variables, config files, or IAM roles).
  • Simplify credential rotation in applications by relying on AWS IAM's built-in token expiration and refresh.
  • Integrate MongoDB authentication into AWS-native applications that already use boto3 for other AWS services.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Install this if you are using PyMongo with MongoDB Atlas or MongoDB instances that support MONGODB-AWS authentication and you want to authenticate using AWS IAM credentials. It has low install friction, is actively maintained, carries no known vulnerabilities, and is licensed permissively. The only prerequisite is that you have AWS credentials available in your environment.

Install

pymongo-auth-aws on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained as of 2026-08-14 with recent commits; no known vulnerabilities.

Requires boto3 and botocore to be installed; AWS credentials must be available in the environment (via IAM role, environment variables, or AWS config file).

License in practice

Apache License 2.0 is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install pymongo-auth-aws

import pymongo_auth_aws
from pymongo import MongoClient

client = MongoClient('mongodb+srv://<user>@<host>/?authMechanism=MONGODB-AWS')

Verify before relying

  • Whether the package works with all PyMongo versions or requires a specific version range.
  • Whether AWS credentials must be configured in the environment or if they can be passed programmatically.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
boto3botocore
MaintenanceActively maintained 702 days since the last release
Last repo commit
First released
Downloads2,213,863 / month, #3,205 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Database

Evidence: pymongo_auth_aws-1.3.0-py3-none-any.whl

Tags

Capabilities
mongodb aws authenticationpymongo iam credentialsmongodb-aws authaws iam mongodb driverpymongo aws iammongodb authentication awsboto3 mongodb auth
Topics
aws-iammongodb-auth
PyPI keywords
MONGODB-AWSmongomongodbpymongopymongo-auth-aws

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “mongodb aws authentication”

  • pymongo-auth-awsEnables PyMongo to authenticate to MongoDB using AWS Identity and…
  • motorMotor provides a non-blocking MongoDB driver for asyncio and Tornado…
  • pymongoPyMongo is the official MongoDB Python driver, providing synchronous…

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also pymongo · Flask-PyMongo · pymongocrypt · mongomock · pymongo_inmemory · motor · aws-requests-auth · mongoengine · bson · opentelemetry-instrumentation-pymongo