fugle
MCP server from fugle-dev/fugle-mcp-server
claude mcp add --transport stdio fugle-dev-fugle-mcp-server npx -y @fugle/mcp-server \ --env ACCOUNT="指定使用帳戶號碼" \ --env SDK_TYPE="masterlink|fubon" \ --env CERT_PASS="您的憑證密碼" \ --env CERT_PATH="/path/to/your/cert.p12" \ --env NATIONAL_ID="您的身分證字號" \ --env ACCOUNT_PASS="您的帳戶密碼" \ --env ENABLE_ORDER="false"
How to use
Fugle MCP Server provides a specialized interface to interact with the Fugle trading system using the MCP protocol. It supports real-time stock quotes, historical data queries, and optional trading functionality. You can run the server either via NPM (npx) or Docker, and configure access using environment variables such as your investor credentials, certificate paths, and connection settings. Once started, the MCP server exposes standard MCP endpoints that other tools and adapters can consume to request quotes, request historical data, or submit trades when ENABLE_ORDER is enabled. The environment variable SDK_TYPE lets you choose between masterlink and fubon SDKs, and CERT_PATH/CERT_PASS along with National ID authenticate and establish secure connections with Fugle services. Use ACCOUNT to select a specific account if you have multiple accounts configured.
How to install
Prerequisites:
- Node.js and npm installed for NPM mode (or Docker for containerized deployment).
- Access credentials and certificates as described in the README (NATIONAL_ID, ACCOUNT_PASS, CERT_PATH, CERT_PASS).
Install via NPM (preferred for local development):
- Ensure Node.js and npm are installed on your system.
- Run:
npm install -g @fugle/mcp-server
- Start using MCP by invoking npx as shown in the configuration:
npx -y @fugle/mcp-server
Install via Docker:
- Ensure Docker is installed and running.
- Pull the Fugle MCP Server image:
docker pull fugle/mcp-server
- Run the container with required environment variables:
docker run -it --rm \
-e SDK_TYPE=masterlink \
-e NATIONAL_ID=YourID \
-e ACCOUNT_PASS=YourPassword \
-e CERT_PASS=YourCertPass \
-e ENABLE_ORDER=false \
-e ACCOUNT=YourAccount \
-e CERT_PATH=/path/to/your/cert.p12 \
-v /path/to/cert:/path/to/cert:ro \
fugle/mcp-server
Note: If you plan to run in production, consider using the official .mcp-config.json snippet from the README to configure your deployment with either npm or Docker in a repeatable way.
Additional notes
Tips and considerations:
- Ensure CERT_PATH points to a valid certificate file and that your CERT_PASS matches the certificate.
- If you have multiple accounts, use ACCOUNT to specify which one to log into; otherwise the first account will be used.
- ENABLE_ORDER controls trading capability; set it to true only if your environment and credentials support placing orders.
- When using Docker, bind any certificate file paths appropriately and consider mounting a volume for certificates to avoid embedding sensitive data in the image.
- SDK_TYPE 선택은 masterlink 혹은 fubon 중 하나를 사용; 환경에 맞는 값을 설정하세요. 기본값은 masterlink입니다.
- For troubleshooting, check environment variable propagation inside container or shell environment where you run npx; some shells may strip variables if not exported.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud