athena-mcp
Enables users to execute SQL queries, manage workgroups, databases, tables, and named queries in AWS Athena through natural language.
README
athena-mcp
An AWS Athena MCP Server using FastMCP. It provides secure access to AWS Athena operations with manual AWS credential authentication.
Overview
This project provides a set of tools to interact with AWS Athena. These tools are built using the mcp library and boto3. The server uses manual AWS credential authentication, reading credentials from environment variables.
Features
The following Athena operations are supported:
- Workgroups:
list_work_groups: List all Athena work groups.get_work_group: Get details about a work group.
- Databases:
list_databases: List databases in a data catalog.
- Tables:
list_tables: List tables in a database.get_table_metadata: Get metadata for a specific table.
- Queries:
start_query_execution: Execute a SQL query in Athena.get_query_execution: Get details about a query execution.get_query_results: Get results from a completed query.stop_query_execution: Stop a running query execution.list_query_executions: List recent query executions.
- Named Queries:
create_named_query: Create a named query.list_named_queries: List named queries.get_named_query: Get details about a named query.delete_named_query: Delete a named query.
- Data Catalogs:
list_data_catalogs: List data catalogs.
Getting Started
Prerequisites
- Python >= 3.13
- AWS account with Athena access
Installation
- Clone the repository:
git clone https://github.com/your-username/athena-mcp.git cd athena-mcp - Install the dependencies:
pip install -r requirements.txt
Configuration
- Create a
.envfile in the root of the project and add your AWS credentials:AWS_ACCESS_KEY_ID=your-access-key AWS_SECRET_ACCESS_KEY=your-secret-key AWS_SESSION_TOKEN=your-session-token (optional) AWS_REGION=your-aws-region
Usage
To start the server, run the following command:
athena-mcp
This will start the FastMCP server, and you can then use the provided tools to interact with AWS Athena.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.