mcp / dynamodb-mcp-server
AGENTS.md9.8k starsChanged 3 months agoApache-2.0View on GitHub
This is the AWS DynamoDB MCP Server - an official AWS Labs Model Context Protocol (MCP) server that provides DynamoDB expert design guidance and data modeling assistance. The project is built with Python 3.10+ and uses uv for dependency management. Current Version: See version in pyproject.toml Project URLs: - Homepage: https://awslabs.github.io/mcp/ - Documentation: https://awslabs.github.io/mcp/servers/dynamodb-mcp-server/ - Repository: https://github.com/awslabs/mcp.git - Changelog: https://github.com/awslabs/mcp/blob/main/src/dynamodb-mcp-server/CHANGELOG.md Package Information: - PyPI Package: awslabs.dynamodb-mcp-server - License: Apache-2.0 Note: This project includes pre-commit as a dev dependency but does…
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about awslabs/mcp
- A Hacker News story“Vibe coding tips and tricks”Hacker News · Aug 18, 2025 · 227 points
- @wernervogels.bsky.social“A collection of open source #AWS MCP servers is available at #awslabs github.com/awslabs/mcp”Bluesky · Apr 4, 2025 · 25 likes
- A Hacker News story“AWS MCP Servers”Hacker News · Jul 29, 2025 · 22 points
- @danilop.bsky.social“🔗 Check out AWS MCP Servers – A suite of specialized MCP servers that bring AWS best practices directly to …”Bluesky · Apr 1, 2025 · 13 likes
- A Hacker News story“AWS MCP Servers”Hacker News · Apr 3, 2025 · 11 points
The biggest 5 of 32 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 32
Talked about on GitHub, Bluesky and Hacker News (32 times).
On GitHub · 21
- Jun 10, 2025[FEATURE REQUEST] Add local MCP Compatability — aws-samples/bedrock-engineer4 reactions
- Oct 7, 2025[FEATURE]Generic tool which supports all OpenSearch API — opensearch-project/opensearch-mcp-server-py3 reactions · 2 comments
- Sep 3, 2025[COMMUNITY] Auto generate CHANGELOG, including adding contributors for each release — microsoft/mcp2 reactions · 4 comments
- Jul 14, 2025[Server Submission]: awslabs.aws-api-mcp-server — cline/mcp-marketplace2 reactions
- Apr 11, 2025bug: MCP server to aded to q-cli — aws/amazon-q-developer-cli2 reactions · 4 comments
16 more on GitHub
- Apr 1, 2025[Server Submission]: awslabs-cdk-mcp-server — cline/mcp-marketplace2 reactions · 1 comment
- Oct 1, 2026check-links: ask each URL once per run, and let a probe surface that says nothing fall through to the pair every other URL gets — PublicAgents/public-agents1 reaction · 4 comments
- Sep 18, 2026check-links: a machine endpoint (surfaces.mcp, surfaces.api) that answers GET with an off-host redirect is alive (refiled on current main, replaces #42) — PublicAgents/public-agents1 reaction · 3 comments
- Aug 21, 2026fix(vscode): remote config MCP settings — cline/cline1 reaction · 2 comments
- Jan 16, 2026`uv` Used to Group Now it Doesn't — dependabot/dependabot-core1 reaction · 2 comments
- Dec 22, 2025Incomplete configuration for awslab mcp servers executed by MCP Toolkit? — docker/mcp-registry1 reaction · 1 comment
- Sep 13, 2025記事の校閲エージェントを作成する — onc-limb/knowledge-hub1 reaction
- Sep 18, 2026AWS API MCP is entering End of Development. Need to be migrated to AWS MCP Server. — HolmesGPT/holmesgpt0 reactions
- Jul 6, 2026pre-commit: check-vcs-permalinks fails on non-permalink GitHub URLs in docs — awslabs/agent-plugins0 reactions · 2 comments
- Dec 10, 2025Review tools present on Kubernetes MCP's — kagent-dev/tools0 reactions · 2 comments
- Nov 9, 2025Check trending repo: awslabs/mcp — uibm/trending-watcher0 reactions · 1 comment
- Nov 8, 2025Check trending repo: awslabs/mcp — uibm/trending-watcher0 reactions · 1 comment
- Sep 3, 2025add Cosmos DB Datamodeling Prompt to Azure /Cosmos MCP as a tool — AzureCosmosDB/cosmosdb-agent-hub0 reactions
- Aug 13, 2025"Connection to rekor.sigstore.dev timed out" — pypa/gh-action-pypi-publish0 reactions · 5 comments
- Jun 28, 2025Diagram-as-Code — alkanoic/AspNetCoreSample0 reactions
- May 12, 2025[azsdk-cli] Investigate prompt understanding approach for azsdk tools — Azure/azure-sdk-tools0 reactions
On Bluesky · 6
- Apr 4, 2025A collection of open source #AWS MCP servers is available at #awslabs github.com/awslabs/mcp — @wernervogels.bsky.social25 likes and reposts · 1 reply
- Apr 1, 2025🔗 Check out AWS MCP Servers – A suite of specialized MCP servers that bring AWS best practices directly to your development workflow. Get… — @danilop.bsky.social13 likes and reposts · 2 replies
- Nov 7, 2025📦 awslabs / mcp ⭐ 6,966 (+14) 🗒 Python AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP. — @github-trending.bsky.social1 likes and repost
- Aug 19, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 awslabs / mcp ⭐ 5,550 (+132) 🗒 Python AWS MCP Servers — helping you get the most out of AWS, wherever… — @github-trending.bsky.social1 likes and repost
- Apr 2, 2025GitHub - awslabs/mcp: AWS MCP Servers — specialized MCP servers that bring AWS best practices directly to your development workflow… — @tech-trending.bsky.social1 likes and repost
1 more on Bluesky
- Nov 6, 2025If you didn't know, AWS offers many official MCP servers 🪄 This includes AWS knowledge, infrastructure automation, database management,… — @tpschmidt.com0 likes and reposts · 1 reply
On Hacker News · 5
- Aug 18, 2025Vibe coding tips and tricks227 points · 93 comments
- Jul 29, 2025AWS MCP Servers22 points · 3 comments
- Apr 3, 2025AWS MCP Servers11 points · 4 comments
- Apr 4, 2025A collection of open source AWS MCP servers is available at awslabs3 points
- Jul 16, 2025AWS Pricing MCP Server2 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- amazon aurora dsqlSkill
- aurora dsqlSkill
- aws dsqlSkill
- distributed postgresSkill
- distributed sqlSkill
- dsqlSkill
- agentcore-investigationSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
14 rules. About 1 is common, 9 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 207
When using the MCP tools, the following files are typically generated:
- Distinctive: line 221
Add/update tests for new functionality
- Very specific: line 222
Run quality checks: uv run ruff check && uv run pyright
- Very specific: line 223
Run test suite: uv run pytest
- Distinctive: line 224
Commit with conventional commit format (commitizen is configured)
- Very specific: line 246
Check pyproject.toml for current version number
- Distinctive: line 263
Solution: Ensure Docker, Podman, Finch, or nerdctl is installed and running
- Common: line 268
Solution: Verify AWS credentials, check Security Group rules, ensure RDS Data API is enabled
- Very specific: line 273
Solution: Run dynamodb_data_model_schema_validator to get detailed error messages
- Distinctive: line 274
Common fixes: Check field types, ensure GSI names match, verify pattern IDs are unique
- Distinctive: line 287
All database operations use parameterized queries to prevent SQL injection
- Distinctive: line 292
Use least-privilege IAM roles for AWS operations
- Distinctive: line 295
Run validation tests against DynamoDB Local, not production tables
- Distinctive: line 296
Use read-only replicas for source database analysis when possible
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Project Overview
This is the AWS DynamoDB MCP Server - an official AWS Labs Model Context Protocol (MCP) server that provides DynamoDB expert design guidance and data modeling assistance. The project is built with Python 3.10+ and uses uv for dependency management.
Current Version: See version in pyproject.toml
Project URLs:
- Homepage: https://awslabs.github.io/mcp/
- Documentation: https://awslabs.github.io/mcp/servers/dynamodb-mcp-server/
- Repository: https://github.com/awslabs/mcp.git
- Changelog: https://github.com/awslabs/mcp/blob/main/src/dynamodb-mcp-server/CHANGELOG.md
Package Information:
- PyPI Package:
awslabs.dynamodb-mcp-server - License: Apache-2.0
Setup Commands
Prerequisites
- Install
uvfrom Astral - Install Python:
uv python install 3.10 - Set up AWS credentials with access to AWS services
Development Environment
# Install dependencies
uv sync
# Install development dependencies
uv sync --group dev
# Activate virtual environment
source .venv/bin/activate
# Run the MCP server
uv run awslabs.dynamodb-mcp-server
# Run with uvx (production-like)
uvx awslabs.dynamodb-mcp-server@latestDocker Development
# Build Docker image
docker build -t awslabs/dynamodb-mcp-server .
# Run Docker container
docker run --rm --interactive --env FASTMCP_LOG_LEVEL=ERROR awslabs/dynamodb-mcp-server:latest
# Docker healthcheck
# The container includes a healthcheck script at /app/docker-healthcheck.shCode Style and Quality
Quality Tools
# Format code
uv run ruff format
# Lint code
uv run ruff check
# Fix linting issues automatically
uv run ruff check --fix
# Type checking
uv run pyright
# Run all quality checks
uv run ruff check && uv run pyrightCode Style Configuration
- Formatter: Ruff (see pyproject.toml for complete configuration)
- Type Checker: Pyright (configured in pyproject.toml)
- Complete style rules and exceptions are defined in pyproject.toml
Pre-commit Setup
# Install pre-commit hooks (if .pre-commit-config.yaml exists)
uv run pre-commit install
# Run pre-commit on all files
uv run pre-commit run --all-filesNote: This project includes pre-commit as a dev dependency but does not have a .pre-commit-config.yaml file configured.
Testing
Test Execution
# Run all tests
uv run pytest
# Run tests with coverage
uv run pytest --cov=awslabs --cov-report=html
# Run specific test file
uv run pytest tests/test_dynamodb_server.py
# Run with verbose output
uv run pytest -v
# Run specific test function
uv run pytest tests/test_dynamodb_server.py::test_function_name
# Run tests by marker
uv run pytest -m integration # Run integration tests
uv run pytest -m "not live" # Skip live tests (default behavior)
uv run pytest -m unit # Run unit tests onlyTest Categories and Markers
The project uses pytest markers to categorize tests (configured in pyproject.toml):
- integration: Integration tests (slower, end-to-end)
- live: Live API calls (skipped by default)
- asyncio: Async tests (auto-mode enabled)
- unit: Unit tests (fast, isolated)
- file_generation: File generation tests
- slow: Comprehensive/slow tests
- python: Python language-specific tests
- snapshot: Snapshot tests for generated code consistency
Default Test Behavior: Tests marked with integration or live are excluded by default (configured via pytest addopts: -m 'not integration and not live')
Test Suite
- Property-based tests: Using
hypothesisfor comprehensive input validation - Comprehensive test coverage: Unit and integration tests
- Async test support: pytest-asyncio with auto mode
- Mocking support: Using
motofor AWS service mocking - Coverage exclusions: Pragma comments and main blocks are excluded
Available Test Files and Directories
tests/test_dynamodb_server.py- Main MCP server teststests/test_common.py- Common utilities teststests/test_markdown_formatter.py- Markdown formatting teststests/test_model_validation_utils.py- DynamoDB validation teststests/db_analyzer/- Database analyzer teststests/cdk_generator/- CDK code generation teststests/repo_generation_tool/- Data access layer generation teststests/conftest.py- Shared pytest fixtures and configuration
Test Environment Setup
- Tests use
pytestwithasyncio_mode = "auto"(configured in pyproject.toml) - MySQL integration tests use environment variable fixtures (mysql_env_setup)
- Coverage reports exclude pragma comments and main blocks (configured in pyproject.toml)
- Coverage source:
awslabsdirectory - Coverage omits:
awslabs/dynamodb_mcp_server/repo_generation_tool/languages/python/base_repository.py
Project Structure
Core Components
awslabs/dynamodb_mcp_server/server.py- Main MCP server implementation with FastMCPawslabs/dynamodb_mcp_server/common.py- Shared utilities and typesawslabs/dynamodb_mcp_server/model_validation_utils.py- DynamoDB Local validationawslabs/dynamodb_mcp_server/markdown_formatter.py- Output formattingawslabs/dynamodb_mcp_server/__init__.py- Package initialization with version info
Key Directories
awslabs/dynamodb_mcp_server/prompts/- Expert prompts and guidancedynamodb_architect.md- Main data modeling expert promptdynamodb_schema_generator.md- Schema generation guidancejson_generation_guide.md- JSON specification guidetransform_model_validation_result.md- Validation result formattingusage_data_generator.md- Test data generation instructionsdal_implementation/- Data access layer implementation templatesnext_steps/- Post-modeling guidance
awslabs/dynamodb_mcp_server/db_analyzer/- Database analysis tools (MySQL, PostgreSQL, SQL Server, Oracle)base_plugin.py- Base analyzer plugin interfacemysql.py- MySQL analyzer implementationpostgresql.py- PostgreSQL analyzer implementationsqlserver.py- SQL Server analyzer implementationplugin_registry.py- Plugin discovery and registrationanalyzer_utils.py- Common analyzer utilities
awslabs/dynamodb_mcp_server/cdk_generator/- CDK infrastructure code generationgenerator.py- CDK app generatormodels.py- CDK generation models
awslabs/dynamodb_mcp_server/repo_generation_tool/- Data access layer code generationcore/- Core validation and parsing logiclanguages/- Language-specific code generatorscodegen.py- Main code generation orchestration
tests/- Test suite with unit and integration tests
Available MCP Tools
The DynamoDB MCP server provides 7 tools for data modeling, validation, and code generation:
- dynamodb_data_modeling - Interactive data model design with expert guidance. Retrieves the complete DynamoDB Data Modeling Expert prompt with enterprise-level design patterns, cost optimization strategies, and multi-table design philosophy.
- dynamodb_data_model_validation - Automated validation using DynamoDB Local. Validates your DynamoDB data model by loading dynamodb_data_model.json, setting up DynamoDB Local, creating tables with test data, and executing all defined access patterns.
- source_db_analyzer - Extract schema and patterns from existing databases. Analyzes existing MySQL/PostgreSQL/SQL Server/Oracle databases to extract schema structure and access patterns from Performance Schema.
- generate_resources - Generates various resources from the DynamoDB data model JSON file. Currently supports CDK infrastructure code generation for deploying DynamoDB tables.
- dynamodb_data_model_schema_converter - Converts your data model (dynamodb_data_model.md) into a structured schema.json file representing your DynamoDB tables, indexes, entities, fields, and access patterns. Automatically validates the schema with up to 8 iterations.
- dynamodb_data_model_schema_validator - Validates schema.json files for code generation compatibility. Checks field types, operations, GSI mappings, pattern IDs, and provides detailed error messages with fix suggestions.
- generate_data_access_layer - Generates type-safe Python code from schema.json including entity classes with field validation, repository classes with CRUD operations, fully implemented access patterns, and optional usage examples.
Generated Files and Artifacts
When using the MCP tools, the following files are typically generated:
dynamodb_requirements.md- Requirements gathering outputdynamodb_data_model.md- Human-readable data model designdynamodb_data_model.json- Machine-readable model specificationdynamodb_model_validation.json- Validation resultsvalidation_result.md- Validation summaryschema.json- Structured schema for code generationgenerated_dal/- Generated data access layer codedatabase_analysis_YYYYMMDD_HHMMSS/- Database analysis results
Development Workflow
Making Changes
- Make changes following code style guidelines
- Add/update tests for new functionality
- Run quality checks:
uv run ruff check && uv run pyright - Run test suite:
uv run pytest - Commit with conventional commit format (commitizen is configured)
- Submit pull request or create code review
Commit Message Format
Follow Conventional Commits:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]Types: feat, fix, docs, style, refactor, perf, test, chore, ci
Examples:
feat(cdk): add support for point-in-time recoveryfix(validation): handle empty access pattern listsdocs: update AGENTS.md with new tool descriptions
Version Management
- Version is managed in
pyproject.tomlandawslabs/dynamodb_mcp_server/__init__.py - Both files must be updated:
pyproject.tomlfor packaging/distribution,__init__.pyfor runtime version checking - Check
pyproject.tomlfor current version number - CHANGELOG.md exists and commitizen is configured to update it
- Version format follows Semantic Versioning
Debugging and Troubleshooting
Logging
- Set
FASTMCP_LOG_LEVEL=DEBUGfor verbose logging - Available levels: DEBUG, INFO, WARNING, ERROR
- Project uses
logurufor structured logging (see pyproject.toml for version) - Logs include timestamps, levels, and contextual information
Common Issues
DynamoDB Local Validation
- Issue: Container runtime not found
- Solution: Ensure Docker, Podman, Finch, or nerdctl is installed and running
- Alternative: Install Java 17+ and set JAVA_HOME environment variable
MySQL Analyzer
- Issue: Connection timeout or permission denied
- Solution: Verify AWS credentials, check Security Group rules, ensure RDS Data API is enabled
- Debug: Set
FASTMCP_LOG_LEVEL=DEBUGto see detailed connection logs
Code Generation
- Issue: Schema validation fails
- Solution: Run
dynamodb_data_model_schema_validatorto get detailed error messages - Common fixes: Check field types, ensure GSI names match, verify pattern IDs are unique
Performance Considerations
- DynamoDB Local validation requires container runtime (Docker/Podman/Finch/nerdctl) or Java 17+
- MySQL analyzer result sets are limited by
MYSQL_MAX_QUERY_RESULTSenvironment variable (default: 500, defined indb_analyzer/mysql.py) - Schema validation can take up to 8 iterations for complex models
- Code generation is optimized for schemas with up to 50 entities
Security Considerations
Data Handling
- MySQL analyzer has built-in read-only mode by default (DEFAULT_READONLY = True)
- Schema validation blocks path traversal attempts
- All database operations use parameterized queries to prevent SQL injection
- Secrets are retrieved from AWS Secrets Manager, never hardcoded
- AWS credentials follow standard AWS SDK credential chain
Best Practices
- Use least-privilege IAM roles for AWS operations
- Rotate database credentials regularly in Secrets Manager
- Review generated code before deploying to production
- Run validation tests against DynamoDB Local, not production tables
- Use read-only replicas for source database analysis when possible
Dependencies and Compatibility
Python Version Support
- Minimum: Python 3.10
- Tested: Python 3.10, 3.11, 3.12, 3.13
- Docker production build: Python 3.13 (as specified in Dockerfile)
- Recommended: Python 3.12+ for best performance
Dependencies
- See pyproject.toml for complete list of production and development dependencies
Compatibility Notes
- FastMCP framework is used for MCP server implementation
- Compatible with MCP clients: Kiro CLI, Cursor, VS Code, Claude Desktop
- AWS SDK follows standard credential chain (env vars, config files, IAM roles)
- Database analyzers support AWS RDS Data API and direct connections
Build System
Build Configuration
- Build backend: Hatchling
- Package name: awslabs.dynamodb-mcp-server
- License: Apache-2.0 (see LICENSE and NOTICE files)
- Entry point: awslabs.dynamodb-mcp-server (maps to awslabs.dynamodb_mcp_server.server:main)
Build Commands
# Build with uv
uv build
# Install in editable mode for development
uv pip install -e .Package Distribution
- Published to PyPI as
awslabs.dynamodb-mcp-server - Version updates require changes to both
pyproject.toml(for packaging) and__init__.py(for runtime) - Changelog maintained in CHANGELOG.md following Keep a Changelog format
- Supports installation via
uvxfor latest version
Hatch Configuration
- Direct references allowed via
allow-direct-references = true - Packages list:
["awslabs"]- includes entire awslabs namespace - Excludes:
.venv,__pycache__,node_modules,dist,build, etc.
Additional Resources
Documentation Links
- Model Context Protocol Specification
- FastMCP Documentation
- DynamoDB Best Practices
- AWS SDK for Python (Boto3)
Community and Support
- Report issues on GitHub
- Refer to official documentation at AWS Labs MCP
- Review CHANGELOG.md for version history and breaking changes
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

