{
"mcpServers": {
"athenamcpserver": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server implementation for querying Amazon Athena
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 149 days ago. 1 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for AthenaMCPServer and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
An MCP (Model Context Protocol) server for querying Amazon Athena. This server allows AI assistants to execute SQL queries against AWS Athena and retrieve results in a structured format.
# Install dependencies
npm install
The server uses the following environment variables for configuration:
AWS_REGION: AWS region where Athena is located (default: "us-east-1")ATHENA_WORKGROUP: Athena workgroup to use (default: "primary")ATHENA_OUTPUT_LOCATION: S3 location for query results (default: "s3://aws-athena-query-results/")ATHENA_DATABASE: Default database to query (default: "default")ATHENA_CATALOG: Default catalog/data source to query (default: "AwsDataCatalog")AWS_PROFILE: AWS Profile to use for authentication (default: undefined, and will fallback to using default AWS credentials provider chain)You can set these environment variables before running the server:
export AWS_REGION=us-west-2
export ATHENA_WORKGROUP=my-workgroup
export ATHENA_OUTPUT_LOCATION=s3://my-bucket/athena-results/
export ATHENA_DATABASE=my_database
export ATHENA_CATALOG=AwsDataCatalog
export AWS_PROFILE=aws_profile_name
Alternatively, you can set these environment variables in the MCP Client configuration (see below).
{
"mcpServers": {
"athena-mcp": {
"command": "npm",
"args": [
"--prefix",
"/Users/<alias>/workplace/AthenaMCPServer/src/AthenaMCPServer",
"start"
],
"disabled": false,
"env": {
"AWS_PROFILE": "<aws-profile-for-account-with-athena>",
"ATHENA_OUTPUT_LOCATION": "s3://<your-athena-query-results-bucket>"
},
"autoApprove": []
}
}
}
The server uses the AWS SDK's default credential provider chain. You can authenticate using any of the following methods:
AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)~/.aws/credentials)You can specify an AWS profile from your shared credentials config file (~/.aws/config) when executing queries:
{
"query": "SELECT * FROM my_table LIMIT 10",
"profile": "my-aws-profile"
}
This is useful when you have multiple AWS accounts or roles configured in your credentials file.
For more information, see the AWS SDK documentation.
Type the following into the MCP Client Window
use the athena mcp server to run a basic query and return in csv
Response:
test
1
You can pass it a query directly, or use other LLMs to generate the SQL for you and ask it to run it using the Athena MCP Server
# Start the server
npm start
Executes SQL queries against Amazon Athena and retrieves results.
Parameters:
query (required): SQL query to executedatabase (optional): Database to query (uses default if not specified)catalog (optional): Catalog (Data source) to query (uses AwsDataCatalog if not specified)region (optional): AWS region (uses default if not specified)format (optional): Result format (json, table, or csv)profile (optional): AWS profile name to use from shared credentials fileExample:
{
"query": "SELECT * FROM my_table LIMIT 10",
"database": "my_database",
"catalog": "AwsDataCatalog",
"format": "table",
"profile": "my-aws-profile"
}
... [View full README on GitHub](https://github.com/markryanbotha/AthenaMCPServer#readme)