HH

husamabusafa/hasura_mcp

Developer tools

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

25 stars 12 forks 품질 55 트렌드 0

이 모델 Context Protocol (MCP) 서버는 Hasura GraphQL 엔드포인트와 상호 작용하기 위해 AI Agent (CURSor 또는 Claude Desktop)의 고급 인터페이스를 제공합니다.

개요

이 모델 Context Protocol (MCP) 서버는 Hasura GraphQL 엔드포인트와 상호 작용하기 위해 AI Agent (CURSor 또는 Claude Desktop)의 고급 인터페이스를 제공합니다. API 구조를 발견 할 에이전트를 활성화, 읽기 전용 쿼리 및 mutations 모두 실행 (카우 션 포함), 미리보기 데이터, 집계를 수행, 및 서비스 건강 확인. 이 서버는 자연적인 언어 요구에 근거를 둔 Hasura API를 동적인 레버리지로 LLM 기능을 강화합니다. 이 서버는 뒤에 오는 MCP 기능을 드러냅니다: * 표준 인트로픽션을 통해 얻은 전체 GraphQL 스키마 정의를 제공합니다. * application/json * Agents는 유형, 필드, 인수, 지침 등 API의 전체 구조를 이해하기 위해이 리소스를 읽을 수 있습니다. * Hasura endpoint에 대한 read-only GraphQL 쿼리를 실행합니다. 특정 도구가 사용할 수 없을 때 fetching 데이터를 사용합니다. 쿼리는 데이터를 수정하지 않습니다.

개요(AI 번역)

** 버전:** 1.1.0

이 모델 Context Protocol (MCP) 서버는 Hasura GraphQL 엔드포인트와 상호 작용하기 위해 AI Agent (CURSor 또는 Claude Desktop)의 고급 인터페이스를 제공합니다. API 구조를 발견 할 에이전트를 활성화, 읽기 전용 쿼리 및 mutations 모두 실행 (카우 션 포함), 미리보기 데이터, 집계를 수행, 및 서비스 건강 확인.

이 서버는 자연적인 언어 요구에 근거를 둔 Hasura API를 동적인 레버리지로 LLM 기능을 강화합니다.

특징

이 서버는 뒤에 오는 MCP 기능을 드러냅니다:

출처:

  • Hasura GraphQL Schema (hasura:/schema)
  • 표준 인트로픽션을 통해 얻은 전체 GraphQL 스키마 정의를 제공합니다.
  • ** 최소 유형 :** application/json
  • 에이전트는 유형, 필드, 인수, 지침 등 API의 전체 구조를 이해하기 위해이 리소스를 읽을 수 있습니다.

도구:

*run_graphql_query

  • ** 설명:** Hasura endpoint에 대한 read-only GraphQL 쿼리를 실행합니다. 특정 도구가 사용할 수 없을 때 fetching 데이터를 사용합니다. 쿼리는 데이터를 수정하지 않습니다. 예금: [T3]]

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

README

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

Advanced Hasura GraphQL MCP Server

Version: 1.1.0

This Model Context Protocol (MCP) server provides an advanced interface for AI agents (like those in Cursor or Claude Desktop) to interact with a Hasura GraphQL endpoint. It enables agents to discover the API structure, execute both read-only queries and mutations (with caution), preview data, perform aggregations, and check service health.

This server enhances LLM capabilities by allowing them to leverage your Hasura API dynamically based on natural language requests.

Features

This server exposes the following MCP capabilities:

Resources:

  • Hasura GraphQL Schema (hasura:/schema)
    • Provides the full GraphQL schema definition obtained via standard introspection.
    • MIME Type: application/json
    • Agents can read this resource to understand the complete structure of the API, including types, fields, arguments, directives, etc.

Tools:

  • run_graphql_query

    • Description: Executes a read-only GraphQL query against the Hasura endpoint. Use this for fetching data when a specific tool isn’t available. Ensure the query does not modify data. Example: query { users { id name } }
    • Input: { query: string, variables?: object }
    • Note: Performs a basic check to prevent execution of strings starting with mutation. Primarily relies on the query itself being read-only.
  • run_graphql_mutation

    • Description: Executes a GraphQL mutation to insert, update, or delete data. Use with caution, ensure the operation is intended and safe. Relies on Hasura permissions configured for the provided Admin Secret or default role. Example: mutation { insert_users_one(object: {name: "Test"}) { id } }
    • Input: { mutation: string, variables?: object }
    • Security: Allows any mutation permitted by the Hasura role. Ensure appropriate Hasura permissions are configured.
  • list_tables

    • Description: Lists available data tables (or collections) managed by Hasura, organized by schema with descriptions, based on introspection heuristics (looks for object types with an ‘id’ field, excluding internal/aggregate types). Useful for discovering available data sources.
    • Input: { schemaName?: string } (Optional schema name, attempts to infer from field descriptions if possible, defaults to ‘public’ conceptually)
  • describe_table

    • Description: Shows the structure of a specific table including all its columns (fields) with their GraphQL types and descriptions.
    • Input: { tableName: string, schemaName?: string }
  • list_root_fields

    • Description: Lists the available top-level query, mutation, or subscription fields from the GraphQL schema. Useful for understanding the primary entry points for operations.
    • Input: { fieldType?: 'QUERY' | 'MUTATION' | 'SUBSCRIPTION' } (Optional filter)
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { // ... other servers ... "hasura-advanced": { // Key used internally by Claude "command": "/path/to/your/node", // <<< Absolute path from 'which node' "args": [ "/absolute/path/to/mcp-hasura-advanced/dist/index.js", // <<< Absolute path to compiled script "https://YOUR_HASURA_ENDPOINT.com/v1/graphql", // <<< Your endpoint "YOUR_ADMIN_SECRET" // <<< Your secret (REMOVE if no secret) ], // Optional: // "cwd": "/absolute/path/to/mcp-hasura-advanced" } } }