Skip to content
VS Code

matplotlibnet for VS Code

io.github.xkqg/matplotlibnet

Renders MatPlotLibNet charts to PNG, SVG or PDF from a JSON spec an AI agent writes.

client:VS Code transport:stdio runtime:nuget

Install matplotlibnet in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "matplotlibnet-mcp-output-root",
      "description": "MATPLOTLIBNET_MCP_OUTPUT_ROOT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "matplotlibnet-fonts",
      "description": "MATPLOTLIBNET_FONTS",
      "password": true
    }
  ],
  "servers": {
    "matplotlibnet": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "MatPlotLibNet.Mcp",
        "--yes"
      ],
      "env": {
        "MATPLOTLIBNET_MCP_OUTPUT_ROOT": "${input:matplotlibnet-mcp-output-root}",
        "MATPLOTLIBNET_FONTS": "${input:matplotlibnet-fonts}"
      }
    }
  }
}

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

matplotlibnet in other clients