JF

jinhongzou/finq4cn-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

28 stars 11 forks 品質 62 トレンド 11MIT

国内 国内 国内 国内 国内 国内 国内

概要

定量分析用に設計された専用のMCPサーバーツール、FinQ4Cn-mcp-serverは、大規模なモデルを便利で、無料で提供し、財務データへのオープンソースアクセスを目指しています。 akshare ライブラリに組み込まれたプロジェクトは、中国の A シェア市場に焦点を当てており、ユーザーは、株式や関連金融製品の包括的なデータサポートを提供します。 量的分析に従事している専門家、中国国内株式市場に興味を持つユーザー、中国金融市場からのデータのニーズを満たすのに特に適しています。 国内投資家に合わせた理想的な選択肢として、FinQ4Cn-mcp-serverは、ユーザーは、株式価格、金融指標、市場ボラティリティに限らず、正確な意思決定を可能にする、多次元データにアクセスしやすくなります.

概要(AI 翻訳)

####英語|ホテル

定量分析用に設計された専用のMCPサーバーツール、FinQ4Cn-mcp-serverは、大規模なモデルを便利で、無料で提供し、財務データへのオープンソースアクセスを目指しています。 akshareライブラリに構築されたプロジェクトは、中国のA-share市場に焦点を当て、ユーザーは株式および関連金融製品の包括的なデータサポートを提供します。 量的分析に従事している専門家、中国国内株式市場に興味を持つユーザー、中国金融市場からのデータのニーズを満たすのに特に適しています。 国内投資家に合わせた理想的な選択肢として、FinQ4Cn-mcp-serverは、ユーザーは、株式価格、金融指標、市場ボラティリティに限らず、正確な意思決定を可能にする、多次元データにアクセスしやすくなります。

将来の実装

タイムライン

  • 株式メトリックのデータをエンリッチし、データ分類を改善
  • 技術分析機能の提供
  • 支援資金、先物、その他
  • サポート バックテスト モジュール

##特徴

株式リスクアラート

  • 指定された株式コードの上場会社のボラティリティの詳細を取得します。

株式共通メトリック

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

FinQ4Cn MCP Server

English| 简体中文

A dedicated MCP server tool designed for quantitative analysis, FinQ4Cn-mcp-server aims to provide large models with convenient, free, and open-source access to financial data. Built on the akshare library, the project focuses on China’s A-share market, offering users comprehensive data support for stocks and related financial products. It is particularly well-suited for professionals engaged in quantitative analysis as well as users interested in China’s domestic stock market, meeting their needs for data from China’s financial markets. As an ideal choice tailored to domestic investors, FinQ4Cn-mcp-server allows users to effortlessly access multi-dimensional data, including but not limited to stock prices, financial indicators, and market volatility, empowering precise decision-making.

Future Implementation

Timeline

  • Enrich stock metrics data and improve data categorization
  • Provide technical analysis capabilities
  • Support funds, futures, and more
  • Support backtesting modules

Features

Stocks Risk Alert

  • Retrieve the volatility details of the specified stock code’s listed company.

Stocks Common Metrics

  • Retrieve the main business composition of the listed company with the specified stock code
  • Obtain historical price data for the stock within the specified time period
  • Retrieve the financial summary data of the specified stock
  • Obtain the margin trading and short selling details of the specified stock within the specified time range
  • Retrieve the historical dividend and rights issue details of the specified stock

News Report

  • Fetch the latest financial news and market trends within a specified date range.
  • Fetch the latest news articles and information related to a specific stock within a specified date range.

Back Testing

  • Perform backtesting on historical stock data using the specified trading strategy to evaluate its performance. The strategy is as follows: if the stock is not currently held, buy the stock based on the specified holding percentage (percent) and set a profit-taking percentage (stop_profit_pct).

Project Structure

mcp-server/
├── utils    
├── |──modules.py # 数据校验模块
├── |──stocks_common_metrics.py # 常用指标数据
├── |──stocks_risk_alert.py     # 股票风险提示信息
├──fs_server.py # mcp server启动文件

Dependencies

Required Dependencies

  • FastMCP
  • Pydantic
  • akshare

To install dependencies:

pip install -r requirements.txt

It is recommended to install the backtesting package using the following method:

pip install lib-pybroker -i https://pypi.tuna.tsinghua.edu.cn/simple

Setup

  1. Clone the repository:
git clone https://github.com/jinhongzou/FinQ4Cn-mcp-server.git
cd FinQ4Cn-mcp-server
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
GitHub で README 全文を見る

インストール

npx @modelcontextprotocol/inspector python ./mcp-server/fs_server.py
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "FinQ4Cn-mcp-server": { "name": "FinQ4Cn", "command": "your_path/python.exe", "args": [ "your_path/FinQ4Cn-mcp-server/mcp-server/fs_server.py" ] } } }