Skip to content
VS Code

Nhost for VS Code

io.github.nhost/mcp

Let your users work with their own data through an AI assistant, limited to what they can see.

client:VS Code transport:stdio runtime:oci

Install Nhost in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mcp-graphql-endpoint",
      "description": "MCP_GRAPHQL_ENDPOINT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-auth-url",
      "description": "MCP_AUTH_URL",
      "password": true
    }
  ],
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/nhost/mcp:0.3.0"
      ],
      "env": {
        "MCP_GRAPHQL_ENDPOINT": "${input:mcp-graphql-endpoint}",
        "MCP_AUTH_URL": "${input:mcp-auth-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Nhost in other clients