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.
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-beta2Run in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"nhost": {
"env": {
"MCP_AUTH_URL": "YOUR_MCP_AUTH_URL",
"MCP_GRAPHQL_ENDPOINT": "YOUR_MCP_GRAPHQL_ENDPOINT"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_GRAPHQL_ENDPOINT",
"-e",
"MCP_AUTH_URL",
"docker.io/nhost/mcp:0.4.0-beta2"
],
"command": "docker"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"nhost": {
"env": {
"MCP_AUTH_URL": "YOUR_MCP_AUTH_URL",
"MCP_GRAPHQL_ENDPOINT": "YOUR_MCP_GRAPHQL_ENDPOINT"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_GRAPHQL_ENDPOINT",
"-e",
"MCP_AUTH_URL",
"docker.io/nhost/mcp:0.4.0-beta2"
],
"command": "docker"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"nhost": {
"env": {
"MCP_AUTH_URL": "YOUR_MCP_AUTH_URL",
"MCP_GRAPHQL_ENDPOINT": "YOUR_MCP_GRAPHQL_ENDPOINT"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_GRAPHQL_ENDPOINT",
"-e",
"MCP_AUTH_URL",
"docker.io/nhost/mcp:0.4.0-beta2"
],
"command": "docker"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add nhost --env MCP_GRAPHQL_ENDPOINT=YOUR_MCP_GRAPHQL_ENDPOINT --env 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{
"mcpServers": {
"nhost": {
"env": {
"MCP_AUTH_URL": "YOUR_MCP_AUTH_URL",
"MCP_GRAPHQL_ENDPOINT": "YOUR_MCP_GRAPHQL_ENDPOINT"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_GRAPHQL_ENDPOINT",
"-e",
"MCP_AUTH_URL",
"docker.io/nhost/mcp:0.4.0-beta2"
],
"command": "docker"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add nhost docker run -i --rm -e MCP_GRAPHQL_ENDPOINT -e MCP_AUTH_URL docker.io/nhost/mcp:0.4.0-beta2Gemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
| Setting | Needed | What it is |
|---|---|---|
MCP_Environment variable | Required | GraphQL endpoint of the Nhost project the server exposes, e.g. http://hasura-service:8080/v1/graphql |
MCP_Environment variable | Required | Nhost Auth URL used as the OAuth2 authorization server, e.g. https://SUBDOMAIN.auth.REGION.nhost.run/v1 |
MCP_Environment variable | Optional | Storage URL for the same Nhost project, including /v1; enables the read-only storage-download tool |
MCP_Environment variable | Optional | Maximum 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
