AgentEcon — Claude Code MCP server: what it does, how to install
AgentEcon feeds real-time U.S. macroeconomic indicators, labor statistics, and energy markets into coding agents.
no license 3,813 installs updated 2026-05-26
claude mcp add --transport http agentecon https://agentecon--heavysword1.run.toolsWhat AgentEcon does
Operates as an HTTP-based remote endpoint at https://agentecon--heavysword1.run.tools. It gathers indicators directly from U.S. government sources, including the Bureau of Labor Statistics, Federal Reserve FRED, and the Energy Information Administration.
The server exposes seven distinct functions. They retrieve CPI inflation rates, nonfarm payrolls, GDP figures, daily national debt records, and fuel commodities like Brent or WTI crude. For regional analysis, demographic figures and establishment counts by NAICS code are available across states and counties.
Because this runs over an external web endpoint, functioning internet connectivity is necessary for queries to resolve.
What it helps with
- retrieve current U.S. CPI figures along with annual and monthly shifts
- query Federal Reserve policy rates, Treasury yields, and national debt
- inspect labor market conditions such as job openings and payrolls
- break down county demographics and business establishments by NAICS
Example prompts for the agent
- Check the latest U.S. inflation rate and month-over-month movement.
- Retrieve current Fed funds rate and Treasury yields using
get_macro. - Look up total tech establishments and employment in California.
How to install AgentEcon
Platform CLI: remote server
claude mcp add --transport http agentecon https://agentecon--heavysword1.run.toolsPlatform CLI: remote server
codex mcp add agentecon --url https://agentecon--heavysword1.run.toolsConfig file
{
"mcpServers": {
"agentecon": {
"url": "https://agentecon--heavysword1.run.tools"
}
}
}Config file
{
"servers": {
"agentecon": {
"type": "http",
"url": "https://agentecon--heavysword1.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http agentecon https://agentecon--heavysword1.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about AgentEcon
How do I install AgentEcon in Claude Code?
Run claude mcp add --transport http agentecon https://agentecon--heavysword1.run.tools in your terminal.
What does AgentEcon do?
It gives assistants access to official U.S. economic metrics from FRED, Census, Treasury, and BLS sources.
What energy market indicators are supported?
Through get_energy, it returns spot prices for natural gas, Brent crude, and WTI crude.