Skip to content
VS Code

mcp server for VS Code

io.github.opengolfapi/mcp-server

Golf for AI agents — every US course free, plus open contribution, identity & tournaments.

client:VS Code transport:stdio runtime:npm

Install mcp server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "opengolfapi-key",
      "description": "OPENGOLFAPI_KEY",
      "password": true
    }
  ],
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@opengolfapi/mcp-server"
      ],
      "env": {
        "OPENGOLFAPI_KEY": "${input:opengolfapi-key}"
      }
    }
  }
}

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

mcp server in other clients