Skip to content
MCP server

Un Datacommons MCP

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.1
Listing updated
4 days ago

About Un Datacommons MCP

Un Datacommons MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add un-datacommons-mcp --env DC_API_KEY='<DC_API_KEY>' -- uvx un-datacommons-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "un-datacommons-mcp": {
      "command": "uvx",
      "args": [
        "un-datacommons-mcp"
      ],
      "env": {
        "DC_API_KEY": "<DC_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "un-datacommons-mcp": {
      "command": "uvx",
      "args": [
        "un-datacommons-mcp"
      ],
      "env": {
        "DC_API_KEY": "<DC_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "un-datacommons-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "un-datacommons-mcp"
      ],
      "env": {
        "DC_API_KEY": "<DC_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "un-datacommons-mcp": {
      "command": "uvx",
      "args": [
        "un-datacommons-mcp"
      ],
      "env": {
        "DC_API_KEY": "<DC_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "un-datacommons-mcp": {
      "command": "uvx",
      "args": [
        "un-datacommons-mcp"
      ],
      "env": {
        "DC_API_KEY": "<DC_API_KEY>"
      }
    }
  }
}

Configuration

  • DC_API_KEYData Commons API key from apikeys.datacommons.orgRequired
  • DC_TYPEType of Data Commons to use: base|custom (default: base)
  • CUSTOM_DC_URLCustom DC base URL when DC_TYPE=custom
  • DC_ROOT_TOPIC_DCIDSComma-separated root topic DCIDs for custom DCs
  • DC_SEARCH_SCOPESearch scope for custom DCs: base_only|custom_only|base_and_custom

Pricing

Open source

Un Datacommons MCP FAQ

Is Un Datacommons MCP free?

Yes. Un Datacommons MCP is open source, so you can use and self-host it for free.

How do I add Un Datacommons MCP to Claude Code?

Run this command in your terminal: claude mcp add un-datacommons-mcp --env DC_API_KEY='<DC_API_KEY>' -- uvx un-datacommons-mcp