FQGate Agent

Developer toolsFinance and commerce

大 A免费开源AI插件FQGate-agent(原插件名 tonghuasun-agent):为 Codex、Claude Code、DeepSeek 等 AI 工具提供本机 A 股实时行情、K 线、Level2、资讯、账户查询与可选交易能力。.

Your AI app calls the FQGate Agent MCP server, which does the developer tools and finance and commerce work and sends the result back to the chat.

About FQGate Agent

FQGate Agent is a community MCP server from fqgate, filed in our directory under developer tools and finance and commerce. 大 A免费开源AI插件FQGate-agent(原插件名 tonghuasun-agent):为 Codex、Claude Code、DeepSeek 等 AI 工具提供本机 A 股实时行情、K 线、Level2、资讯、账户查询与可选交易能力。.

At a glance

Publisher
fqgate (community)
Runs
See the README for setup
Written in
TypeScript
License
AGPL-3.0
GitHub stars
283

How to set up FQGate Agent

  1. Follow the install steps in the FQGate Agent README; it is written in TypeScript, so have that toolchain ready.
  2. Check the FQGate Agent README for keys or settings; the registry lists none that FQGate Agent requires.
  3. Add FQGate Agent to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the FQGate Agent tools to confirm the connection.
  5. Run one read-only task with FQGate Agent first, and keep your app asking before each tool call until the results look right.

FQGate Agent compared with similar servers

  • Idx by fzn0x has fewer GitHub stars than FQGate Agent (280 against 283); both are community servers, and both run locally.
  • Tetrees by TetreesEX has more GitHub stars than FQGate Agent (284 against 283); both are community servers, and Tetrees runs as a remote server and FQGate Agent runs on your own machine.
  • Membrick by RooAGI has fewer GitHub stars than FQGate Agent (280 against 283); both are community servers, and both run locally.

Before you connect FQGate Agent

  • Give FQGate Agent its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each FQGate Agent tool call until you trust what it does with them.
  • Treat text that FQGate Agent fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for FQGate Agent on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for FQGate Agent

How marketing and sales teams put FQGate Agent to work, by company size. Pick the size closest to yours and start FQGate Agent on one use case.

Small business

  • A small business with a developer can use FQGate Agent to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask FQGate Agent to explain and fix a marketing site issue without context switching between tools.
  • A small business can ask FQGate Agent which products and customers drive margin, then plan promotions around them.
  • FQGate Agent runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use FQGate Agent to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect FQGate Agent to keep scripts and automations documented and versioned as they change.
  • Ecommerce teams can connect FQGate Agent to tie campaigns to orders and revenue, not just clicks.
  • Start FQGate Agent on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out FQGate Agent with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on FQGate Agent so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises should keep FQGate Agent read-only for agents, with any money movement handled by people and existing approvals.
  • FQGate Agent is a community server, so have security review the code and pin a version before FQGate Agent touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

FQGate Agent README

From fqgate/FQGate-agent on GitHub, shared under its AGPL-3.0 license. Images are left out; the original has them.

README.md

FQGate Agent

面向多种 AI 软件的开源 FQGate 接入层
让 AI 使用本机 A 股行情、K 线、资讯与 Level-2 数据

FQGate Agent 是 FQGate 的开源 AI 接入项目,维护 Codex 与 Claude Code 插件入口、四个证券研究 Skill 和 MCP Apps 界面源码。WorkBuddy、ZCode、OpenClaw、DeepSeek Harness、豆包和千问通过 FQGate 主程序的“AI 接入”页面按各自支持条件接入。

面向 AI 智能体的金融行情数据 MCP 终端

项目入口

项目 用途 GitHub 国内镜像
FQGate Agent 插件、Skill、MCP Apps 源码与 FQGate 正式包 fqgate/FQGate-agent Gitee 源码镜像
FQGate 组织 项目主页与后续开源项目 github.com/fqgate ,

更名说明: 曾用名 tonghuasun-codex、tonghuasun-agent,现已更名为 fqgate-agent。

Agent 插件入口、Skill 和 MCP Apps 界面源码均免费开源,不设订阅、会员、试用额度或付费解锁。FQGate 主程序作为本机行情网关单独提供编译包,并适用安装包内的许可。

当前 Agent 插件版本为 1.0.0,最低需要 FQGate 2.0.0。FQGate Agent 不提供个人资产、持仓查询、证券买卖、撤单或资金操作。支持自选股管理的数据来源可以查询和修改关注列表,但这不属于证券交易。

为什么是 FQGate

  • Level-2: 提供统一的 Level-2 数据接口,支持逐笔成交、逐笔委托和撤单等实时数据。
  • 数据标准: 不同数据来源通过统一的 V2 接口提供各自支持的行情能力,减少切换来源时的接入差异。
  • 实时更新: 由正在运行的 FQGate 获取行情,并通过查询或实时订阅接口提供给 AI 工具。
  • 本机服务: FQGate 默认只监听 127.0.0.1:17281,减少服务暴露范围。
  • 统一连接: 一个 FQGate 实例可以同时服务多个 AI 工具,减少重复登录和重复初始化。
  • 当前数据: 行情与资讯由正在运行的 FQGate 返回,不用模型记忆代替实时查询。
  • 研究流程: 实时行情、条件选股、盘口成交和事件研究分别由对应 Skill 处理。
  • 可检查安装: 正式包提供 SHA-256 文件,接入完成后还需要通过工具列表和真实行情查询确认。

支持 MCP Apps 的 AI 软件可以方便地显示 K 线、证券行情、资讯和 Level-2 成交信息。能否显示相应内容,取决于连接状态、账号权限和数据来源。

一句话安装

将下面这句话完整发送给你正在使用的 AI 助手:

请按照 FQGate Agent 仓库说明完成安装和接入:https://github.com/fqgate/FQGate-agent 。先阅读根目录 README;如果电脑上已有 FQGate 0.x 或 1.x,再阅读 docs/升级到-2.x.md。根据操作系统和处理器从 FQGate Agent Releases 选择正式包;Windows 只使用包含完整应用目录的 windows-x64.zip。下载后核对同名 SHA-256 文件,启动 FQGate,在“行情数据”中确认连接可用,再通过“AI 接入”配置当前 AI 软件。最后重新打开 AI 会话,确认名为 fqgate 的 MCP 连接能够返回工具列表并查询一只明确证券的当前行情。任何步骤失败都要说明失败位置和原始错误,不要把仅下载、解压或写入配置表述为安装成功。

安装流程应完整覆盖:读取说明、选择匹配系统的正式版本、核对安装包、启动 FQGate、确认数据连接、配置当前 AI 软件,以及使用真实行情查询验证 fqgate 连接。

FQGate 主程序下载

下载时应按操作系统和处理器选择安装包,并使用同名 .sha256 文件核对完整性。不要下载 GitHub 自动生成的 Source code 压缩包。

Windows

下载文件名包含 windows-x64.zip 的正式包,完整解压到固定文件夹,再运行其中的 FQGate.exe。

  • 不要直接在压缩包内运行。
  • 不要只移动其中的 FQGate.exe,同一目录中的 fqgate-updater.exe 用于安装更新。
macOS

Apple 芯片选择 macos-arm64.zip,Intel 芯片选择 macos-x86_64.zip。解压后将 FQGate.app 移到“应用程序”。

已经安装 FQGate 0.x 或 1.x 的用户,请阅读升级到 2.x,不要只替换旧版可执行文件。安装结束前,应确认 FQGate 已经启动、数据连接可用,并且名为 fqgate 的 MCP 连接能够读取工具列表和查询当前行情。

选择你的 AI 工具

AI 软件 接入方式
ChatGPT(Codex 接入) 在 FQGate“AI 接入”页面安装 Codex 插件,或使用下方 Codex 命令
Claude Code 在 FQGate“AI 接入”页面安装,或使用下方 Claude Code 命令
豆包、千问、DeepSeek Harness、WorkBuddy、ZCode、OpenClaw 开发测试中

Codex:

codex plugin marketplace add fqgate/FQGate-agent --json
codex plugin add fqgate-agent@fqgate-official --json

Claude Code:

claude plugin marketplace add fqgate/FQGate-agent --scope user
claude plugin install fqgate-agent@tonghuasun-agent --scope user

ChatGPT 入口使用电脑上的 Codex;普通 ChatGPT 网页和手机应用不能通过这个入口连接当前电脑上的 FQGate。完成接入后,需要重新打开 AI 会话。

可以直接这样问

  • “查看航天机电的 A 股实时行情,并说明主要盘口变化。”
  • “显示航天机电最近一个月的日 K 线。”
  • “同时对比航天机电、招商银行和宁德时代的行情。”
  • “查看这只股票今天的分时、盘口和 Level-2 逐笔数据。”
  • “汇总这家公司最近的公告和市场资讯,并标注信息时间。”

普通行情是否可以使用游客连接,取决于当前选择的数据来源。问财和 Level-2 等功能需要相应账号及权限,游客行情可能延迟或受限,最终可用范围以 FQGate 实际返回的工具列表和账号权限为准。

数据、隐私与安全

FQGate 默认只监听当前电脑的本机地址,Agent 不会连接公网或局域网中的 FQGate 地址。项目维护者不运营接收用户行情查询、证券账号或 AI 对话内容的远程服务;插件的分析说明和行情图表不会把 FQGate 返回的数据发送给项目维护者。

使用云端 AI 服务时,发送给该服务的对话和工具结果可能受其隐私政策与设置约束。请在使用前阅读隐私政策与使用条款。

本项目不提供个股推荐、收益预测或投资建议。AI 生成的内容可能存在错误或延迟,行情及证券信息请以数据提供方、证券公司和交易所的正式记录为准。

文档与交流

微信群二维码会定期失效;下方交流 1 群和交流 2 群的二维码均标注为 2026 年 12 月 9 日前有效。如果二维码无法使用,请先加入 QQ 群或提交 Issue 提醒维护者更新。

支持项目

如果 FQGate 和开源 Agent 项目对你有帮助,欢迎自愿赞赏支持。赞赏不会解锁任何功能、数据权限、投资建议、问题处理优先级或后续服务承诺。

头像 昵称 渠道 金额 日期
峰-Kevin 微信 20 2026-8-25
阿东 微信 500 2026-8-27
星光 微信 88.88 2026-8-27
許 微信 100 2026-9-1
ICE 微信 8.88 2026-9-7
序号 微信 8.8 2026-9-6
U_U 微信 188 2026-9-7
阿东 微信 100 2026-9-9
wd 微信 100 2026-9-9
峰-Kevin 微信 50 2026-9-9
@BetterMe(借钱勿扰) 微信 66 2026-9-10
桥南 微信 50 2026-9-11
-45°俯视大地 微信 5 2026-9-12
**平 支付宝 50 2026-9-14
小龙 微信 88 2026-9-19
康诚传媒 微信 5 2026-9-23
草木皆兵 微信 5 2026-9-24
**进 支付宝 10 2026-9-24
阿东 微信 188 2026-10-3
宏渭 微信 5 2026-10-3
9.59 微信 50 2026-10-5
**波 支付宝 58 2026-10-11
**湘 支付宝 9.9 2026-10-12
**雨 支付宝 1 2026-10-12
开心 微信 5.00 2026-10-14
王云 微信 20 2026-10-14
**招 支付宝 20 2026-10-16
自己 微信 100 2026-10-19
*雷 支付宝 20 2026-10-24
无名 微信 20 2026-10-26

开源与许可

Agent 插件入口、Skill 和 MCP Apps 界面源码依据 AGPL-3.0-only 开源。FQGate 编译包适用其随包许可,不属于本仓库的开源范围;详细边界见法律与许可说明。

这是一个由独立开发者维护的非官方项目,与同花顺及其关联公司不存在授权、合作或背书关系。FQGate 和 Agent 不会增加任何账号的数据权限,实际可用范围仍以相应账号及服务权限为准。

Questions about FQGate Agent

What is the FQGate Agent MCP server?

大 A免费开源AI插件FQGate-agent(原插件名 tonghuasun-agent):为 Codex、Claude Code、DeepSeek 等 AI 工具提供本机 A 股实时行情、K 线、Level2、资讯、账户查询与可选交易能力。. FQGate Agent is maintained by fqgate on GitHub at fqgate/FQGate-agent, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the FQGate Agent MCP server?

FQGate Agent doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (fqgate/FQGate-agent). Like most servers, FQGate Agent ends with a command or URL you paste into your AI app's MCP config.

Does FQGate Agent need an API key?

The registry lists no required keys for FQGate Agent. Check the FQGate Agent README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is FQGate Agent an official MCP server?

No. FQGate Agent is a community server maintained by fqgate. Community servers can be excellent; read the code and the open issues before you give FQGate Agent access to company data.

What license is FQGate Agent under?

FQGate Agent is released under the AGPL-3.0 license, according to its GitHub repository. The license covers the code of FQGate Agent; the service it connects to has its own terms.