
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

An MCP server for AWS Athena that lets AI agents query Athena and explore database metadata, built for integration with n8n AI agents.
AWS Athena MCP Server is cataloged as an MCP server attributed to vipink1203. An MCP server for AWS Athena that lets AI agents query Athena and explore database metadata, built for integration with n8n AI agents. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for AWS Athena MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It exposes execute_query, list_databases, list_tables, and get_table_metadata tools.
An S3 output location for query results, supplied via ATHENA_OUTPUT_LOCATION, is required.
README.md · 4e88f28e9eca · 采集于 2026-11-13 11:46:20 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A Model Context Protocol (MCP) server for AWS Athena, designed to integrate with n8n AI agents.
This MCP server provides a standardized way for n8n AI agents to query AWS Athena and retrieve data. It implements the Model Context Protocol, allowing n8n agents to:
The server is configured using the following environment variables:
| Variable | Description | Default |
|---|---|---|
AWS_REGION | AWS region for Athena | us-east-1 |
ATHENA_CATALOG | Athena catalog name | AwsDataCatalog |
ATHENA_DATABASE | Default database to use | None |
ATHENA_WORKGROUP | Athena workgroup to use | primary |
ATHENA_OUTPUT_LOCATION | S3 location for query results | None (required) |
HOST | Host to bind the server | 0.0.0.0 |
PORT | Port to listen on | 8050 |
The MCP server provides the following tools to n8n AI agents:
Execute SQL queries against Athena and retrieve results.
Parameters:
query (string, required): SQL query to executedatabase (string, optional): Database namecatalog (string, optional): Catalog nameoutput_location (string, optional): S3 location for resultsworkgroup (string, optional): Workgroup namemax_results (integer, optional): Maximum number of results to returnmax_wait_seconds (integer, optional): Maximum time to wait for query completionList available databases in a catalog.
Parameters:
catalog (string, optional): Catalog nameList tables in a specific database.
Parameters:
database (string, required): Database namecatalog (string, optional): Catalog nameGet metadata for a specific table, including column definitions.
Parameters:
table (string, required): Table namedatabase (string, required): Database namecatalog (string, optional): Catalog namegit clone https://github.com/yourusername/aws-athena-mcp-server.git
cd aws-athena-mcp-server
pip install -r requirements.txt
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_REGION=your_region
export ATHENA_OUTPUT_LOCATION=s3://your-bucket/folder/
python main.py
The server will be available at http://localhost:8050.
docker build -t athena-mcp-server:latest .
docker run -p 8050:8050 \
-e AWS_REGION=us-east-1 \
-e ATHENA_OUTPUT_LOCATION=s3://your-bucket/folder/ \
-e AWS_ACCESS_KEY_ID=your_access_key \
-e AWS_SECRET_ACCESS_KEY=your_secret_key \
athena-mcp-server:latest
kubectl installed and configured to connect to your EKS cluster# Create ECR repository if it doesn't exist
aws ecr create-repository --repository-name athena-mcp-server
# Get ECR login command
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com
# Build and tag the image
docker build -t ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com/athena-mcp-server:latest .
# Push the image to ECR
docker push ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com/athena-mcp-server:latest
# Create IAM policy
aws iam create-policy \
--policy-name AthenaQueryPolicy \
--policy-document file://k8s/aws-policy.json
# Create IAM role for service account (IRSA)
eksctl create iamserviceaccount \
--name athena-mcp-server \
--namespace default \
--cluster your-eks-cluster \
--attach-policy-arn arn:aws:iam::${AWS_ACCOUNT_ID}:policy/AthenaQueryPolicy \
--approve \
--override-existing-serviceaccounts
export AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
export AWS_REGION=us-east-1
export ATHENA_DEFAULT_DATABASE=your_database
export ATHENA_WORKGROUP=primary
export ATHENA_OUTPUT_LOCATION=s3://your-bucket/athena-results/
# Replace variables in YAML files
envsubst < k8s/deployment.yaml > k8s/generated/deployment.yaml
envsubst < k8s/serviceaccount.yaml > k8s/generated/serviceaccount.yaml
kubectl apply -f k8s/generated/serviceaccount.yaml
kubectl apply -f k8s/generated/deployment.yaml
kubectl apply -f k8s/generated/service.yaml
kubectl get pods -l app=athena-mcp-server
kubectl get service athena-mcp-server
To use this MCP server with n8n:
docs/n8n_system_prompt_template.md)Use the template in docs/n8n_system_prompt_template.md for the n8n AI Agent node System Prompt. This template guides the AI in:
Customize the template with your specific Athena database structure and common query patterns.
Additional documentation can be found in the docs/ directory:
n8n_system_prompt_template.md: Template for n8n AI Agent system promptimplementation_guide.md: Detailed implementation guidearchitecture.md: Architecture diagram and explanationtroubleshooting.md: Solutions for common issuesn8n_integration_example.md: Example n8n workflowexamples/: Directory with example prompts for specific use casesMIT
Contributions are welcome! Please feel free to submit a Pull Request.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for AWS Athena MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/aws-athena-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.