Economics
Data source: UN Stats SDG API v5
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}}}'
REST API
API Root
https://context.gnist.ai/rest/unsdg/
8 endpoints available:
GET /rest/unsdg/list_sdg_goalsGET /rest/unsdg/get_goal_targetsGET /rest/unsdg/get_sdg_indicator_dataGET /rest/unsdg/get_sdg_series_dataGET /rest/unsdg/search_sdg_geo_areasGET /rest/unsdg/get_sdg_series_dimensionsGET /rest/unsdg/get_sdg_data_availabilityGET /rest/unsdg/report_feedback
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())
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_goalsList all 17 UN Sustainable Development Goals.
get_goal_targetsGet targets and indicators for a specific SDG goal.
| Parameter | Type | Required | Description |
|---|---|---|---|
goal_code | integer | required | SDG goal number (1-17). E.g. 1 = No Poverty, 13 = Climate Action. |
get_sdg_indicator_dataGet observation data for SDG indicators.
| Parameter | Type | Required | Description |
|---|---|---|---|
indicator_codes | list[string] | required | Indicator code(s), e.g. ['1.1.1'] for extreme poverty rate. |
area_codes | any | optional | Geo area code(s). E.g. [578] for Norway, [840] for USA. Use search_sdg_geo_areas to find codes. |
time_start | any | optional | Start year (e.g. 2015). |
time_end | any | optional | End year (e.g. 2023). |
page | integer | optional | Page number (default 1). (default: 1) |
page_size | integer | optional | Results per page, max 200 (default 50). (default: 50) |
get_sdg_series_dataGet observation data for specific SDG data series.
| Parameter | Type | Required | Description |
|---|---|---|---|
series_codes | list[string] | required | Series code(s), e.g. ['SI_POV_DAY1'] for poverty rate. |
area_codes | any | optional | Geo area code(s). E.g. [578] for Norway. |
time_start | any | optional | Start year. |
time_end | any | optional | End year. |
page | integer | optional | Page number. (default: 1) |
page_size | integer | optional | Results per page, max 200. (default: 50) |
search_sdg_geo_areasSearch for SDG geo area codes by name.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search term for country or region name (e.g. 'Norway', 'Africa'). |
get_sdg_series_dimensionsGet available dimensions (disaggregations) for a data series.
| Parameter | Type | Required | Description |
|---|---|---|---|
series_code | string | required | Series code, e.g. 'SI_POV_DAY1'. |
get_sdg_data_availabilityGet which countries and regions have data for a specific series.
| Parameter | Type | Required | Description |
|---|---|---|---|
series_code | string | required | Series code, e.g. 'SI_POV_DAY1'. |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |