npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@fugle/mcp-server

v0.0.20

Published

<!-- ![Docker Pulls](https://img.shields.io/docker/pulls/kevinypfan/fugle-mcp-server) ![Docker Image Size](https://img.shields.io/docker/image-size/kevinypfan/fugle-mcp-server) ![NPM Version](https://img.shields.io/npm/v/fugle-mcp-server) ![NPM Downloads]

Readme

Fugle MCP Server ( 目前僅支援證券功能 )

富果 MCP (Model Context Protocol) 伺服器,用於與富果交易系統進行互動。此伺服器支援股票行情查詢和交易功能。

功能特點

  • 支援股票即時行情查詢
  • 支援歷史數據查詢
  • 支援交易功能(可選)
  • 支援 Docker 和 NPM 兩種部署方式
  • 完全兼容 MCP 協議

前置作業

安裝 NPM

到 Node.js 官方 下載 對應的作業系統平台

申請憑證

元富證券請使用 線上憑證申請 或下載 憑證 e 管家 來申請憑證

⚠️ 使用線上申請憑證之用戶,憑證密碼預設為您的身分證字號

富邦證券請下載 TCEM 憑證管理工具 來申請憑證

⚠️ 此工具僅支援 windows 平台,若您使用 Mac or Linux 請先至 Windows 申請完後,再將檔案移轉到 Mac or Lixux 系統上

安裝

使用 NPM

npx @fugle/mcp-server

使用 Docker

docker pull fugle/mcp-server

使用方法

環境變數

伺服器需要以下環境變數:

  • SDK_TYPE: MCP Server 使用 SDK 類型(可選:「元富(masterlink)」或「富邦(fubon)」,預設為「元富(masterlink)」)
  • NATIONAL_ID: 身分證字號
  • ACCOUNT_PASS: 帳戶密碼
  • CERT_PASS: 憑證密碼
  • CERT_PATH: 憑證檔案路徑
  • ENABLE_ORDER: 是否開啟下單功能(可選,預設為 false)
  • ACCOUNT: 如有多帳戶,可以使用此參數指定登入帳戶(可選,預設為第一個帳戶)
  • FUBON_URL: 富邦 SDK 連線 URL(可選,僅適用於 fubon,用於連線測試伺服器)

ℹ️ 元富帳號範例 : 592a12345678 ( 包含分公司代碼 )
ℹ️ 富邦帳號範例 : 1234456 ( 不需包含分公司代碼 )

Docker 配置

在您的 .mcp-config.json 中添加:

{
  "mcpServers": {
    "@fugle/mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "--platform=linux/amd64",
        "-i",
        "--rm",
        "-e",
        "SDK_TYPE",
        "-e",
        "NATIONAL_ID",
        "-e",
        "ACCOUNT_PASS",
        "-e",
        "CERT_PASS",
        "-e",
        "ENABLE_ORDER",
        "-e",
        "ACCOUNT",
        "-e",
        "FUBON_URL",
        "--mount", "type=bind,src=</path/to/cert.p12>,dst=/app/cert.p12",
        "fugle/mcp-server"
      ],
      "env": {
        "SDK_TYPE": "masterlink|fubon",
        "NATIONAL_ID": "您的身分證字號",
        "ACCOUNT_PASS": "您的帳戶密碼",
        "CERT_PASS": "您的憑證密碼",
        "ENABLE_ORDER": "false",
        "ACCOUNT": "指定使用帳戶號碼"
      }
    }
  }
}

NPM 配置

在您的 .mcp-config.json 中添加:

{
  "mcpServers": {
    "@fugle/mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@fugle/mcp-server"
      ],
      "env": {
        "SDK_TYPE": "masterlink|fubon",
        "NATIONAL_ID": "您的身分證字號",
        "ACCOUNT_PASS": "您的帳戶密碼",
        "CERT_PASS": "您的憑證密碼",
        "CERT_PATH": "/path/to/your/cert.p12",
        "ENABLE_ORDER": "false",
        "ACCOUNT": "指定使用帳戶號碼"
      }
    }
  }
}