Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Nhost

MCP server by nhost Community

Nhost is an open source Firebase alternative whose CLI ships with an MCP server for AI coding assistants. It lets assistants read the GraphQL schema and work with Nhost projects. It is aimed at developers building apps on Nhost.

  • Score 94
  • 9.4k stars
  • MIT
  • Updated

Install Nhost

Built from the published package, never by AI.

claude mcp add nhost -e MCP_GRAPHQL_ENDPOINT=YOUR_MCP_GRAPHQL_ENDPOINT -e MCP_AUTH_URL=YOUR_MCP_AUTH_URL -- docker run -i --rm -e MCP_GRAPHQL_ENDPOINT -e MCP_AUTH_URL docker.io/nhost/mcp:0.4.0-beta2

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Nhost in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the nhost block.

About

Nhost is an open source Firebase alternative built on PostgreSQL, Hasura for the instant GraphQL API, and separate services for authentication, storage, and serverless functions. The Nhost CLI includes an MCP server that connects AI coding assistants to a project. According to the source, the assistant can read the GraphQL schema, run the queries and mutations the user allows, update Nhost Cloud project configuration, and search the Nhost docs.

In local development, the MCP server can also manage metadata, permissions, and migrations. The source says it works with Claude Code, Codex, Gemini CLI, Cursor, and other MCP clients. The setup command shown is a single line that adds the server to Claude Code. The server is aimed at developers who build apps on Nhost and want an AI assistant to help with their backend.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Read the GraphQL schemaLets the assistant read the GraphQL schema of an Nhost project.
  • Run allowed queries and mutationsLets the assistant run the GraphQL queries and mutations that the user allows.
  • Update Nhost Cloud project configurationLets the assistant change the configuration of a Nhost Cloud project.
  • Search Nhost docsLets the assistant search the Nhost documentation.
  • Manage metadata, permissions, and migrationsIn local development, lets the assistant manage Hasura metadata, permissions, and migrations.

What you need

  • Nhost CLI, installed with Homebrew, Nix, or npm, pnpm, Yarn, or Bun
  • An Nhost account for the hosted platform
  • An MCP client such as Claude Code, Codex, Gemini CLI, or Cursor
SettingNeededWhat it is
MCP_GRAPHQL_ENDPOINTEnvironment variableRequiredGraphQL endpoint of the Nhost project the server exposes, e.g. http://hasura-service:8080/v1/graphql
MCP_AUTH_URLEnvironment variableRequiredNhost Auth URL used as the OAuth2 authorization server, e.g. https://SUBDOMAIN.auth.REGION.nhost.run/v1
MCP_STORAGE_URLEnvironment variableOptionalStorage URL for the same Nhost project, including /v1; enables the read-only storage-download tool
MCP_STORAGE_MAX_TRANSFER_BYTESEnvironment variableOptionalMaximum storage download response size in bytes; default 50000000 (50 MB)

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Show me the GraphQL schema for my Nhost project.
  • Run a query that lists users with their display names and emails.
  • Search the Nhost docs for how to set up row-level permissions.

Good to know

  • Managing metadata, permissions, and migrations applies to local development.
  • The assistant can only run the queries and mutations the user allows.
  • Access settings for the MCP server are described in the MCP Server docs.

Security check

C
  • Downloads a script from the internet and runs itIn README.md: curl -sSL https://raw.githubusercontent.com/nhost/nhost/main/cli/get.sh | bash

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Nhost

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Nhost: common questions

Is Nhost open source?

The source says Nhost is 100% open source and that the repository is licensed under the MIT license. It can be self-hosted with the example docker-compose file.

Which AI assistants work with the Nhost MCP server?

The source says it works with Claude Code, Codex, Gemini CLI, Cursor, and other MCP clients. It is built into the Nhost CLI.

What is Nhost built on?

The source lists PostgreSQL for the database, Hasura for the instant GraphQL API, and separate services for authentication and storage. Serverless functions run on Node.js.

How do I install Nhost?

In Claude Code run claude mcp add nhost -e MCP_GRAPHQL_ENDPOINT=YOUR_MCP_GRAPHQL_ENDPOINT -e MCP_AUTH_URL=YOUR_MCP_AUTH_URL -- docker run -i --rm -e MCP_GRAPHQL_ENDPOINT -e MCP_AUTH_URL docker.io/nhost/mcp:0.4.0-beta2. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Nhost the official server?

Nhost is a community project by nhost, not verified by a company domain.

Is Nhost free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Nhost safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to Nhost?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Nhost work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.