GnistAI GnistAI
Log in

UN SDG

UN Sustainable Development Goals — 231 indicators across 17 goals covering poverty, health, education, climate, and inequality for 193 countries.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 8 tools tools 8 8 Economics

Data source: UN Stats SDG API v5

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/unsdg/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-unsdg": {
      "url": "https://context.gnist.ai/mcp/unsdg/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/unsdg/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_goal_targets", "arguments": {"goal_code": 1}}}'

API REST API

API Root https://context.gnist.ai/rest/unsdg/

8 endpoints available:

Shell
curl "https://context.gnist.ai/rest/unsdg/get_goal_targets?goal_code=1" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/unsdg/get_goal_targets",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "goal_code": 1
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc unsdg

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (8)

list_sdg_goals
List all 17 UN Sustainable Development Goals.
get_goal_targets
Get targets and indicators for a specific SDG goal.
ParameterTypeRequiredDescription
goal_codeintegerrequiredSDG goal number (1-17). E.g. 1 = No Poverty, 13 = Climate Action.
get_sdg_indicator_data
Get observation data for SDG indicators.
ParameterTypeRequiredDescription
indicator_codeslist[string]requiredIndicator code(s), e.g. ['1.1.1'] for extreme poverty rate.
area_codesanyoptionalGeo area code(s). E.g. [578] for Norway, [840] for USA. Use search_sdg_geo_areas to find codes.
time_startanyoptionalStart year (e.g. 2015).
time_endanyoptionalEnd year (e.g. 2023).
pageintegeroptionalPage number (default 1). (default: 1)
page_sizeintegeroptionalResults per page, max 200 (default 50). (default: 50)
get_sdg_series_data
Get observation data for specific SDG data series.
ParameterTypeRequiredDescription
series_codeslist[string]requiredSeries code(s), e.g. ['SI_POV_DAY1'] for poverty rate.
area_codesanyoptionalGeo area code(s). E.g. [578] for Norway.
time_startanyoptionalStart year.
time_endanyoptionalEnd year.
pageintegeroptionalPage number. (default: 1)
page_sizeintegeroptionalResults per page, max 200. (default: 50)
search_sdg_geo_areas
Search for SDG geo area codes by name.
ParameterTypeRequiredDescription
querystringrequiredSearch term for country or region name (e.g. 'Norway', 'Africa').
get_sdg_series_dimensions
Get available dimensions (disaggregations) for a data series.
ParameterTypeRequiredDescription
series_codestringrequiredSeries code, e.g. 'SI_POV_DAY1'.
get_sdg_data_availability
Get which countries and regions have data for a specific series.
ParameterTypeRequiredDescription
series_codestringrequiredSeries code, e.g. 'SI_POV_DAY1'.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related