Purpose: ai-economics-mcp is an MCP server for answering questions that determine AI budgets, such as token costs, query consumption, and whether agent work can be proven. It wraps the free piszczek.pl/tools API as MCP tools for Claude, Cursor, and any MCP client to call.
Main capabilities: It provides 12 calculators covering token costs, context window sizes, agent hourly costs, LLM energy consumption and CO2, Proof-Adjusted Autonomy, revocation exposure, and more. All parameters are optional, and default values correspond to the interactive calculators. Each response includes result, formula, interpretation, and a directly citable cite_as sentence.
Usage: Configure it in claude_desktop_config.json or .mcp.json for Claude Desktop / Claude Code; Claude Code provides a one-line command for installation. The API is free, requires no key, no registration, and is stateless (inputs are not stored). The Glama build configuration is: build step ["npm ci --omit=dev"], CMD args ["mcp-proxy", "--", "node", "index.js"], optional environment variable AI_ECONOMICS_API, no credentials required. This is pure JavaScript, with no build script or compilation step; do not use pnpm run build or npm run build. For local stdio use, the repository Dockerfile does not require a proxy or exposed ports.
Applicable scenarios: AI budget evaluation, token cost accounting, energy consumption and carbon emission estimation, calculation of agent autonomy verification metrics, etc.
Limitations: The materials do not provide specific calculator parameter details, API rate limits, or pricing information; the mathematical logic is consistent with the interactive calculators. The project uses the MIT license, and the concepts and calculators are provided by Michał Piszczek under CC BY 4.0.