Hasura MCP Server

This Model Context Protocol (MCP) server provides an advanced interface for AI agents (like those in Cursor or Claude Desktop) to interact with a

Local serverstdioTypeScript

What is the Hasura MCP Server?

This Model Context Protocol (MCP) server provides an advanced interface for AI agents (like those in Cursor or Claude Desktop) to interact with a Hasura GraphQL

What the server does

  • Hasura GraphQL Schema (hasura:/schema) —
  • Provides the full GraphQL schema definition obtained via standard introspection
  • MIME Type: — application/json
  • Agents can read this resource to understand the complete structure of the API, including types, fields, arguments, directives, etc
  • run_graphql_query —
  • Description: — Executes a read-only GraphQL query against the Hasura endpoint. Use this for fetching data when a specific tool isn't available. Ensure the query does not modify data. Example: query { users { id name } }

Credentials and setup notes

  • Node.js (v18 or higher recommended, check .nvmrc or package.json engines if specified) * pnpm (or npm/yarn, adjust commands accordingly) * Access to a running Hasura GraphQL endpoint. * (Optional but recommended) Hasura Admin Secret for privileged access, or properly configured default role permissions.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Node.js (v18 or higher recommended, check .nvmrc or package.json engines if specified) * pnpm (or npm/yarn, adjust commands accordingly) * Access to a running Hasura GraphQL endpoint. * (Optional but recommended) Hasura Admin Secret for privileged access, or properly configured default role permissions.
VariableDescriptionRequired
ADMIN_SECRETCredential the server authenticates with.Yes

Frequently asked questions

This Model Context Protocol (MCP) server provides an advanced interface for AI agents (like those in Cursor or Claude Desktop) to interact with a Hasura GraphQL Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.