Skip to main content
Glama

Nhost

Nhost

Quickstart   •   Website   •   Docs   •   Blog   •   X   •   Discord   •   Ask Nhost Guru (third party, unofficial)

Nhost is an open source Firebase alternative with GraphQL, built with the following things in mind:

  • Open Source

  • GraphQL

  • SQL

  • Great Developer Experience

Nhost consists of open source software:

Architecture of Nhost

Visit https://docs.nhost.io for the complete documentation.

Get Started

Related MCP server: Vibgrate AI Context

Option 1: Nhost Hosted Platform

  1. Sign in to Nhost.

  2. Create Nhost app.

  3. Done.

Option 2: Local Development (CLI)

The Nhost CLI is the easiest way to start developing locally. It sets up a local environment that tracks database migrations and Hasura metadata.

Install the CLI:

  • macOS / Linux: brew install nhost/tap/nhost or curl -sSL https://raw.githubusercontent.com/nhost/nhost/main/cli/get.sh | bash

  • Nix: nix profile install github:nhost/nhost#cli

  • npm / pnpm / Yarn / Bun: npm install -D @nhost/cli, pnpm add -D @nhost/cli, yarn add -D @nhost/cli, or bun add -d @nhost/cli

Start building:

nhost login
nhost init
nhost up

Read the full CLI Quickstart guide.

Connect your AI assistant (MCP):

The CLI ships with a Model Context Protocol (MCP) server. Your assistant can read the GraphQL schema, run the queries and mutations you allow, update Nhost Cloud project configuration, search the Nhost docs, and in local development manage metadata, permissions, and migrations. Works with Claude Code, Codex, Gemini CLI, Cursor, and other MCP clients.

claude mcp add nhost nhost mcp start

See the MCP Server docs for other clients and access settings.

Option 3: Self-hosting

Since Nhost is 100% open source, you can self-host the whole Nhost stack. Check out the example docker-compose file to self-host Nhost.

Sign In and Make a GraphQL Request

Install the @nhost/nhost-js package and start building your app:

import { createClient } from '@nhost/nhost-js'

const nhost = createClient({
  subdomain: 'your-project',
  region: 'eu-central-1'
})

await nhost.auth.signInEmailPassword({
  email: 'user@example.com',
  password: '<password>'
})

await nhost.graphql.request({
  query: `
    query GetUsers {
      users {
        id
        displayName
        email
      }
    }
  `
})

Frontend Agnostic

Nhost is frontend agnostic, which means Nhost works with all frontend frameworks.

Resources

Nhost Clients

Applications

Community ❤️

Star and watch this repository to stay up-to-date.

Also, follow Nhost on GitHub Discussions, our Blog, and on X. You can chat with the team and other members on Discord and follow our tutorials and other video material at YouTube.

Nhost is Open Source

This repository, and most of our other open source projects, are licensed under the MIT license.

How to contribute

Here are some ways of contributing to making Nhost better:

  • Try out Nhost, and think of ways to make the service better. Let us know here on GitHub.

  • Join our Discord and connect with other members to share and learn from.

  • Send a pull request to any of our open source repositories on Github. Check out our contribution guide for more details about how to contribute. We're looking forward to your contribution!

Contributors

Available Tools

6 tools
get-schemaC
Read-onlyIdempotent

Get GraphQL schema for an Nhost project running in the Nhost Cloud.

Inputs: role (required), subdomain (required), queries, summary, +1 more.

graphql-queryA
Destructive

Execute a GraphQL query against a Nhost project. This tool is useful to query and mutate data. If you run into issues executing queries, retrieve the schema again in case the schema has changed. If you get an error indicating the query or mutation is not allowed the user may have disabled them in the server, don't retry and tell the user they need to enable them when starting nhost's mcp

Inputs: role (required), query (required), subdomain (required), userId, +1 more.

listA
Read-onlyIdempotent

List all Nhost documentation pages. Use this tool to discover available documentation pages and their topics. Optionally group pages by section for a structured overview.

Inputs: grouped, summary.

manage-graphqlA
DestructiveIdempotent
	Query GraphQL's management endpoints on an Nhost project running. This tool is useful to
	manage hasura metadata, migrations, permissions, remote schemas, database migrations,
	etc. It also allows to interact with the underlying database directly.

	* Before using this tool always describe in natural languate what you are about to do.

	## Metadata changes

	* When changing metadata ALWAYS use the /apis/migrate endpoint
	* Always perform a bulk request to avoid
	  having to perform multiple requests
	* The admin user always has full permissions to everything by default, no need to configure
	  anything

	## Schema changes

	* Before performing any schema changes describe the changes in natural language
	* Before performing any database schema changes, always check the current state of the database
	* When performing database schema changes, always follow existing patterns in the database schema
	* When making database schema changes, always do it via the /apis/migrate endpoint
	* Always provide a down migration
	* Always track new tables
	* Always track new foreign keys as relationships
	* Never modify the database schema directly via SQL commands, always use the /apis/migrate endpoint

	## Roles

	* Roles need to be added to the table auth.roles, if requested to add a new role for an
	  application always do it via a migration

	## Data changes

	* Before adding/changing/modifying data confirm with the user if the change should be done
	  using a migration via the /apis/migrate endpoint
	

Inputs: body (required), path (required), subdomain (required).

read_pageA
Read-onlyIdempotent

Read the full content of an Nhost documentation page. Use this after searching to get the complete documentation for a specific page.

Inputs: path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 6 tools

    Disambiguation4/5

    Three GraphQL-related tools (get-schema, graphql-query, manage-graphql) could be confused at first glance, but descriptions clarify distinct roles: schema retrieval, data querying, and management endpoint access. The docs trio (list/search/read_page) overlaps slightly since list and search both help discover pages, though read_page is clearly distinct.

    Naming Consistency3/5

    Names mix conventions: get-schema, graphql-query, manage-graphql use kebab-case verb-noun, read_page uses snake_case, and list/search are bare verbs with no noun. Still readable and inferable, but not a predictable single pattern.

    Tool Count5/5

    Six tools is well-scoped for a GraphQL backend with documentation: schema, query, management, and doc discovery/retrieval each earn their place. No redundant or filler tools.

    Completeness4/5

    Covers the core domain well—schema introspection, data query/mutation, metadata and migration management, plus full docs access (list/search/read). Minor gaps around project-level or auth configuration operations, but agents can work around them.

    Maintenance

    ActivityActive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers