Skip to content
VS Code

no2sql for VS Code

io.github.ptalati015/no2sql

No2SQL MCP server for inferring SQL schema and ER diagrams from MongoDB databases.

client:VS Code transport:stdio runtime:nuget

Install no2sql in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "no2sql-mongo",
      "description": "NO2SQL_MONGO",
      "password": true
    },
    {
      "type": "promptString",
      "id": "no2sql-allowed-databases",
      "description": "NO2SQL_ALLOWED_DATABASES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "no2sql-block-system-databases",
      "description": "NO2SQL_BLOCK_SYSTEM_DATABASES",
      "password": true
    }
  ],
  "servers": {
    "no2sql": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "No2SQL",
        "--yes"
      ],
      "env": {
        "NO2SQL_MONGO": "${input:no2sql-mongo}",
        "NO2SQL_ALLOWED_DATABASES": "${input:no2sql-allowed-databases}",
        "NO2SQL_BLOCK_SYSTEM_DATABASES": "${input:no2sql-block-system-databases}"
      }
    }
  }
}

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

no2sql in other clients