Cover image
Try Now
2025-03-18

股市MCP服务器

3 years

Works with Finder

0

Github Watches

1

Github Forks

3

Github Stars

Stock Market MCP Server

一个基于 TypeScript 的 MCP 服务器,用于获取股票市场数据。该服务器通过 Alpha Vantage API 提供实时股票市场信息和公司财务数据。

生成该 MCPServer 的关键信息

1.Plan mode

help me build a stock market mcp server that uses the AlphaVantage public API
I want it to have these tools:
- generate US market report/briefing
- generate financial statement for company
- get ticker price for company
- any other basic tools you think would be helpful
- api key: <you api key>


2. please test all the tools to confirm their functionality

功能特点

工具

  • get_ticker_price - 获取股票实时价格

    • 需要提供股票代码作为参数
    • 返回最新的股票价格和时间戳
  • get_market_report - 获取美国市场报告

    • 提供市场整体状况概览
  • get_financial_statement - 获取公司财务报表

    • 支持三种报表类型:收入报表(income)、资产负债表(balance)、现金流量表(cashflow)
    • 需要提供股票代码和报表类型
  • get_company_overview - 获取公司概览信息

    • 需要提供股票代码
    • 返回公司关键指标和基本信息

开发环境配置

安装依赖

npm install

构建项目

npm run build

开发模式(自动重新构建)

npm run watch

安装说明

要在 Claude Desktop 中使用此服务器,需要添加服务器配置:

MacOS

配置文件路径:~/Library/Application Support/Claude/claude_desktop_config.json

Windows

配置文件路径:%APPDATA%/Claude/claude_desktop_config.json

配置示例:

{
  "mcpServers": {
    "stock-market-server": {
      "command": "/path/to/stock-market-server/build/index.js"
    }
  }
}

调试

由于 MCP 服务器通过标准输入输出(stdio)通信,调试可能比较困难。推荐使用 MCP Inspector 工具进行调试:

npm run inspector

运行后,Inspector 将提供一个浏览器访问地址,可以通过浏览器使用调试工具。

技术栈

  • TypeScript
  • Node.js
  • Alpha Vantage API
  • MCP SDK (@modelcontextprotocol/sdk)

注意事项

  • 使用前需要确保有有效的 Alpha Vantage API 密钥
  • 所有 API 响应都以 JSON 格式返回
  • 请注意 Alpha Vantage API 的调用频率限制

许可证

[添加许可证信息]

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    5 (1)
    Avatar
    user_rAeH2HxD
    2025-04-18

    The stock-market-server by MCP-100 is an incredibly efficient tool for real-time stock market data analysis. Its seamless integration and comprehensive features make it ideal for both beginners and professionals. Highly recommended for those involved in financial markets! Check it out at https://github.com/MCP-100/stock-market-server.