MCPInstall
pyeconomics logo

pyeconomics

by pyeconomics-dev 11 stars pyeconomics-dev/pyeconomics

Tested, cited economics and finance models and data, with a provenance manifest per result.

READMEmain

pyeconomics: Empowering Economic Insight

pyeconomics

CI PyPI Licence OpenSSF Scorecard

Status: 1.0.0rc2 is the release candidate for 1.0.0, a pre-release on PyPI. Install explicitly with pip install --pre pyeconomics==1.0.0rc2 (Python 3.12 or later). Plain pip install pyeconomics still installs 0.2.6, the stable release, until 1.0.0. The public API is frozen: 1.0.0 is this candidate with its version changed.

pyeconomics provides 50 tested, cited economics and finance model families across 13 domains: foundations, fixed income, derivatives, international, equity, corporate, accounting, portfolio, performance, risk, econometrics, macroeconomics and asset pricing. The data platform adds 31 providers, 171 catalog concepts and live bindings with real-time vintages. Every model is served identically through the Python API, the pyeconomics command line, the REST API (pyeconomics serve), the MCP server (pyeconomics mcp) and tabular or reproducibility-bundle exports. Typed inputs declare units and bounds; every result carries a reproducible provenance manifest. Rates and percentages are decimals: 0.05 means 5%.

Use the 1.0 documentation preview for formulas, assumptions and examples, and the release candidate's notes for the shipped surfaces and known limitations. See the CLI guide, REST API guide, MCP server guide, exports guide, AI narrative guide, data guide and keys guide to get started. Install optional econometrics, plotting, REST API and MCP support with pip install --pre "pyeconomics[econometrics,plot,server,mcp]==1.0.0rc2", or run the MCP server directly with uvx --from "pyeconomics[mcp]==1.0.0rc2" pyeconomics mcp. The web app runs on your own machine with pip install --pre "pyeconomics[app]==1.0.0rc2" and pyeconomics serve.

This release candidate replaces the 0.2.x API: the model engine and data platform, the command line, exports and reproducibility bundles, the REST API, the MCP server, the optional AI narrative and the web app. The project roadmap and architecture decisions record the plan. Keep legacy workloads in a separate environment.

pyeconomics 0.2.x

0.2.6 is the current stable release of the 0.2.x line: four monetary-policy rules over FRED data.

  • It is MIT-licensed. Its source lives on the legacy/0.2.x branch, and its documentation at https://docs.pyeconomics.dev/.
  • It receives security fixes only, and reaches end of life when 1.0.0 is released. Pins such as pyeconomics<1 keep working.
  • 0.2.0 to 0.2.5 log the FRED API key at DEBUG level. Upgrade to 0.2.6 and rotate any key those versions used: see advisory GHSA-j6rp-vwwv-jrr8.

Not to be confused with

This project is not davidrpugh/pyeconomics (computational-economics course code from 2013–14) or pyecon.org (a site teaching Python for economics). The three share only the name.

Contributing and security

Licence

From 1.0, pyeconomics is licensed under the Apache License 2.0; see also NOTICE. Releases up to and including 0.2.x remain MIT-licensed.

Notices

As is; not investment advice. pyeconomics is for educational and informational use only, and is not registered with any regulator.

CFA® and Chartered Financial Analyst® are trademarks owned by CFA Institute. pyeconomics is not affiliated with, endorsed by, or a Prep Provider of CFA Institute.

More Research & Data MCP servers

Similar servers from the same category.

WeatherXM PRO logo

WeatherXM PRO

weatherxm

Integrates with WeatherXM PRO APIs to provide access to hyperlocal weather data, historical observations, and forecast performance metrics for location-specific analysis and planning.

APICLI+6
Gralio logo

Gralio

tymonte

Access 3+ million SaaS reviews, detailed pricing data, alternatives, ratings, funding information, growth metrics, user sentiment analysis, and functional feature data for over 30,000 software products.

Research & Data

Integrates with professional cryptocurrency data APIs from DefiLlama Pro, CoinGecko Pro, and Arkham Intelligence to provide real-time token prices, market data, blockchain analytics, and on-chain intelligence for crypto researchers and traders.

search

Enables semantic and keyword searches across Space Frontiers' library, telegram, and reddit databases through a FastAPI-based server with flexible authentication options.

databaseauthentication+1