
kukapay/dune-analytics-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
kukapay/dune-analytics-mcp는 MCP 서버 후보가 https://github.com/kukapay/dune-analytics-mcp.에서 수입되었습니다
개요
kukapay/dune-analytics-mcp는 MCP 서버 후보가 https://github.com/kukapay/dune-analytics-mcp.에서 수입되었습니다
개요(AI 번역)
Dune Analytics 데이터를 AI Agent에 연결하는 mcp 서버.
특징
- 도구:
get_latest_result: ID로 Dune 쿼리의 최신 결과를 가져옵니다.run_query: ID로 Dune 쿼리를 실행하고 결과를 검색합니다.- ** CSV 출력**: 모든 결과는 CSV 형식 문자열로 쉽게 처리할 수 있습니다.
필수품
- 파이썬 3.10+
- Dune Analytics API 키 유효성 검사 (Dane Analytics에서 하나씩)
설치
Smithery를 통해 설치
Smithery를 통해 Claude Desktop용 Dune Analytics를 자동으로 설치하십시오.
수동 설치
-
** 저장소를 복제 **:
-
** 환경 변수 설정 **: 프로젝트 루트의
.env파일 만들기:
또는 시스템 환경 변수로 설정:
사용법
서버 실행
- 개발 모드:
이것은 개발을위한 핫 리로드 서버를 시작합니다.
- ** Claude Desktop용 설치 **:
Claude 데스크톱과 함께 사용할 서비스로 서버를 설치합니다.
공구 사용법
get_latest_result(query_id)-Description: 지정된 Dune 쿼리의 최신 결과를 검색합니다.
- 입력:
query_id(int) - 던 쿼리의 ID. -Output: 쿼리 결과의 CSV 형식 문자열.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
Dune Analytics MCP Server
A mcp server that bridges Dune Analytics data to AI agents.
Features
- Tools:
get_latest_result: Fetch the latest results of a Dune query by ID.run_query: Execute a Dune query by ID and retrieve results.
- CSV Output: All results are returned as CSV-formatted strings for easy processing.
Prerequisites
- Python 3.10+
- A valid Dune Analytics API key (get one from Dune Analytics)
Installation
Installing via Smithery
To install Dune Analytics for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kukapay/dune-analytics-mcp --client claude
Manual Installation
-
Clone the Repository:
git clone https://github.com/kukapay/dune-analytics-mcp.git cd dune-analytics-mcp -
Set Up Environment Variables: Create a
.envfile in the project root:DUNE_API_KEY=your_api_key_hereAlternatively, set it as a system environment variable:
export DUNE_API_KEY="your_api_key_here"
Usage
Running the Server
-
Development Mode:
mcp dev main.pyThis starts the server with hot reloading for development.
-
Install for Claude Desktop:
mcp install main.py --name "Dune Analytics"Installs the server as a service for use with Claude Desktop.
Tool Usage
-
get_latest_result(query_id)- Description: Retrieves the latest results of a specified Dune query.
- Input:
query_id(int) - The ID of the Dune query. - Output: CSV-formatted string of the query results.
- Example:
get_latest_result(query_id=4853921)
-
run_query(query_id)- Description: Executes a Dune query and returns the results.
- Input:
query_id(int) - The ID of the Dune query to run. - Output: CSV-formatted string of the query results.
- Example:
run_query(query_id=1215383)
Example Commands in Claude Desktop
- “Get latest results for dune query 1215383”
- “Run dune query 1215383”
License
This project is licensed under the MIT License - see the LICENSE file for details.
설치
npx -y @smithery/cli install @kukapay/dune-analytics-mcp --client claude