
pyeconomics
io.github.pyeconomics-dev由 GitHub 帳號 pyeconomics-dev 發布v1.0.0b1更新於 Oct 30, 2026
Tested, cited economics and finance models and data, with a provenance manifest per result.
概覽
本機 MCP 伺服器,提供 50 個經過測試並附引用的經濟與金融模型族及多資料來源平台,每項結果都附來源清單。
- 可以做什麼
- 執行涵蓋 13 個領域的經濟與金融模型,包括固定收益、衍生性商品、股票、投資組合、風險、計量經濟、總體經濟與資產定價
- 查詢包含 31 個資料提供者、171 個目錄概念及即時資料版本綁定的資料平台
- 取得帶單位與數值範圍的型別化輸入,以及附可重現來源清單的結果
- 將結果匯出為表格或可重現性資料包,與 Python API、命令列及 REST 介面一致
- 適用情境
- 適合需要讓助理完成可追溯、可引用的金融與經濟計算時使用,例如估值、風險或總體經濟分析,而非憑空估算。
- 執行需求
- 以 PyPI 套件形式透過 stdio 在本機執行,可用 uvx 啟動或以 pip 安裝;需要 Python 3.12 以上版本。必須安裝 MCP 附加元件,且測試版須明確指定。未宣告任何驗證、環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 pyeconomics,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[pyeconomics: Empowering Economic Insight]
pyeconomics
[CI] [PyPI] [Licence] [OpenSSF Scorecard]
Status: 1.0.0b1 is a beta pre-release on PyPI. Install explicitly with
pip install --pre pyeconomics==1.0.0b1(Python 3.12 or later). Plainpip install pyeconomicsstill installs 0.2.6, the stable release. Pre-releases carry no stability promise until 1.0.0.
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
beta release 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.0b1",
or run the MCP server directly with
uvx --from "pyeconomics[mcp]==1.0.0b1" pyeconomics mcp.
This beta replaces the 0.2.x API and adds the command line, exports and reproducibility bundles, REST API, MCP server and optional AI narrative on top of the model engine and data platform. The web app arrives in Phase 5; the project roadmap and architecture decisions record that 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.xbranch, and its documentation at https://pyeconomics.readthedocs.io/. - It receives security fixes only, and reaches end of life when 1.0.0 is
released. Pins such as
pyeconomics<1keep 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
- CONTRIBUTING: setup, DCO sign-off, commit conventions and the model definition of done.
- SECURITY: report a vulnerability privately, never in a public issue.
- Code of Conduct.
- Changelog.
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.
來源:README.md,提交 206c2fa
工具
0版本歷史
1- v1.0.0b1最新Oct 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分