Skip to content
VS Code

un datacommons mcp for VS Code

io.github.therealtimex/un-datacommons-mcp

MCP server to query Data Commons indicators and observations (base or custom).

client:VS Code transport:stdio runtime:pypi

Install un datacommons mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "dc-api-key",
      "description": "DC_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "dc-type",
      "description": "DC_TYPE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "custom-dc-url",
      "description": "CUSTOM_DC_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "dc-root-topic-dcids",
      "description": "DC_ROOT_TOPIC_DCIDS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "dc-search-scope",
      "description": "DC_SEARCH_SCOPE",
      "password": true
    }
  ],
  "servers": {
    "un-datacommons-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "un-datacommons-mcp"
      ],
      "env": {
        "DC_API_KEY": "${input:dc-api-key}",
        "DC_TYPE": "${input:dc-type}",
        "CUSTOM_DC_URL": "${input:custom-dc-url}",
        "DC_ROOT_TOPIC_DCIDS": "${input:dc-root-topic-dcids}",
        "DC_SEARCH_SCOPE": "${input:dc-search-scope}"
      }
    }
  }
}

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

un datacommons mcp in other clients