FinAI Research Workflow 标志

FinAI Research Workflow

社区
csmar432

Evidence-first AI workflow for economic and financial research: literature → identification → data → econometrics → verifiable LaTeX. 43 data sources, 58 method modules, 18 AI skills, 30 journal templates.

发布者csmar432
代码仓库finai-research
语言Python
复刻数
4
星标数
106
可用工具
0
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    FinAI Research Workflow 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 106 个星标和 4 个复刻。

论文-研报工作流 · FinAI Research Workflow

研究主题一句话 → 收到可核验的 LaTeX 草稿。 Describe your research topic → receive a verifiable LaTeX draft.

Python License: MIT GitHub release PyPI Downloads CI Coverage DOI Discussions Open in GitHub Codespaces


Quick Start (30 秒上手)

bash
# ── 推荐方式:PyPI wheel 安装(首次约 60s)────────────────────────────
# Debian/Ubuntu:先创建虚拟环境,避免与系统 Python 冲突
python3 -m venv .venv && source .venv/bin/activate
pip install "finai-research-workflow[extras]"

# 配置 LLM(DeepSeek 直连,免费)
export DEEPSEEK_API_KEY=sk-xxxx

# 启动流水线(wheel 安装后的写作入口;加 --use-hitl 启用阶段门控)
finai-pipeline --topic "Carbon trading and green innovation" --use-hitl
# 或
python -m finai.pipeline --topic "碳排放权交易与企业绿色创新" --use-hitl

# ── 源码安装(推荐贡献者 / 想改代码的用户)────────────────────────────
git clone https://github.com/csmar432/finai-research.git && cd finai-research
pip install -e ".[extras]"
cp .env.example .env.local   # 编辑 .env.local:DEEPSEEK_API_KEY=sk-...
# 新用户:先澄清(不自动开跑)→ 再写作;或澄清时加 --continue
python scripts/start_research.py --topic "Carbon trading and green innovation"
python scripts/agent_pipeline.py --topic "Carbon trading and green innovation" --use-hitl

# ── Debian/Ubuntu apt 系统 Python ─────────────────────────────────────
# apt 的 Python 被系统管理,直接 pip install 会触发 PEP 668 冲突。
# 解法:使用虚拟环境(见上方),或加 --break-system-packages
pip install --break-system-packages "finai-research-workflow[extras]"

重要提示:缺少 DEEPSEEK_API_KEY 时,finai-pipeline 默认以退出码 4 退出(严格模式),并打印明确指引。可以用 finai-doctor 诊断配置来源。

PyPI: finai-research-workflow · 0.3.1 · MIT · 默认安装 pip install finai-research-workflow 不含 fastapi/streamlit(避免 PyJWT/apt 冲突) · Web 套件:pip install 'finai-research-workflow[web]' DOI: 10.5281/zenodo.21262689

Quick Demo

FinAI guided workflow preview

This guided interface walkthrough shows the supported agent hosts, research-brief checkpoint, separate writing and empirical tracks, fail-closed data routing, and verifiable delivery package. It is intentionally not presented as a live research run and contains no mock coefficients, citations, or statistical claims. Regenerate it deterministically with python scripts/demo/gen_quick_demo.py; see .github/demo/README.md for the visual contract.

一次输入 → 8 阶段流水线:想法生成 → 文献综述 → 新颖性验证 → 实证设计 → 数据获取 → 分析 → 论文写作 → 对抗性 Review。每阶段需研究者确认。


3 个核心能力

43 个 MCP 数据源A 股财务 / 美股 / 宏观(FRED/IMF/世界银行) / 学术论文(OpenAlex/ArXiv),28 个无需 API Key
58 个计量模块覆盖标准 DID / 交错 DID(CS/SunAb/Borusyak) / IV / RDD / 合成控制 / 面板 GMM,JF/JFE 级别稳健性检验
30 种期刊模板JF / JFE / RFS / 经济研究 / 金融研究 / 管理世界,中英日德四国语言

⚠️ AI 生成的因果识别策略、统计结果和引用必须由研究者独立核实后方可投稿。 ⚠️ Mock / synthetic data 默认禁用,只有用户明确授权后才能启用,且输出必须带有 ⚠️ MOCK DATA 标识。


完整文档: 使用指南.md · CLAUDE.md · 运行 python scripts/setup_wizard.py --guided


Why FinAI Research Workflow?

  • Built for economists, not generic AI demos — every default is calibrated for the Journal of Finance / 经济研究 standard (DID with heterogeneous treatment effects, cluster-robust SEs at the firm level, 19 robustness checks, parallel-trend plots).
  • 43 MCP server directories — covers A-share financials, US equities, global macro (FRED/World Bank/IMF/OECD/BEA), and 400M+ academic papers (OpenAlex). The registry contains 28 no-key, 12 API-key, 0 stub, and 3 opt-in legal-risk directories; classification is maintained by scripts/count_assets.py.
  • 58 econometric method modules, not just OLS — standard DID, event study, Bacon decomposition, heterogeneous-treatment diagnostics, synthetic control, instrumental variables (optional linearmodels), panel GMM, RDD, mediation, and more. Methods that require an external backend fail visibly when it is unavailable; see CLAUDE.md for dependency notes.
  • 30 journal templates, English/Chinese/Japanese/German — JF, JFE, RFS, JAE, Econometrica, 经济研究, 金融研究, 管理世界, 会计研究, 中国工业经济.
  • 18 specialised AI skills (Claude Code / Cursor / GitHub Copilot) — idea discovery, literature review, novelty check, experiment design, data acquisition, paper drafting, figure generation, LaTeX compilation, review loops.
  • Human-in-the-loop, never autonomous fabrication — every stage requires explicit checkpoint approval; data sources are verified before use; no synthetic data without user consent.

Why Not Just Use ChatGPT?

FinAI is purpose-built for economic & financial research. Here is what it does that general LLMs cannot:

CapabilityChatGPT / Claude (General)FinAI (Specialized)
A-share financial dataManual download, error-prone✅ 43 MCP servers auto-fetch
DID with 19 robustness checksGeneric response✅ Cluster-robust SEs, Bacon decomposition, event studies
JF / 经济研究 LaTeX templatesManual formatting✅ 30 journal templates, one command
Causal identification strategyGeneric suggestions✅ Econometrics expert knowledge embedded
Literature review with provenanceCopy-paste citations✅ Source tracking, citation verification
Multi-stage pipeline with checkpointsOne-off answers✅ 8-stage pipeline with human approval

[!TIP] Start now with zero setup: Open in GitHub Codespaces. No local install required.

For Chinese users: The most comprehensive guide is 使用指南.md — a complete 13-chapter manual covering installation, workflows, data sources, econometric methods, paper writing, and FAQ.


Who Is This For?

AudienceUse Case
PhD students / researchersDesign empirical studies, run econometric analysis, generate LaTeX manuscripts for JF/JFE/RFS/经济研究/金融研究
Finance professorsAutomate literature reviews, track policy experiments, benchmark against published papers
Graduate studentsLearn econometric methods (DID/IV/RDD) with automated validation and robustness checks
Quantitative analystsAccess A-share data, run factor analysis, generate institutional-grade research reports
AI/ML researchersExplore LLM applications in financial research automation, provenance tracking, HITL design

Not sure? If you've ever spent days downloading data, running regressions, formatting LaTeX tables, or searching for related work — this tool is for you.


MCP Server Profile: Pick What Fits You

register_mcp_servers.py supports 4 user-type profiles — pick the one matching your hardware and use case:

ProfileServersStartupMemoryBest For
minimal5~1s~30 MB演示/教学 (Demo / Teaching) — low-end laptops
academic18~4s~100 MB学生/个人研究者 (Student / Individual) — no institution account
quant30~8s~180 MB机构/量化 (Quant / Institution) — has Tushare/Wind/CSMAR
full43~12s~220 MB重度用户 (Power User) — all data sources, RAM ≥ 16 GB
bash
# 1) Dry-run first (推荐先看)
python scripts/register_mcp_servers.py --profile academic --prune --dry-run

# 2) Actually apply
python scripts/register_mcp_servers.py --profile academic --prune

# 3) List current registration
python scripts/register_mcp_servers.py --list

See config/mcp_profiles.json for full server lists and the 使用指南.md chapter on installation for step-by-step.

Default behavior: without --profile, all 43 MCP servers are registered (matches full profile). Use --prune to remove out-of-profile servers.


Cross-Platform Installation

The project supports macOS, Linux, and Windows with platform-specific entry points:

OSEntry ScriptPrerequisites
macOS (12+)./run.shPython 3.10+ (Homebrew recommended)
Linux (Ubuntu 20.04+, Debian 11+, Fedora 35+)./run.shsudo apt install python3.10 python3-venv (or distro equivalent)
Windows (10/11)run.batPython 3.10+ (python.org) — check "Add to PATH" in installer

Choose Your Path

This project supports two entry points — pick the one that matches your workflow:

Path A: AI Agent (Recommended)

The AI agent handles the full pipeline end-to-end. No need to remember commands.

bash
# 1) Install once
./run.sh                    # macOS / Linux
run.bat                     # Windows

# 2) Health check
python scripts/health_check.py

# 3) Start an AI Agent (Claude Code / Cursor / Codex) and describe your research:
# "帮我研究关税政策对A股出口型企业创新的影响,设计一篇发表在经济研究的实证论文"

The AI agent automatically calls all 8 pipeline stages, MCP data sources, and LaTeX generators. Each stage requires your checkpoint approval before proceeding.

Path B: CLI (Script-Level Control)

Run individual scripts directly for fine-grained control:

bash
# Writing track
python scripts/agent_pipeline.py --topic "Carbon trading and green innovation" --use-hitl

# Empirical track (production modern DID)
python -m scripts.research_framework.enhanced_pipeline --topic "Carbon trading and green innovation"

# Empirical demo TWFE smoke only
python scripts/research_framework/pipeline.py --mode full --topic "Carbon trading and green innovation"

# Demo: institutional-grade financial report
python scripts/demo_research_report.py --stock 000001.SZ

# MCP tool discovery
python scripts/core/mcp_tool_market.py --search "gdp" --report

# Journal template generation
python scripts/journal_template.py --list
python scripts/journal_template.py --generate JFE output/paper.tex

Platform-Specific Notes

  • macOS: Keychain is native; keyring uses KeychainBackend automatically
  • Linux: Keyring uses SecretService (gnome-keyring). For Chinese fonts, install fonts-noto-cjk:
    bash
    sudo apt install fonts-noto-cjk fonts-wqy-zenhei
  • Windows: Keyring uses Credential Manager. Chinese fonts (SimHei, Microsoft YaHei) come pre-installed

What Works Cross-Platform

  • ✅ All scripts/*.py entry points
  • ✅ 43 MCP servers (pure Python stdlib)
  • ✅ Checkpoint (fcntl.flock falls back to no-op on Windows)
  • ✅ Unit tests (pytest --collect-only; CI matrix: Ubuntu + macOS + Windows; daemon mode uses polling loop on Windows)

Known Cross-Platform Limitations

  • ⚠️ event_monitor.py uses signal.pause() which is Unix-only; on Windows it falls back to a polling loop
  • ⚠️ keychain_setup.py is macOS-specific; for Windows/Linux, use the cross-platform keyring via scripts/keychain_manager.py
  • ⚠️ core/sandbox.py uses os.fork (Unix-only); falls back to subprocess on Windows
  • ⚠️ event_monitor.py --daemon uses os.fork; on Windows the daemon exits with a friendly "use --interval 300 instead" message at startup (T2 audit 2026-07-12)
  • ✅ Skills sync: knowledge/skills/, .claude/skills/, and .github/skills/ are kept in sync via python scripts/sync_skills.py (no symlinks, Windows-safe). Run after editing any skill doc.
  • ✅ Codex support: AGENTS.md at root + .agents/skills/<name>/SKILL.md per skill (frontmatter with name and description). Both synced by sync_skills.py.

Show Me What It Does

Describe your research in plain Chinese — the agent handles the rest:

帮我研究关税政策对A股出口型企业创新的影响,设计一篇发表在经济研究的实证论文

What the agent produces automatically:

StageOutput
Research DesignDID/IV/RDD identification strategy + data sourcing plan
Empirical Analysis58 econometric modules, automated robustness tests (19 types)
Paper DraftLaTeX manuscript in journal format (JF/JFE/RFS/经济研究/金融研究/管理世界)
Review LoopAI-assisted adversarial review with researcher verification required

Footnote on numbers: The table above describes the core pipeline output stages. Idea generation, novelty verification, and literature review are separate stages that run before or in parallel. MCP server counts include 43 registered servers; some require institutional/paid accounts (Tushare Pro, Wind, CSMAR, CEIC) while others work without API keys (yfinance, akshare, World Bank, IMF, OECD, FRED, ArXiv, NBER, OpenAlex). See dependency notes in CLAUDE.md.

Architecture overview:

Architecture Diagram Governed dual-track architecture: one research brief feeds a writing track and a separate empirical track; human checkpoints, provenance, and explicit gap files connect both tracks to the final research package.

Note: Demo assets are in .github/demo/ and docs/assets/. The project is actively maintained.


Contributor Setup

Source checkout

bash
# 1. Clone the repository
git clone https://github.com/csmar432/finai-research.git
cd finai-research

# 2. Install the package with all common optional integrations
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[extras]"
# extras includes Tushare, akshare, yfinance, MCP, dashboard, and document-processing packages.

# Optional: install econometrics packages (linearmodels, pandas-datareader, pandasql, honestdid)
pip install -e ".[econometrics]"

# 3. Configure API key (at least one required)
cp .env.example .env
# Edit .env and add: DEEPSEEK_API_KEY=sk-your-key
# Other supported: ANTHROPIC_API_KEY, OPENAI_API_KEY

# 4. Clarify the topic first (recommended)
python scripts/start_research.py --topic "碳排放权交易对企业绿色创新的影响"

# Then run the governed writing track
python scripts/agent_pipeline.py --topic "碳排放权交易对企业绿色创新的影响" --use-hitl

# Run real empirics as a separate hand-off
python -m scripts.research_framework.enhanced_pipeline --topic "碳排放权交易对企业绿色创新的影响" --explore

Key numbers (auto-generated by scripts/count_assets.py):

MetricCount
MCP server directories43 (28 free, 12 API-key, 0 stub, 3 opt-in)
Econometric method modules58
Journal templates30
AI Skills18
Research directions45 registered
Test files / test functions674 / 12,783
research_framework modules with tests56/58

Run python scripts/count_assets.py to regenerate these numbers. They are checked into README as a snapshot of the latest count; CI is the source of truth.


MCP Tools Overview

43 servers total: 28 work without API keys, 12 require API keys, 3 are opt-in legal-risk. See MCP Tool Marketplace for the complete catalog.

BadgeMeaning
💰 PaidRequires institutional/paid account (Tushare Pro / Wind / CSMAR / CEIC)
⚠️ LimitedFree tier available but rate-limited or requires registration
✅ FreeNo account required — works out of the box
MCP ServerFunctionCostFree Tier
user-tushareA-share data (quotes, financials, margin)💰 Paidakshare alternative
user-yfinanceUS stock, ETF, options, financials✅ FreeFull
user-sec-edgarSEC 10-K/10-Q/8-K filings✅ FreeFull
user-financialChina macro (GDP/CPI/M2)✅ FreeFull
user-eodhdUS yield curve, economic calendar⚠️ LimitedRegistration required
user-fed-dataFederal Reserve, FOMC, Beige Book✅ FreeFull
user-wb-dataWorld Bank Data API✅ FreeFull
user-imf-dataIMF World Economic Outlook✅ FreeFull
user-oecd-dataOECD Economic Data✅ FreeFull
user-bea-dataBureau of Economic Analysis (US GDP)✅ FreeFull
user-eastmoney-reportsResearch reports, news, analyst rankings✅ FreeFull
user-enhanced-financeForex, shipping indices, commodities✅ FreeFull
user-openalex400M+ academic papers + citation graph✅ FreeFull
user-arxivAcademic paper search and download✅ FreeFull
user-context7Full-text retrieval for papers (ArXiv/DOI)✅ FreeFull
user-semantic-scholarAI-enhanced paper search⚠️ LimitedOptional API key
user-nber-wpNBER Working Papers✅ FreeFull
user-brave-searchWeb search (Chinese/English)⚠️ LimitedRegistration required
user-chinese-literatureCSSCI, CNKI-style search⚠️ LimitedSee legal notice in SECURITY.md

A-share users without institutional accounts: user-yfinance (US/ADR) and user-financial (akshare free tier) cover basic equity/macro needs. Paid A-share data (CSMAR/Wind/Tushare Pro) requires institutional accounts.

See MCP Tool Marketplace Tutorial for the complete catalog.


Available Skills (18)

Each skill is documented in .claude/skills/ (Claude Code) and .github/skills/ (GitHub Copilot). In Cursor, use the Skill: command directly.

SkillDescriptionKey Modules
fin-full-pipelineEnd-to-end: topic → paper PDFscripts/agent_pipeline.py
fin-idea-discoveryIdea generation + data validationidea_data_checker.py, MCP
fin-lit-reviewSystematic literature reviewliterature_download.py, MCP multi-source
fin-generate-idea8-12 ranked ideas with实证验证MCP data validation
fin-novelty-checkNovelty vs recent lit (SS/OpenAlex)NoveltyGate / --novelty-check
fin-experiment-designComplete empirical designmodern_did.py, regression_engine.py
fin-paper-writingWriting orchestrationreport_generator.py
fin-paper-draftBody text generation (LaTeX)journal_template.py
fin-paper-planOutline generation30 journal templates
fin-paper-figureChart generation (≥300 DPI)fin_charts.py, chart_factory.py
fin-paper-convertLaTeX compilationxelatex/pdflatex + journal templates
fin-review-loopMulti-round adversarial review5-dimension scoring
fin-submit-checkPre-submission checklistFormat, DPI, citations audit
fin-data-acquisitionData fetch + regression scripts43 MCP servers
fin-brief-generatorAuto-generate FIN_BRIEF.md5 enhanced tools
fin-ref-paperBibTeX reference managementCrossRef DOI API
fin-viz-launchNatural language → academic chartschart_pipeline.py, 20+ types

Tutorials

TutorialDescriptionTime
01 - Quick StartSetup and run your first pipeline5 min
02 - Financial ReportsGenerate institutional research reports10 min
03 - Research DirectionsDesign empirical studies with DID/RDD/IV15 min
04 - MCP MarketplaceDiscover and add MCP tools15 min
05 - Event-Driven ResearchAutomate research via event monitoring20 min

Documentation

DocumentDescription
SETUP_GUIDE.mdEnvironment setup, API keys, Docker
使用指南.mdComplete usage guide (Chinese)
docs/tutorials/01-quickstart.md5-minute quick start
CLAUDE.mdAgent configuration and capabilities
CONTRIBUTING.mdContribution guidelines
docs/tutorials/Step-by-step tutorials
docs/api_reference.mdAPI documentation
docs/MOCK_DATA_POLICY.mdMock data policy (5 servers disabled by default)
docs/DOCKER_INSTALL.mdDocker installation guide
docs/CITATION_GUIDE.mdCitation guidance for derived work
docs/GITHUB_DISCUSSIONS_SETUP.mdGitHub Discussions enablement
docs/ARCHITECTURE.mdSystem architecture overview

Common Commands

bash
# Paper pipeline
python scripts/research_framework/pipeline.py --topic "碳排放权交易对企业绿色创新的影响"

# Financial report
python scripts/demo_research_report.py --stock 000001.SZ

# MCP tool marketplace
python scripts/core/mcp_tool_market.py --search "gdp" --report

# Event monitor
python scripts/event_monitor.py --interval 300 --test

# Literature review
python scripts/literature_download.py "carbon trading innovation" --source arxiv,semantic,openalex --limit 20

# Or use an AI Agent directly
# "帮我做碳交易创新领域的文献综述"

# Journal template
python scripts/journal_template.py --list
python scripts/journal_template.py --generate JFE output/paper.tex

# Dashboard
streamlit run scripts/dashboard.py --server.port 8050

Data Coverage

MarketSourceData Types
A-sharesuser-tushare (free)Daily quotes, financials, margin, north flow
US Stocksyfinance + Finviz (free)Quotes, financials, ESG, options, SEC filings
Macro (Global)World Bank + IMF + OECD (free)GDP, CPI, population, trade, debt
Macro (China)user-financial + NBS (free)CPI, PPI, PMI, M2, FDI, retail sales
Macro (US)FRED + BEA + Fed (free)NIPA, FOMC, Beige Book, yield curve
Fixed IncomeEODHD (key) / user-financial (free)Treasury yields, bond prices, credit spreads
Forex & Commoditiesuser-enhanced-finance + user-financial (free)FX rates, shipping indices, precious metals
Research Reports东方财富 (free)Analyst reports, news, sector analysis
AcademicarXiv + NBER (free)Working papers, citations

Extending the System

Adding a New MCP Server

  1. Create directory: mcp_servers/user_your_server/
  2. Add SERVER_METADATA.json
  3. Add tool definitions in tools/*.json
  4. Register in Cursor MCP settings
  5. Rebuild registry: python scripts/core/mcp_tool_market.py --dir mcp_servers

See MCP Marketplace Tutorial for full guide.

Adding a New Research Direction

  1. Create file: scripts/research_directions/carbon_economics.py (copy from an existing direction like green_finance.py as template)
  2. Define ResearchDirection class with:
    • Research questions
    • Data requirements
    • Hypothesis derivation
    • Empirical strategy
  3. Add to scripts/research_directions/__init__.py

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

See CONTRIBUTING.md for full guidelines.


License

This project is licensed under the MIT License. See LICENSE for details.


Acknowledgments

  • 5 轮交互式澄清模式参考 Night Owl Research Agent 设计(2026-06-27 命名已重命名)
  • Inspired by PaperOrchestra multi-agent architecture
  • Data powered by akshare, yfinance, World Bank API, and Tushare Pro

Star History

Star History Chart


Built With

LayerTechnology
AI OrchestrationClaude Code / Cursor / Codex, Claude API, OpenAI API, Anthropic API
Data (43 servers)user-tushare, user-yfinance, user-financial, user-sec-edgar, user-eastmoney-*, World Bank API, IMF API
Econometricsstatsmodels, linearmodels, scipy
Visualizationmatplotlib, seaborn, plotly
PipelinePython 3.10+
Testingpytest, ruff
DocumentationMkDocs Material
ContainerizationDocker, Docker Compose

Architecture Diagrams

Writing Track (5 Artifacts + Human Checkpoints)

FinAI writing track with reviewable human checkpoints

Dual-track note: Writing (agent_pipeline.py) has 5 stages (outline → literature → plotting → writing → refinement) with optional HITL. Empirics are a separate hand-off: enhanced_pipeline / modern_did for real estimators; research_framework/pipeline.py is demo TWFE + design scaffold only. See docs/ARCHITECTURE.md §0.

Data Routing (43 directories: 28 no-key + 12 API-key + 3 opt-in legal)

FinAI data routing: local panels, validated cache, MCP or official APIs, then fail closed

Local empirical panels are checked first. A missing exact variable stops visibly; it does not trigger an unannounced synthetic or proxy-data substitution.

Modern DID Estimator Selection

FinAI modern DID estimator selection and required diagnostics

The estimator follows treatment timing, comparison-group availability, and the target estimand. TWFE remains a diagnostic baseline rather than automatic proof of identification.


How FinAI Fits in the Ecosystem

FinAI focuses on the end-to-end workflow of empirical economic and finance research: research idea → literature review → empirical design → data acquisition → analysis → paper draft → submission.

General causal-inference libraries (e.g. dowhy, StatsPAI, diff-diff) focus on the CI algorithm layer. FinAI focuses on the research workflow layer that wraps data, econometrics, journal templates, and human-in-the-loop gates into one pipeline.

This focus brings complementary features for economists:

  • 43 MCP data sources for A-share financials (Tushare/CSMAR/Wind), US equities (yfinance), global macro (FRED/World Bank/IMF/OECD/BEA), and 400M+ academic papers (OpenAlex/ArXiv).
  • 58 econometric method modules including modern staggered DID (Callaway-Sant'Anna, Sun-Abraham, Borusyak), synthetic control/DiD, IV/2SLS, panel GMM, RDD, triple-diff, panel quantile, spatial regression, etc.
  • 30 journal templates (EN+ZH+JP+DE) covering JF / JFE / RFS / JPE / Econometrica / 经济研究 / 金融研究 / 管理世界 / 会计研究 / ZWiSt / JNS and more.
  • Human-in-the-loop gates at every pipeline stage to prevent LLM hallucinations.

See Related Projects below for tools that work alongside FinAI.


Maintainer

This project is maintained by @csmar432.

Contributions of all sizes are welcome — see CONTRIBUTING.md for the workflow.

Cite This Work

If this project helps your research, give it a ⭐ — it tells other economists the project is worth their time.

If you use FinAI Research Workflow in published research, please cite it as:

bibtex
@software{finai2026,
  title  = {FinAI Research Workflow: An End-to-End AI Agent Pipeline for Economic and Financial Research},
  author = {csmar432},
  year   = {2026},
  month  = jun,
  url    = {https://github.com/csmar432/finai-research},
  note   = {GitHub repository. For a permanent DOI, publish on Zenodo and update this field.}
}

Related Projects

  • dowhy — causal inference library (8.2K ⭐)
  • StatsPAI — agent-native causal inference toolkit (274 ⭐)
  • moderndid — GPU-accelerated modern DiD (25 ⭐)
  • diff-diff — sklearn-like DiD in Python (280 ⭐)
  • PaperOrchestra — Google's multi-agent paper writing (82 ⭐)
  • E2ER-project — end-to-end empirical research pipeline (1 ⭐)
  • econ-paper-studio — agent-native CLI for empirical economics (2 ⭐)

MIT License — see LICENSE for the full text.

将 FinAI Research Workflow MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 FinAI Research Workflow 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 FinAI Research Workflow 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 FinAI Research Workflow MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "finai-research": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 FinAI Research Workflow MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 FinAI Research Workflow MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 FinAI Research Workflow 帮我完成这项任务吗?
FinAI Research Workflow
当然,我看过了。
以下是我使用 FinAI Research Workflow 得到的结果。

常见问题

FinAI Research Workflow MCP 服务器有什么用途?

FinAI Research Workflow 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 FinAI Research Workflow MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 FinAI Research Workflow。

为什么在 TypingMind 中使用 FinAI Research Workflow MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 FinAI Research Workflow 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 FinAI Research Workflow MCP 连接到 TypingMind?

FinAI Research Workflow 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

FinAI Research Workflow MCP 在 TypingMind 中提供哪些工具?

FinAI Research Workflow 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 FinAI Research Workflow MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 FinAI Research Workflow 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇