Back to Home
morrain icon

akMcpServer

by morrain

Overview

This server provides real-time and historical stock market data to LLMs via the Model Context Protocol, including a Puppeteer-based fallback.

Installation

Run Command
npx -y ak-mcp-server

Environment Variables

  • TRANSPORT_TYPE
  • PORT
  • AKSHARE_API_BASE_URL

Security Notes

The Puppeteer setup disables sandboxing (`--no-sandbox`, `--disable-setuid-sandbox`), which is a critical security vulnerability if the scraped `eastmoney.com` content is malicious or compromised, potentially allowing code execution outside the browser environment. Additionally, the default `AKSHARE_API_BASE_URL` uses `http` instead of `https`, meaning communication with the AkShare API wrapper is unencrypted and vulnerable to eavesdropping and tampering if not hosted securely within a trusted network.

Similar Servers

Stats

Interest Score32
Security Score3
Cost ClassMedium
Avg Tokens1000
Stars1
Forks0
Last Update2025-12-01

Tags

Financial TradingStock DataMCPNode.jsAkShare