hasura-mcp-server
Provides tools for interacting with a Hasura GraphQL endpoint, enabling health checks, table listing and description, root field and type introspection, data preview, aggregation, and read-only query execution.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hasura-mcp-serverlist all tables in my database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hasura-mcp-server
MCP server for Hasura GraphQL, runnable via npx hasura-mcp-server.
Requirements
Node.js 18+
Hasura GraphQL endpoint + admin secret
Related MCP server: PostgreSQL MCP Server
Usage
export HASURA_GRAPHQL_ENDPOINT="https://your-hasura/v1/graphql"
npx hasura-mcp-server --x-hasura-admin-secret=your-admin-secretYou can also pass values directly:
npx hasura-mcp-server --endpoint https://your-hasura/v1/graphql --x-hasura-admin-secret your-admin-secretAny other --key value or --key=value args are forwarded as headers:
npx hasura-mcp-server --endpoint https://your-hasura/v1/graphql \\
--x-hasura-admin-secret=secret \\
--x-hasura-role=readonly \\
--authorization="Bearer token"Tools
health_checklist_tablesdescribe_tablelist_root_fieldsdescribe_graphql_typepreview_table_dataaggregate_datarun_graphql_query
Note: mutation operations are not allowed.
Resource
hasura://schema(GraphQL introspection schema)
This server cannot be deployed
Maintenance
Related MCP Connectors
Provides read access to your GKE and Kubernetes resources.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Generate, fix, explain and run read-only SQL on PostgreSQL, MySQL and SQL Server
Read-only access to a Lumin project's logs, metrics, uptime checks, alerts and infrastructure.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables read-only access to PostgreSQL databases with multi-tenant support, allowing users to query data, explore schemas, inspect table structures, and view function definitions across different tenant schemas safely.55 npm1-
- FlicenseNot gradedqualityDmaintenanceProvides read-only access to PostgreSQL databases with schema inspection, query execution in multiple formats (JSON, CSV, Markdown), and query history tracking with built-in security features.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Hasura GraphQL endpoints to discover schema structures and execute queries or mutations. It provides specialized tools for table introspection, data previewing, and performing data aggregations through natural language.-
- AlicenseNot gradedqualityDmaintenanceProvides secure, read-only access to PostgreSQL databases for schema inspection and data querying. It enables users to list tables, describe structures, and execute SELECT statements while strictly blocking destructive operations.4 npm1MIT