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 "Install 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
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/suryarajendhran/hasura-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server