un-datacommons-mcp
mcpkey · packageio.github.therealtimex/un-datacommons-mcp · v1.0.1
MCP server to query Data Commons indicators and observations (base or custom).
run it
on your own machines, one way per deploy methodgenerated from the record, not tested yet
#!/usr/bin/env bash # un-datacommons (io.github.therealtimex/un-datacommons-mcp), recipe baremetal (generated). # Generated by Hub for toolset "my-agent"; started by mcp-my-agent-un-datacommons.service. set -euo pipefail export HOST=127.0.0.1 PORT=8101 exec uvx mcp-proxy --host 127.0.0.1 --port 8101 --pass-environment -- uvx un-datacommons-mcp==1.0.1 [Unit] Description=MCP server un-datacommons (toolset my-agent), generated by Hub After=network-online.target Wants=network-online.target [Service] Type=simple User=mcp Group=mcp EnvironmentFile=/etc/mcp/my-agent.env Environment=HOME=/var/lib/mcp/un-datacommons WorkingDirectory=/var/lib/mcp/un-datacommons ExecStart=/opt/mcp/my-agent/bin/un-datacommons.sh Restart=on-failure RestartSec=5 NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true ReadWritePaths=/var/lib/mcp/un-datacommons [Install] WantedBy=multi-user.target
generated from the record, not tested yet
docker run --rm -p 127.0.0.1:8101:8000 -e DC_API_KEY -e DC_TYPE -e CUSTOM_DC_URL -e DC_ROOT_TOPIC_DCIDS -e DC_SEARCH_SCOPE ghcr.io/astral-sh/uv:python3.12-bookworm-slim sh -c 'uvx mcp-proxy --host 0.0.0.0 --port 8000 --pass-environment -- uvx un-datacommons-mcp==1.0.1'
generated from the record, not tested yet
# Generated by Hub for toolset "my-agent" (2026-10-18T11:58:31+00:00).
# Each package server runs behind a stdio->HTTP bridge and listens on localhost only.
# cp .env.example .env # fill the ${VAR}s
# docker compose up -d && bash smoke.sh
# Remote servers are not here: clients reach them directly (see clients/).
name: mcp-my-agent
services:
un-datacommons:
image: ghcr.io/astral-sh/uv:python3.12-bookworm-slim
command:
- sh
- -c
- uvx mcp-proxy --host 0.0.0.0 --port 8000 --pass-environment -- uvx un-datacommons-mcp==1.0.1
ports:
- 127.0.0.1:8101:8000
volumes:
- uv-cache:/root/.cache/uv
healthcheck:
test:
- CMD
- python3
- -c
- import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/status')
interval: 30s
timeout: 5s
retries: 5
start_period: 2m
restart: unless-stopped
environment:
DC_API_KEY: ${DC_API_KEY}
DC_TYPE: ${DC_TYPE}
CUSTOM_DC_URL: ${CUSTOM_DC_URL}
DC_ROOT_TOPIC_DCIDS: ${DC_ROOT_TOPIC_DCIDS}
DC_SEARCH_SCOPE: ${DC_SEARCH_SCOPE}
volumes:
npm-cache: {}
uv-cache: {}
generated from the record, not tested yet
# Generated by Hub for toolset "my-agent" (2026-10-18T11:58:31+00:00).
# kubectl create namespace mcp
# kubectl -n mcp create secret generic mcp-credentials --from-env-file=.env
# kubectl apply -f kubernetes.yaml
# Services are cluster-internal: <name>.mcp.svc.cluster.local:8000/mcp. Put an ingress
# with auth in front before exposing any of them.
apiVersion: v1
kind: Namespace
metadata:
name: mcp
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: un-datacommons
namespace: mcp
labels: &id001
app: un-datacommons
spec:
replicas: 1
selector:
matchLabels: *id001
template:
metadata:
labels: *id001
spec:
containers:
- name: un-datacommons
image: ghcr.io/astral-sh/uv:python3.12-bookworm-slim
ports:
- containerPort: 8000
name: http
env:
- name: DC_API_KEY
valueFrom:
secretKeyRef:
name: mcp-credentials
key: DC_API_KEY
- name: DC_TYPE
valueFrom:
secretKeyRef:
name: mcp-credentials
key: DC_TYPE
- name: CUSTOM_DC_URL
valueFrom:
secretKeyRef:
name: mcp-credentials
key: CUSTOM_DC_URL
- name: DC_ROOT_TOPIC_DCIDS
valueFrom:
secretKeyRef:
name: mcp-credentials
key: DC_ROOT_TOPIC_DCIDS
- name: DC_SEARCH_SCOPE
valueFrom:
secretKeyRef:
name: mcp-credentials
key: DC_SEARCH_SCOPE
command:
- sh
- -c
- uvx mcp-proxy --host 0.0.0.0 --port 8000 --pass-environment -- uvx un-datacommons-mcp==1.0.1
readinessProbe:
httpGet:
path: /status
port: http
initialDelaySeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: un-datacommons
namespace: mcp
spec:
selector:
app: un-datacommons
ports:
- port: 8000
targetPort: http
name: http
generated from the record, not tested yet
# Generated by Hub for toolset "my-agent" (2026-10-18T11:58:31+00:00).
# Credentials come from the Secret 'mcp-credentials' (kubectl create secret generic ... --from-env-file=.env).
# Each server under `servers` is one Deployment + Service; the keys after it configure
# upstream charts a worker verified.
servers:
un-datacommons:
enabled: true
replicas: 1
port: 8000
path: /mcp
container:
name: un-datacommons
image: ghcr.io/astral-sh/uv:python3.12-bookworm-slim
ports:
- containerPort: 8000
name: http
env:
- name: DC_API_KEY
valueFrom:
secretKeyRef:
name: mcp-credentials
key: DC_API_KEY
- name: DC_TYPE
valueFrom:
secretKeyRef:
name: mcp-credentials
key: DC_TYPE
- name: CUSTOM_DC_URL
valueFrom:
secretKeyRef:
name: mcp-credentials
key: CUSTOM_DC_URL
- name: DC_ROOT_TOPIC_DCIDS
valueFrom:
secretKeyRef:
name: mcp-credentials
key: DC_ROOT_TOPIC_DCIDS
- name: DC_SEARCH_SCOPE
valueFrom:
secretKeyRef:
name: mcp-credentials
key: DC_SEARCH_SCOPE
command:
- sh
- -c
- uvx mcp-proxy --host 0.0.0.0 --port 8000 --pass-environment -- uvx un-datacommons-mcp==1.0.1
readinessProbe:
httpGet:
path: /status
port: http
initialDelaySeconds: 10
# helm install my-agent helm/my-agent -n mcp
in the cloud
one click: the provider's deploy form opens filled in, in your own account- koyeb
-
The form opens with CHANGE_ME for each value you supply: DC_API_KEY, DC_TYPE, CUSTOM_DC_URL, DC_ROOT_TOPIC_DCIDS, DC_SEARCH_SCOPE. Fill them in before you deploy.
Clients connect to the service's https://…koyeb.app address plus /mcp.
- azure
-
A Container Apps environment with one app per server, each with HTTPS ingress and one replica. The portal asks for each value you supply as a secure parameter; the deployment's outputs list the endpoints.
connect to it
copy what your client needsuvx un-datacommons-mcp==1.0.1 # env: DC_API_KEY, DC_TYPE, CUSTOM_DC_URL, DC_ROOT_TOPIC_DCIDS, DC_SEARCH_SCOPE
{
"mcpServers": {
"un-datacommons": {
"command": "uvx",
"args": [
"un-datacommons-mcp==1.0.1"
],
"env": {
"DC_API_KEY": "${DC_API_KEY}",
"DC_TYPE": "${DC_TYPE}",
"CUSTOM_DC_URL": "${CUSTOM_DC_URL}",
"DC_ROOT_TOPIC_DCIDS": "${DC_ROOT_TOPIC_DCIDS}",
"DC_SEARCH_SCOPE": "${DC_SEARCH_SCOPE}"
}
}
}
}
#!/usr/bin/env bash
# Registers every server with Claude Code (run once; `claude mcp list` to check).
set -euo pipefail
set -a; [ -f .env ] && source .env; set +a
claude mcp add un-datacommons -e "DC_API_KEY=${DC_API_KEY}" -e "DC_TYPE=${DC_TYPE}" -e "CUSTOM_DC_URL=${CUSTOM_DC_URL}" -e "DC_ROOT_TOPIC_DCIDS=${DC_ROOT_TOPIC_DCIDS}" -e "DC_SEARCH_SCOPE=${DC_SEARCH_SCOPE}" -- uvx un-datacommons-mcp==1.0.1
{
"mcpServers": {
"un-datacommons": {
"command": "uvx",
"args": [
"un-datacommons-mcp==1.0.1"
],
"env": {
"DC_API_KEY": "${DC_API_KEY}",
"DC_TYPE": "${DC_TYPE}",
"CUSTOM_DC_URL": "${CUSTOM_DC_URL}",
"DC_ROOT_TOPIC_DCIDS": "${DC_ROOT_TOPIC_DCIDS}",
"DC_SEARCH_SCOPE": "${DC_SEARCH_SCOPE}"
}
}
}
}
{
"servers": {
"un-datacommons": {
"type": "stdio",
"command": "uvx",
"args": [
"un-datacommons-mcp==1.0.1"
],
"env": {
"DC_API_KEY": "${DC_API_KEY}",
"DC_TYPE": "${DC_TYPE}",
"CUSTOM_DC_URL": "${CUSTOM_DC_URL}",
"DC_ROOT_TOPIC_DCIDS": "${DC_ROOT_TOPIC_DCIDS}",
"DC_SEARCH_SCOPE": "${DC_SEARCH_SCOPE}"
}
}
}
}
name: my-agent target: local servers: - hub: io.github.therealtimex/un-datacommons-mcp
- not probed yet: tools unpinned, ingest lists them
tools
Not probed yetThe tools appear once the hub or its worker has listed this entry. Running it still works: your client lists them on first start.