CA

colemurray/aws-athena-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

24 stars 12 forks 品質 83 トレンド 30MIT

FastMCPを用いたAWS Athena MCP

概要

AWS Athenaの統合のためのシンプルでクリーンなMCP(Model Context Protocol)サーバー。 SQL クエリを実行し、スキーマを発見し、標準化されたインターフェイスを使用してクエリ実行を管理します。 - - - - モジュラー、よくテストされ、理解しやすい - - クエリ実行とスキーマの発見 - - フルタイプのヒントとPydanticモデル - - - - async / awaitでパフォーマンスのために構築 - 最小限の設定でボックスからワークアウト です。 サーバが稼働し、MCP 接続を受け入れる準備が整います。 Claude DesktopでこのMCPサーバーを使用するには: 既にインストールされていない場合は、Claude Desktopをダウンロードしてインストールします。 以下の設定を claude desktop config.json に追加します。 - : ~/Library/Application Support/Claude/claude desktop config.json - : %APPDATA%\Claude\claude desktop config.json 最も一般的なMCP設定パターンのOption 1(uvx)を使用します。 Option2(インストールされたツール)は、各起動時にパッケージの解像度を避けるため、より良いパフォーマンスを提供します.

概要(AI 翻訳)

AWS Athenaの統合のためのシンプルでクリーンなMCP(Model Context Protocol)サーバー。 SQL クエリを実行し、スキーマを発見し、標準化されたインターフェイスを使用してクエリ実行を管理します。

✨ 機能

  • シンプルなセットアップ - 5分以内に走る取得
  • クリーンアーキテクチャ - モジュラー、よくテストされ、理解しやすい
  • 必須ツール - クエリ実行とスキーマの発見
  • タイプ安全 - フルタイプヒントとピダニモデル
  • 非同期サポート - 非同期/待ち時間でパフォーマンスのために構築
  • ** よい Defaults** - 最小限の設定の箱から出ます

すぐにスタート

##1. インストール

##2. 設定

必要な環境変数を設定します。

##3. 実行

です。 サーバが稼働し、MCP 接続を受け入れる準備が整います。

✔ デスクトップの統合

Claude DesktopでこのMCPサーバーを使用するには:

##1. Claudeデスクトップをインストール 既にインストールされていない場合は、Claude Desktopをダウンロードしてインストールします。

##2。 Claudeデスクトップの設定 [claude_desktop_config.json に次の設定を追加します。

設定ファイルの配置:

  • macOS: [~/Library/Application Support/Claude/claude_desktop_config.json] -Windows:[%APPDATA%\Claude\claude_desktop_config.json

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

AWS Athena MCP Server

A simple, clean MCP (Model Context Protocol) server for AWS Athena integration. Execute SQL queries, discover schemas, and manage query executions through a standardized interface.

✨ Features

  • Simple Setup - Get running in under 5 minutes
  • Clean Architecture - Modular, well-tested, easy to understand
  • Essential Tools - Query execution and schema discovery
  • Type Safe - Full type hints and Pydantic models
  • Async Support - Built for performance with async/await
  • Good Defaults - Works out of the box with minimal configuration

🚀 Quick Start

1. Install

# From PyPI with uv (recommended for Claude Desktop)
uv tool install aws-athena-mcp

# From PyPI with pip
pip install aws-athena-mcp

# Or from source
git clone https://github.com/ColeMurray/aws-athena-mcp
cd aws-athena-mcp
pip install -e .

2. Configure

Set the required environment variables:

# Required
export ATHENA_S3_OUTPUT_LOCATION=s3://your-bucket/athena-results/

# Optional (with defaults)
export AWS_REGION=us-east-1
export ATHENA_WORKGROUP=primary
export ATHENA_TIMEOUT_SECONDS=60

3. Run

# Start the MCP server (if installed with uv tool install)
aws-athena-mcp

# Or run directly with uv (without installing)
uv tool run aws-athena-mcp

# Or run directly with uvx (without installing)
uvx aws-athena-mcp

# Or run directly with Python
python -m athena_mcp.server

That’s it! The server is now running and ready to accept MCP connections.

🤖 Claude Desktop Integration

To use this MCP server with Claude Desktop:

1. Install Claude Desktop

Download and install Claude Desktop if you haven’t already.

2. Configure Claude Desktop

Add the following configuration to your claude_desktop_config.json:

Location of config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Configuration (Option 1 - Using uvx - Recommended):

{
  "mcpServers": {
    "aws-athena-mcp": {
      "command": "uvx",
      "args": [
        "aws-athena-mcp"
      ],
      "env": {
        "ATHENA_S3_OUTPUT_LOCATION": "s3://your-bucket/athena-results/",
        "AWS_REGION": "us-east-1",
        "ATHENA_WORKGROUP": "primary",
        "ATHENA_TIMEOUT_SECONDS": "60"
      }
    }
  }
}

Configuration (Option 2 - Using installed tool):

{
  "mcpServers": {
    "aws-athena-mcp": {
      "command": "aws-athena-mcp",
      "env": {
        "ATHENA_S3_OUTPUT_LOCATION": "s3://your-bucket/athena-results/",
        "AWS_REGION": "us-east-1",
        "ATHENA_WORKGROUP": "primary",
        "ATHENA_TIMEOUT_SECONDS": "60"
      }
    }
  }
}

Configuration (Option 3 - Using uv tool run):

{
  "mcpServers": {
    "aws-athena-mcp": {
      "command": "uv",
      "args": [
        "tool",
        "run",
        "aws-athena-mcp"
      ],
      "env": {
GitHub で README 全文を見る

インストール

uvx aws-athena-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "aws-athena-mcp": { "command": "uvx", "args": [ "aws-athena-mcp" ], "env": { "ATHENA_S3_OUTPUT_LOCATION": "s3://your-bucket/athena-results/", "AWS_REGION": "us-east-1", "ATHENA_WORKGROUP": "primary", "ATHENA_TIMEOUT_SECONDS": "60" } } } }