- Newest
- Most votes
- Most comments
Would suggest to deploy the MCP server within a managed compute environment such as Amazon ECS with Fargate or AWS App Runner. Authentication between Claude and the MCP server should be handled using OAuth2 or Amazon Cognito, ensuring secure identity management. The MCP server itself should access Athena using IAM roles attached to the compute environment or via AssumeRole for cross-account scenarios. Fine-grained data access can be enforced through AWS Lake Formation, while query costs and execution limits can be controlled using Athena Workgroup configurations and API-level constraints. For large query outputs, results should be streamed efficiently by leveraging Athena’s native S3-based result storage combined with pagination mechanisms.
https://docs.aws.amazon.com/athena/latest/ug/security.html
https://docs.aws.amazon.com/cognito/latest/developerguide/iam-roles.html
https://docs.aws.amazon.com/athena/latest/ug/performance-tuning.html
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 10 months ago
