What is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI assistants connect to external data sources and tools. DynamoSQL provides an MCP server that gives AI assistants direct access to your DynamoDB data through schema discovery and read-only SQL execution.What the DynamoSQL MCP server provides
The MCP server exposes three capabilities:| Capability | Description |
|---|---|
| Tools | list_tables, describe_table, and run_sql — let the AI discover schemas, inspect table structures, and execute read-only SQL |
| Resources | Bundled documentation covering supported SQL syntax and known limitations |
| Prompts | Guided workflows for exploring data and writing queries |
When to use MCP vs. the REST API
| Use case | Recommended |
|---|---|
| AI assistant exploring and querying your data conversationally | MCP server |
| Application or script executing SQL programmatically | REST API (Quickstart) |
Server URL
Authentication
The MCP server uses OAuth 2.0client_credentials for authentication. Your AI client obtains a bearer token from the /token endpoint using your API client credentials, then includes it on each MCP request. The MCP bearer token is separate from the REST API bearer token. See MCP Authentication for details.
Scopes
Scopes control which tools are available to the AI assistant:| Scope | Tools enabled |
|---|---|
query | run_sql |
schemas:read | list_tables, describe_table |
Behavioral notes
- The MCP server is read-only. Only
SELECTandWITHstatements are accepted. - Query results are capped at 1000 rows (default 100).
- Table listings are capped at 200 tables.
- The server is stateless — each request is independent with no session state.
- Bearer tokens expire after 10 minutes and must be refreshed by the MCP client.
Next steps
- MCP Quickstart — connect your AI assistant in 5 minutes
- MCP Authentication — OAuth flow details
- Tools and Resources — complete reference for all tools, resources, and prompts