Nhost
io.github.nhost由 GitHub 帳號 nhost 發布v0.4.0-beta2更新於 Nov 3, 2026
讓使用者通過AI助理處理自己的資料,且僅限於他們可見的內容。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Let your users work with their own data through an AI assistant, limited to what they can see.
概覽
Nhost 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Nhost,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Nhost MCP Service
The Nhost MCP service adds an agentic interface to any Nhost project. It exposes your project's GraphQL API as an MCP (Model Context Protocol) server, allowing AI assistants like Claude, Cursor, or any MCP-compatible client to query and mutate your data.
If you're building on Nhost, this service lets your users interact with their project data through AI assistants — no custom integration code required. Deploy it alongside your project and any MCP-compatible client can connect, authenticate on behalf of your users via your existing Nhost Auth setup, and work with your data within the permissions defined.
How It Works
The MCP server sits between your AI assistant and your Nhost project's GraphQL API. It provides three tools that the assistant can call:
get-schema- Introspects the GraphQL schema so the assistant understands your data model. Returns either a summary of available operations or the full SDL for specific queries/mutations.graphql-query- Executes read-only GraphQL queries against your project.graphql-mutation- Executes GraphQL mutations to create, update, or delete data.
On startup, the server fetches a schema summary from your GraphQL endpoint and includes it in the MCP instructions, giving the AI assistant immediate context about your data model without any additional configuration.
Authentication with OAuth2
The MCP service integrates with Nhost Auth as an OAuth2 authorization server, following the MCP Authorization specification. This means any MCP client that supports OAuth2 can authenticate with your Nhost project automatically.
The flow works as follows:
- The MCP client discovers authentication requirements by fetching
/.well-known/oauth-protected-resourcefrom the MCP server. - The client redirects the user to the Nhost Auth authorization endpoint for login (authorization code flow with PKCE).
- After authentication, the client exchanges the authorization code for a JWT access token.
- All subsequent MCP requests include the JWT as a Bearer token.
- The MCP server validates the JWT signature via JWKS, checks the issuer and expiration, then forwards the token on every GraphQL request.
- The GraphQL service enforces row-level and column-level permissions based on the JWT's claims, so the AI assistant can only access data the authenticated user is allowed to see.
IMPORTANT! CIMD needs to be enabled.
Enforcing a Specific Role
The --enforce-role flag restricts the MCP server to accept only tokens whose x-hasura-default-role claim matches the specified role. Requests with a different default role receive a 403 Forbidden response.
For example, setting --enforce-role=user_mcp means only tokens issued with user_mcp as the default role will be accepted. If you've configured permissions for that role with limited access (e.g., read-only on certain tables), the AI assistant will be restricted to those permissions.
This lets you:
- Create a dedicated role (e.g.,
user_mcp) with restricted permissions for AI access. - Allow AI assistants to read data but not modify it.
- Limit which tables or columns are visible to the assistant.
- Run multiple MCP instances with different role configurations for different use cases.
Configuration
All flags can be set via environment variables.
Deploying to Nhost
To deploy to Nhost Run you can use the one-click install link below:
And edit as needed. Make sure to set the correct subdomain and region in the MCP_AUTH_URL (or your custom domain if you using one), set the MCP_REALM to the URL you will use for your MCP service, change the MCP_INSTRUCTIONS as needed and change or remove MCP_ENFORCE_ROLE
NOTE: Check the releases page and make sure you are using the most recent version of the service.
Alternatively, add a run-mcp.toml to your project directory:
Then deploy your project as usual. The MCP server will be available at the published port and any MCP-compatible client can connect to it.
You can also try locally with:
Connecting an MCP Client
Point your MCP client to the server URL. For example, in Claude Desktop's configuration:
- Go to customize -> Connectors
- Click on
+and enter any name you want and the url where your MCP server resides, for instance https://mcp.acme.com - Click "Add"
- Once connected you will be redirected to your Oauth2's consent page to authorize the Oauth2 client.
來源:services/mcp/README.md,提交 75fff6a
工具
0版本歷史
3- v0.4.0-beta2最新Nov 3, 2026
- v0.4.0-beta1Nov 1, 2026
- v0.3.0Sep 18, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分