AWS Athena
Created 6 months ago
A Model Context Protocol (MCP) server for running AWS Athena queries.
development
documentation
public
What is AWS Athena?
A MCP server for AWS Athena to run SQL queries on Glue Catalog.
Documentation
@lishenxydlgzs/aws-athena-mcp
A Model Context Protocol (MCP) server for running AWS Athena queries. This server enables AI assistants to execute SQL queries against your AWS Athena databases and retrieve results.
Usage
- Configure AWS credentials using one of the following methods:
- AWS CLI configuration
- Environment variables (
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY) - IAM role (if running on AWS)
- Add the server to your MCP configuration:
{ "mcpServers": { "athena": { "command": "npx", "args": ["-y", "@lishenxydlgzs/aws-athena-mcp"], "env": { // Required "OUTPUT_S3_PATH": "s3://your-bucket/athena-results/", // Optional AWS configuration "AWS_REGION": "us-east-1", "AWS_PROFILE": "default", "AWS_ACCESS_KEY_ID": "", "AWS_SECRET_ACCESS_KEY": "", "AWS_SESSION_TOKEN": "", // Optional server configuration "ATHENA_WORKGROUP": "default_workgroup", "QUERY_TIMEOUT_MS": "300000", "MAX_RETRIES": "100", "RETRY_DELAY_MS": "500" } } } } - The server provides the following tools:
run_query: Execute a SQL query using AWS Athenaget_status: Check the status of a query executionget_result: Retrieve results for a completed querylist_saved_queries: List all saved (named) queries in Athena.run_saved_query: Run a previously saved query by its ID.
Requirements
- Node.js >= 16
- AWS credentials with appropriate Athena and S3 permissions
- S3 bucket for query results
- Named queries (optional) must exist in the specified
ATHENA_WORKGROUPandAWS_REGION
Server Config
{
"mcpServers": {
"aws-athena-server": {
"command": "npx",
"args": [
"aws-athena"
]
}
}
}
Links & Status
Project Info
Hosted
Featured
Created At:
May 23, 2025
Updated At:
Aug 07, 2025
Author:
lishenxydlgzs
Category:
community
License:
MIT
Tags:
development
documentation
public