Data
Download the dataset, or load it from your code or AI agent.
Download the full dataset
One harmonized panel: 46 variables · 239 countries · 1086–2025.
Current release: v2026_09 · Quarterly updates · Release notes and upcoming releases →
Access via MCP New
Thanks to our partners at Anansi Data Analytics, AI agents can query the GMD through Anansi’s MCP server. Any MCP client can connect at:
https://mcp.anansidata.com/mcp
Sign in with an Anansi account when your client asks.
Claude Code
/plugin marketplace add AnansiDataAnalytics/anansidata-agent-plugin /plugin install anansi-data@anansi
Then run /mcp to sign in.
Codex
codex plugin marketplace add AnansiDataAnalytics/anansidata-agent-plugin
Then install Anansi Data from the Plugins Directory and sign in when prompted.
Access via packages
All five packages take version,
country and variable filters.
ssc install gmd
gmd // full dataset, latest release gmd rGDP, country(FRA) // one series, one country gmd rGDP, version(2025_12) // an earlier release gmd rGDP, raw // raw underlying sources
pip install global_macro_data
from global_macro_data import gmd df = gmd() # full dataset, latest release df = gmd(country=["USA", "CHN"], variables=["rGDP", "infl"]) df = gmd(variables="rGDP", version="2025_12") # an earlier release
install.packages(c("remotes", "haven"))
remotes::install_github("KMueller-Lab/Global-Macro-Database-R")
library(globalmacrodata)
df <- gmd(country = c("USA", "CHN"), variables = c("rGDP", "infl"))
df <- gmd(variables = "rGDP", version = "2025_12") # an earlier release
Download Global-Macro-Database.mltbx from the
releases page
and double-click it to install the toolbox. Requires MATLAB
R2020b or newer.
df = globalmacrodata.gmd(); % full dataset, latest release
df = globalmacrodata.gmd('country', {'USA', 'CHN'}, 'variables', {'rGDP', 'infl'});
df = globalmacrodata.gmd('variables', 'rGDP', 'version', '2025_12'); % an earlier release
using Pkg Pkg.add(url = "https://github.com/KMueller-Lab/Global-Macro-Database-Julia")
using GMD df = gmd() # full dataset, latest release df = gmd(country = ["USA", "CHN"], variables = ["rGDP", "infl"]) df = gmd(variables = "rGDP", version = "2025_12") # an earlier release
Source code on GitHub
The replication code and raw data used to build the GMD are public on GitHub, where you can also report issues.
- Global Macro DatabaseReplication code and raw data
- Python packagepip install global_macro_data
- R packageglobalmacrodata
- Stata packagessc install gmd
- MATLAB packageNew in 2026_09
- Julia packageNew in 2026_09
Contribute
The Global Macro Database is an open, collaborative project, and we welcome all contributions.
Submit issues or feedback on our GitHub repository, or email us at kmueller@globalmacrodata.com.
Using the GMD? Please cite it and review the license & terms.