Back to Home
awslabs icon

mcp

by awslabs

Overview

Enables AI assistants to interact with AWS DocumentDB databases, providing tools for connection management, database/collection operations, document querying, aggregation pipelines, query planning, and schema analysis. It acts as a bridge for safe and efficient database operations through the Model Context Protocol (MCP).

Installation

Run Command
uvx awslabs.documentdb-mcp-server@latest

Environment Variables

  • FASTMCP_LOG_LEVEL

Security Notes

Critical: Database connection strings (containing credentials) are stored in memory for the `_idle_timeout` duration (default 30 minutes). If the server process is compromised, these credentials could be exposed. High: The server lacks inherent authentication and fine-grained authorization for incoming MCP requests, assuming the calling agent is fully trusted. It provides a `--allow-write` flag for a binary read-only/read-write mode, but not granular access control per operation or user. Medium: Queries and aggregation pipelines are passed directly to `pymongo`, which protects against classic SQL injection but allows trusted (or compromised) agents to perform potentially resource-intensive or data-exposing operations. Error logging might inadvertently expose sensitive connection details depending on `pymongo`'s exception messages.

Similar Servers

Stats

Interest Score100
Security Score3
Cost ClassMedium
Avg Tokens1000
Stars7905
Forks1214
Last Update2026-01-19

Tags

AWSDocumentDBMongoDBdatabaseAI assistantMCPPythonAPIdata management