MCP 100 stock market server

MCP 100 stock market server avatar

by MCP-100

Stock Market MCP Server

What is MCP 100 stock market server

Stock Market MCP Server

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

生成该 MCPServer 的关键信息

  • .clinerules
  • api-key
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": {
      ```json
      "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 的调用频率限制

许可证

[添加许可证信息]

Leave a Comment

Frequently Asked Questions

What is MCP?

MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.

What are MCP Servers?

MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.

How do MCP Servers work?

MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.

Are MCP Servers secure?

Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.

Related MCP Servers

chrisdoc hevy mcp avatar

chrisdoc hevy mcp

mcp
sylphlab pdf reader mcp avatar

sylphlab pdf reader mcp

An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.

pdf-parsetypescriptnodejs
aashari mcp server atlassian bitbucket avatar

aashari mcp server atlassian bitbucket

Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.

atlassianrepositorymcp
aashari mcp server atlassian confluence avatar

aashari mcp server atlassian confluence

Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.

atlassianmcpconfluence
prisma prisma avatar

prisma prisma

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

cockroachdbgomcp
Zzzccs123 mcp sentry avatar

Zzzccs123 mcp sentry

mcp sentry for typescript sdk

mcptypescript
zhuzhoulin dify mcp server avatar

zhuzhoulin dify mcp server

mcp
zhongmingyuan mcp my mac avatar

zhongmingyuan mcp my mac

mcp
zhixiaoqiang desktop image manager mcp avatar

zhixiaoqiang desktop image manager mcp

MCP 服务器,用于管理桌面图片、查看详情、压缩、移动等(完全让Trae实现)

mcp
zhixiaoqiang antd components mcp avatar

zhixiaoqiang antd components mcp

An MCP service for Ant Design components query | 一个减少 Ant Design 组件代码生成幻觉的 MCP 服务,包含系统提示词、组件文档、API 文档、代码示例和更新日志查询

designantdapi

Submit Your MCP Server

Share your MCP server with the community

Submit Now