BlazeSQL MCP Server

Integrations

  • Handles API key authentication securely via environment variables for connecting to the BlazeSQL service.

  • Provides integration with BlazeSQL Natural Language Query API, allowing users to query databases using natural language requests and receive SQL queries and formatted results.

  • Used to implement the MCP server that connects to BlazeSQL's API, enabling natural language database querying capabilities.

BlazeSQL MCP 서버

이 프로젝트는 BlazeSQL 자연어 쿼리 API의 프록시 역할을 하는 모델 컨텍스트 프로토콜(MCP) 서버를 구현합니다. 이를 통해 MCP 호환 클라이언트(예: Cursor, 도구를 사용하는 Claude 3, MCP Inspector 등)가 자연어를 사용하여 BlazeSQL과 상호 작용할 수 있습니다.

특징

  • BlazeSQL 자연어 쿼리 API를 blazesql_query 라는 이름의 MCP 도구로 공개합니다.
  • 환경 변수를 통해 API 키 인증을 안전하게 처리합니다.
  • 표준 MCP stdio 전송을 사용하여 클라이언트와 통신합니다.

워크플로 다이어그램

이 다이어그램은 클라이언트가 blazesql_query 도구를 사용할 때의 상호작용 순서를 보여줍니다.

지엑스피1

필수 조건

설정

  1. 저장소 복제:
    git clone <repository-url> cd blaze-sql-mcp-server
  2. 종속성 설치:
    yarn install
  3. 환경 변수 구성:
    • 예제 환경 파일을 복사하세요.
      cp .env.sample .env
    • .env 파일을 편집합니다.
      # .env BLAZE_API_KEY=YOUR_BLAZESQL_API_KEY_HERE
      YOUR_BLAZESQL_API_KEY_HERE BlazeSQL 계정 설정에서 얻은 실제 API 키로 바꾸세요.

서버 실행

  1. 서버 빌드: TypeScript 코드를 JavaScript로 컴파일합니다.
    yarn build
  2. 서버 실행: 컴파일된 코드를 실행합니다.
    node build/index.js
    서버가 시작되고 stderr 에 메시지가 기록됩니다("API 키가 성공적으로 로드되었습니다..." 등의 메시지가 표시될 수 있음). 이제 표준 입출력(stdio)을 통해 MCP 클라이언트 연결을 수신합니다.

MCP 클라이언트 연결

이 서버는 stdio 전송 메커니즘을 사용합니다.

MCP Inspector 사용(테스트 권장)

  1. 서버가 별도로 실행되고 있지 않은지 확인하세요.
  2. 검사기를 실행하여 서버를 시작하도록 지시합니다.
    npx @modelcontextprotocol/inspector node build/index.js
  3. Inspector UI가 실행되고 자동으로 서버에 연결됩니다.
  4. "도구" 탭으로 이동하여 blazesql_query 도구와 상호 작용하세요.

통합 클라이언트(Cursor, Claude 3 등) 사용

  1. 터미널에서 서버를 시작합니다 .
    node build/index.js
  2. 클라이언트 구성: MCP 클라이언트 설정에서 사용자 지정 서버 구성을 추가해야 합니다.
    • 전송: stdio 선택하세요.
    • 명령어: 서버 실행에 사용되는 정확한 명령어를 지정하세요. node의 절대 경로build/index.js 파일의 절대 경로를 제공해야 합니다.
      • 예시(macOS/Linux - 필요에 따라 경로 조정): /usr/local/bin/node /Users/your_username/path/to/blaze-sql-mcp-server/build/index.js
      • 터미널에서 which node 입력하면 노드 경로를 찾을 수 있습니다.
      • 프로젝트 디렉토리 내에서 pwd 사용하여 프로젝트 경로를 찾을 수 있습니다.
    • 구성을 저장합니다.
  3. 이제 클라이언트는 로컬에서 실행 중인 서버에 연결하여 해당 도구를 나열하고 사용할 수 있습니다.

blazesql_query 도구 사용

연결되면 클라이언트는 blazesql_query 도구를 호출할 수 있습니다.

  • 도구 이름: blazesql_query
  • 인수:
    • db_id (문자열, 필수): BlazeSQL 계정의 대상 데이터베이스 연결 ID입니다. BlazeSQL 웹 애플리케이션에서 데이터베이스 연결을 관리할 때 이 ID를 찾을 수 있습니다.
    • natural_language_request (문자열, 필수): 실행하려는 쿼리를 일반 영어로 작성합니다(예: "사용자의 총 수를 보여주세요").
  • 예제 호출(설명을 위해 mcp test 구문 사용):
    call-tool blazesql_query --db_id "db_your_actual_db_id" --natural_language_request "What were the total sales last month?"
  • 출력: 성공하면 도구는 다음을 반환합니다.
    • BlazeSQL 에이전트의 자연어 응답을 담은 text 블록입니다.
    • BlazeSQL에서 생성하고 실행하는 SQL 쿼리를 포함하는 code 블록(언어 sql )입니다.
    • 쿼리의 실제 데이터 결과를 포함하는 json 블록입니다. 실패하면 MCP 오류 메시지를 반환합니다.

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

AI 클라이언트가 BlazeSQL의 자연어 쿼리 API와 상호 작용할 수 있도록 하는 모델 컨텍스트 프로토콜 서버로, SQL 데이터베이스에 대한 자연어 쿼리를 허용합니다.

  1. 특징
    1. 워크플로 다이어그램
      1. 필수 조건
        1. 설정
          1. 서버 실행
            1. MCP 클라이언트 연결
              1. MCP Inspector 사용(테스트 권장)
              2. 통합 클라이언트(Cursor, Claude 3 등) 사용
            2. blazesql_query 도구 사용

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server enabling AI agents to access and manipulate ServiceNow data through natural language interactions, allowing users to search for records, update them, and manage scripts.
                Last updated -
                9
                Python
                MIT License
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables natural language queries to MySQL databases, powered by XiYanSQL text-to-SQL technology.
                Last updated -
                94
                Python
                Apache 2.0
                • Linux
                • Apple
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables AI agents to query Erick Wendel's talks, blog posts, and videos across different platforms using natural language.
                Last updated -
                55
                TypeScript
                MIT License
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables AI models to interact with MySQL databases through natural language, supporting SQL queries, table creation, and schema exploration.
                Last updated -
                1
                Python
                • Linux
                • Apple

              View all related MCP servers

              ID: y6icx0ab46