Prerequisites
- A DynamoSQL account with at least one schema configured
- API client credentials from the DynamoSQL portal
When creating your API client, select both the
query and schemas:read scopes for full MCP access.Step 1 — Create an API client
- Open the API clients page in the DynamoSQL portal
- Click Create API client
- Enter a label (e.g., “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
Choose the configuration for your AI assistant:Other MCP clients
For any MCP client not listed above:- Use
https://mcp.dynamosql.com/mcpas the remote MCP server URL - If the client supports OAuth discovery for remote MCP servers, point it at the server URL and let it discover:
https://mcp.dynamosql.com/.well-known/oauth-protected-resourcehttps://mcp.dynamosql.com/.well-known/oauth-authorization-server
- If the client only supports static bearer tokens, mint a token from
POST /tokenand send it asAuthorization: Bearer <token>
Obtaining a bearer token
The MCP server uses its own OAuth token endpoint. Exchange your API client credentials for a bearer token:access_token value and use it as YOUR_MCP_TOKEN in the configuration above.
MCP clients that support OAuth discovery for remote MCP servers can discover the token endpoint automatically via
https://mcp.dynamosql.com/.well-known/oauth-protected-resource. In this case, you only need to provide the server URL and your client credentials — the MCP client handles token acquisition and refresh.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
| Symptom | Likely cause | Fix |
|---|---|---|
invalid_client error on token request | Wrong client ID or secret | Verify credentials in the portal; rotate the secret if unsure |
invalid_scope error on token request | Requested scope not granted to client | Check that the API client has query and schemas:read scopes in the portal |
| 401 on MCP requests | Expired or missing bearer token | Obtain a fresh token from /token |
| No tools listed | Token missing required scopes | Ensure the token was issued with both query and schemas:read |
| ”Table not found” error | Wrong schema or table name | Call list_tables first to discover available tables |
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