PL

poddubnyoleg/lightdash_mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

24 stars 8 forks 품질 77 트렌드 4MIT

lightdash를 위한 mcp 서버

개요

Claude, Cursor 및 Model Context Protocol (MCP)을 사용하여 Lightdash 분석에 다른 AI 보조를 연결합니다. Lightdash와 상호 작용하는 모델 Context Protocol (MCP) 서버는 LLM을 사용하여 데이터를 검색하고, 차트를 만들고, 대시보드를 프로그래밍할 수 있습니다. 이 MCP 서버는 전체 데이터 분석 작업 흐름에 대한 포괄적 인 세트의 도구를 제공합니다. * : 데이터 카탈로그를 탐색하고 테이블 / 익스플로러를 찾아 schemas를 이해하십시오. * : 전체 필터, 미터 및 집계 지원이있는 큐레이터를 실행하십시오. * : 생성, 읽기, 업데이트 및 복잡한 시각화 차트를 삭제하십시오. * : 타일, 필터 및 레이아웃이있는 대시보드를 구축하고 관리 * : 콘텐츠 조직을위한 공간을 만들고 관리하십시오. * Python 3.10+ * Lightdash 인스턴스(Cloud 또는 self-hosted) * Lightdash 개인 액세스 토큰(Lightdash 프로파일 설정 포함) Lightdash 인스턴스가 Google Cloud Identity-Aware Proxy (e.g. Cloud Run with --iap) 뒤에 있는 경우, iap 추가 설치: IAP ENABLED=true를 설정합니다.

개요(AI 번역)

모형 Context 의정서 (MCP)를 사용하여 Lightdash 분석에 Claude, Cursor 및 다른 AI 조수를 연결합니다.

Lightdash와 상호 작용하는 모델 Context Protocol (MCP) 서버는 LLM을 사용하여 데이터를 검색하고, 차트를 만들고, 대시보드를 프로그래밍할 수 있습니다.

특징

이 MCP 서버는 전체 데이터 분석 작업 흐름에 대한 포괄적 인 세트의 도구를 제공합니다.

  • Discovery: 데이터 카탈로그를 살펴보고, 테이블/익스플로러를 찾아서 스키마를 이해하십시오.
  • ** 쿼리**: 전체 필터, 메트릭 및 집계 지원으로 쿼리 수행 *Chart Management: 복잡한 시각화로 차트 생성, 읽기, 업데이트 및 삭제
  • **Dashboard 관리 **: 타일, 필터, 레이아웃과 대시보드 구축 및 관리
  • ** 자원 기관**: 콘텐츠 조직의 공간 작성 및 관리

설치

# 필수품

  • 파이썬 3.10+
  • Lightdash 인스턴스 (Cloud 또는 자체 호스팅)
  • Lightdash 개인 액세스 토큰 (Lightdash 프로파일 설정에서 제외)

빠른 시작 pip (추천)

uvx로 빠른 시작

pipx로 빠른 시작

소스에서 설치

구글 클라우드 IAP 지원

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Lightdash MCP Server

Connect Claude, Cursor, and other AI assistants to your Lightdash analytics using the Model Context Protocol (MCP).

A Model Context Protocol (MCP) server for interacting with Lightdash, enabling LLMs to discover data, create charts, and manage dashboards programmatically.

Features

This MCP server provides a comprehensive set of tools for the full data analytics workflow:

  • Discovery: Explore data catalogs, find tables/explores, and understand schemas
  • Querying: Execute queries with full filter, metric, and aggregation support
  • Chart Management: Create, read, update, and delete charts with complex visualizations
  • Dashboard Management: Build and manage dashboards with tiles, filters, and layouts
  • Resource Organization: Create and manage spaces for content organization

Installation

Prerequisites

  • Python 3.10+
  • A Lightdash instance (Cloud or self-hosted)
  • Lightdash Personal Access Token (obtain from your Lightdash profile settings)
pip install lightdash-mcp

Quick Start with uvx

uvx lightdash-mcp

Quick Start with pipx

pipx run lightdash-mcp

Install from Source

git clone https://github.com/poddubnyoleg/lightdash_mcp.git
cd lightdash_mcp
pip install .

Google Cloud IAP Support

If your Lightdash instance is behind Google Cloud Identity-Aware Proxy (e.g. Cloud Run with --iap), install with the iap extra:

pip install lightdash-mcp[iap]
# or from source
pip install .[iap]

Set IAP_ENABLED=true. The server will sign a JWT (audience {LIGHTDASH_URL}/*) via the IAM Credentials API and attach it as Proxy-Authorization: Bearer on every request. The Authorization: ApiKey header is preserved for Lightdash.

Both service account credentials and user credentials (Application Default Credentials / ADC) are supported:

Service account credentials (default in Cloud Run, GCE, etc.):

  • The runtime service account needs roles/iam.serviceAccountTokenCreator on itself
  • The runtime service account needs roles/iap.httpsResourceAccessor on the Cloud Run service

User credentials (ADC) (e.g. gcloud auth application-default login):

  • Set IAP_SA to the service account email to impersonate for signing the JWT
GitHub에서 전체 README 보기

설치

uvx lightdash-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "lightdash": { "command": "uvx", "args": ["lightdash-mcp"], "env": { "LIGHTDASH_TOKEN": "ldt_your_token_here", "LIGHTDASH_URL": "https://app.lightdash.cloud", "LIGHTDASH_PROJECT_UUID": "your-project-uuid" } } } }