Skip to main content
Glama
suryarajendhran

hasura-mcp-server

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-secret

You can also pass values directly:

npx hasura-mcp-server --endpoint https://your-hasura/v1/graphql --x-hasura-admin-secret your-admin-secret

Any 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_check

  • list_tables

  • describe_table

  • list_root_fields

  • describe_graphql_type

  • preview_table_data

  • aggregate_data

  • run_graphql_query

Note: mutation operations are not allowed.

Resource

  • hasura://schema (GraphQL introspection schema)

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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