MCP cover image
See in Github
2025-04-14

Nhost's MCP server

1

Github Watches

0

Github Forks

1

Github Stars

mcp-nhost

A Model Context Protocol (MCP) server implementation for interacting with Nhost Cloud projects and services.

Overview

MCP-Nhost is designed to provide a unified interface for managing Nhost projects through the Model Context Protocol. It enables seamless interaction with Nhost Cloud services, offering a robust set of tools for project management and configuration.

Available Tools

The following tools are currently exposed through the MCP interface:

  1. cloud_get_graphql_schema

    • Provides the GraphQL schema for the Nhost Cloud
    • Provides information about queries, mutations, and type definitions
  2. cloud_graphql_query

    • Executes GraphQL queries and mutations against the Nhost Cloud
    • Enables project and organization management
    • Allows querying and updating project's configuration
  3. local_get_graphql_schema

    • Retrieves the GraphQL schema for local Nhost development projects
    • Provides access to project-specific queries and mutations
    • Helps understand available operations for local development helping generating code
    • Uses "user" role unless specified otherwise
  4. local_graphql_query

    • Executes GraphQL queries against local Nhost development projects
    • Enables testing and development of project-specific operations
    • Supports both queries and mutations for local development
    • Uses "user" role unless specified otherwise
  5. local_config_server_schema

    • Retrieves the GraphQL schema for the local config server
    • Helps understand available configuration options
  6. local_config_server_query

    • Executes GraphQL queries against the local config server
    • Enables querying and modifying local project configuration
    • Changes require running 'nhost up' to take effect
  7. project_get_graphql_schema

    • Retrieves the GraphQL schema for Nhost Cloud projects
    • Provides access to project-specific queries and mutations
    • Uses "user" role unless specified otherwise
  8. project_graphql_query

    • Executes GraphQL queries against Nhost Cloud projects
    • Enables interaction with live project data
    • Supports both queries and mutations (need to be allowed)
    • Uses "user" role unless specified otherwise

Screenshots and Examples

You can find screenshots and examples of the current features and tools in the screenshots file.

Installing

To install mcp-nhost, you can use the following command:

sudo curl -L https://raw.githubusercontent.com/nhost/mcp-nhost/main/get.sh | bash

Configuring

After installing mcp-nhost, you will need to configure it. You can do this by running the command mcp-nhost config in your terminal. See CONFIG.md for more details.

Configuring clients

Cursor

  1. Go to "Cursor Settings"
  2. Click on "MCP"
  3. Click on "+ Add new global MCP server"
  4. Add the following object inside "mcpServers":
    "mcp-nhost": {
      "command": "/usr/local/bin/mcp-nhost",
      "args": [
        "start",
      ],
    }

CLI Usage

For help on how to use the CLI, you can run:

mcp-nhost --help

Or check USAGE.md for more details.

Roadmap

  • ✅ Cloud platform: Basic project and organization management
  • ✅ Cloud projects: Configuration management
  • ✅ Local projects: Configuration management
  • ✅ Local projects: Graphql Schema awareness and query execution
  • ✅ Cloud projects: Schema awareness and query execution
  • 🔄 Local projects: Create migrations
  • 🔄 Local projects: Manage permissions
  • 🔄 Documentation: integrate or document use of mintlify's mcp server
  • 🔄 Local projects: Auth and Storage schema awareness (maybe via mintlify?)
  • 🔄 Cloud projects: Auth and Storage schema awareness (maybe via mintlify?)

If you have any suggestions or feature requests, please feel free to open an issue for discussion.

Security and Privacy

Enhanced Protection Layer

The MCP server is designed with security at its core, providing an additional protection layer beyond your existing GraphQL permissions. Key security features include:

  • Authentication enforcement for all requests
  • Permission and role respect based on your existing authorization system and the credentials provided
  • Query/mutation filtering to further restrict allowed operations

Granular Access Control

One of the MCP server's key security advantages is the ability to specify exactly which operations can pass through, even for authenticated users:

[[projects]]
subdomain = "my-blog"
region = "eu-central-1"
pat = "nhp_project_specific_pat"
allow_queries = ["getBlogs", "getCommends"]
allow_mutations = ["insertBlog", "insertComment"]

With the configuration above, an LLM will be able to only execute the queries and mutations above on behalf of a user even if the user has broader permissions in the Nhost project.

Contributing

We welcome contributions to mcp-nhost! If you have suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

相关推荐

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • Matthieu Savioux
  • Evaluates language quality of texts, responds with a numerical score between 50-150.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • langgenius
  • Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.

  • alibaba
  • an easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • microsoft
  • Python tool for converting files and office documents to Markdown.

  • mindsdb
  • AI's query engine - Platform for building AI that can answer questions over large scale federated data. - The only MCP Server you'll ever need

  • Byaidu
  • PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero

  • labring
  • FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.

  • AstrBotDevs
  • ✨ 易上手的多平台 LLM 聊天机器人及开发框架 ✨ 平台支持 QQ、QQ频道、Telegram、微信、企微、飞书、钉钉 | 知识库、MCP 服务器、OpenAI、DeepSeek、Gemini、硅基流动、月之暗面、Ollama、OneAPI、Dify 等。 WebUI。

  • beclab
  • Olares: An Open-Source Personal Cloud to Reclaim Your Data

  • mem0ai
  • Memory for AI Agents; SOTA in AI Agent Memory; Announcing OpenMemory MCP - local and secure memory management.

    Reviews

    1 (1)
    Avatar
    user_adF69dTf
    2025-04-26

    As a loyal user of the mcp application, I find the mcp-nhost by nhost to be an outstanding product. It seamlessly integrates with my workflow, offering robust features and exceptional performance. The user-friendly interface and comprehensive support have been a game changer. Highly recommend it to anyone seeking reliable and efficient solutions!