Advanced Hasura GraphQL MCP ServerServer

husamabusafa
GitHub
GraphQLMCPAI Integration

Loading subscription status...

💡 Description

This Model Context Protocol (MCP) server offers an advanced interface for AI agents to interact with Hasura GraphQL endpoints. The server allows agents to detect API structure, execute read-only queries and mutations, preview data, perform aggregations, and check service health based on natural language requests.

📝 JSON Entries

{
  "mcpServers": [
    {
      "Advanced Hasura GraphQL MCP Server": {
        "args": [
          "/absolute/path/to/mcp-hasura-advanced/dist/index.js",
          "https://YOUR_HASURA_ENDPOINT.com/v1/graphql",
          "YOUR_ADMIN_SECRET"
        ],
        "command": "/path/to/your/node"
      }
    }
  ]
}

🛠️ Tools

run_graphql_queryrun_graphql_mutationlist_tablesdescribe_tablelist_root_fieldsdescribe_graphql_typepreview_table_dataaggregate_datahealth_check

Features

  • Dynamic interaction with Hasura API
  • Schema introspection
  • Data querying and manipulation
  • Aggregation capabilities
  • Health checks for the service

💬 Example Queries

  • List tables managed by Hasura
  • Describe the 'users' table
  • Preview data from the 'orders' table
  • Execute the query `{ products { name price } }` using the Hasura server