Prerequisites
- A DynamoSQL account with at least one schema configured
- One of the following:
- a DynamoSQL portal user account for browser-based sign-in
- API client credentials from the DynamoSQL portal
For full MCP access, the resulting token should include both
query and schemas:read.Step 1 — Choose an authentication mode
Option A — Browser login for human users
Use this when your MCP client supports remote OAuth discovery and can identify itself through pre-registration, a Client ID Metadata Document (CIMD), or Dynamic Client Registration (DCR).- Recommended for Codex and other MCP clients that can open a browser for sign-in
- Uses your DynamoSQL portal user account
- Shows a DynamoSQL consent screen before the connection is approved
- Automatically handles access-token refresh with rotating refresh tokens
Option B — API client credentials
Use this for automation, service accounts, or MCP clients that only support static bearer tokens.- Open the API clients page in the DynamoSQL portal
- Click Create API client
- Enter a label (for example,
Claude Desktop) - Select the query and schemas:read scopes
- Click Create API client
- Copy the Client ID and Client Secret — the secret is shown only once
Step 2 — Configure your MCP client
Recommended for OAuth-capable clients
Codex
If your Codex build supports remote MCP OAuth discovery:- Add the remote server URL
https://mcp.dynamosql.com/mcp - Let Codex discover the OAuth metadata automatically
- When Codex prompts for authentication, choose the browser sign-in flow
- Sign in with your DynamoSQL portal account on
auth.dynamosql.com - Review the DynamoSQL consent screen and approve the requested scopes
- Return to Codex and complete the connection
Claude Desktop / Claude Code / Cursor / other MCP clients with OAuth discovery
For any other MCP client that supports remote OAuth discovery:- Use
https://mcp.dynamosql.com/mcpas the server URL - Let the client discover:
https://mcp.dynamosql.com/.well-known/oauth-protected-resourcehttps://mcp.dynamosql.com/.well-known/oauth-authorization-server
- Complete browser sign-in when prompted
- Review the DynamoSQL consent screen and approve the requested scopes
Fallback for static bearer-token clients
Choose the configuration for your AI assistant:Obtaining a static bearer token
If you are using API client credentials, exchange them for an MCP bearer token:access_token value and use it as YOUR_MCP_TOKEN in the configuration above.
Step 3 — Verify the connection
Once configured, ask your AI assistant to explore your data:“List the tables in my DynamoDB schema”The assistant should call
list_tables and return your table names. Then try:
“Describe the orders table and show me the first 10 rows”
Troubleshooting
Next steps
- MCP Authentication — full OAuth flow details and token lifecycle
- Tools and Resources — complete reference for all MCP tools, resources, and prompts
- SQL Reference — supported SQL syntax
- SQL Limitations — unsupported features to be aware of