Deploy MCP Server
GraphQL & Database Bearer Token

Hasura GraphQL Engine REST API

Instant GraphQL APIs on your databases

Hasura GraphQL Engine provides instant, realtime GraphQL APIs on new or existing Postgres databases. It includes built-in authorization, event triggers, and remote schema stitching. Developers use Hasura to rapidly build scalable GraphQL backends without writing boilerplate code, with automatic CRUD operations and real-time subscriptions out of the box.

Base URL https://your-project.hasura.app

API Endpoints

MethodEndpointDescription
POST/v1/graphqlExecute GraphQL queries and mutations against your database schema
POST/v1/queryExecute Hasura metadata and DDL operations including track/untrack tables
POST/v1/metadataManage Hasura metadata including relationships, permissions, and remote schemas
GET/v1/versionGet the current Hasura GraphQL Engine version information
GET/healthzHealth check endpoint for monitoring Hasura instance status
POST/v1alpha1/graphql/explainGet query execution plan and performance analysis for GraphQL queries
POST/v2/queryExecute metadata API v2 operations with enhanced features
POST/v1/graphql/introspectIntrospect the GraphQL schema to retrieve type definitions
GET/v1alpha1/configRetrieve Hasura configuration and enabled features
POST/v1alpha1/pg_dumpExport PostgreSQL database schema and data as SQL dump
POST/v1/relayExecute Relay-compliant GraphQL queries with global object identification
POST/v1alpha1/graphql/clearClear the GraphQL schema cache to reload metadata changes

Code Examples

curl -X POST https://your-project.hasura.app/v1/graphql \
  -H 'Content-Type: application/json' \
  -H 'x-hasura-admin-secret: your-admin-secret' \
  -d '{
    "query": "query GetUsers { users { id name email created_at } }"
  }'

Connect Hasura GraphQL Engine to AI

Deploy a Hasura GraphQL Engine MCP server on IOX Cloud and connect it to Claude, ChatGPT, Cursor, or any AI client. Your AI assistant gets direct access to Hasura GraphQL Engine through these tools:

hasura_query_database Execute GraphQL queries against Hasura to retrieve data from connected databases with filtering and pagination
hasura_mutate_data Perform insert, update, or delete operations on database tables through GraphQL mutations
hasura_track_table Automatically track new database tables in Hasura to expose them via GraphQL API
hasura_manage_permissions Configure role-based access control and permissions for tables and fields
hasura_create_relationship Define foreign key relationships between tables to enable nested GraphQL queries

Deploy in 60 seconds

Describe what you need, AI generates the code, and IOX deploys it globally.

Deploy Hasura GraphQL Engine MCP Server →

Related APIs