AS

adity-star/mcp-yfinance-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

54 stars 19 forks 质量 70 趋势 0MIT

adity-star/mcp-yfinance-server 是从 https://github.com/adity-star/mcp-yfinance-server. 导入的 MCP 服务器候选服务器。

概览

adity-star/mcp-yfinance-server 是从 https://github.com/adity-star/mcp-yfinance-server. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

该项目搭建了一个股票价格服务器,由Yahoo Finance(YFinance) API驱动,并构建为与**MCP(模型控制协议)**的无缝集成。

它允许人工智能代理或客户:

  • 检索实时库存数据
  • 管理监控列表
  • 进行完整的库存分析
  • 运行完整的技术指标
  • 还有更多

🪙 从简单开始:先建立一个加密货币价格追踪器

在深入使用完整的股票服务器之前,我建议先从这个用Python + MCP 👇构建的简单加密追踪器开始

🔗 GitHub仓库: https://github.com/Adity-star/mcp-crypto-server

你将学会如何:

  • 使用 MCP 来展示像 get_price(“BTC”)这样的加密工具
  • 用 FastAPI 构建 API
  • 使用 Alpaca API 获取实时价格

🔗 相关项目

探索更多我的作品:

  • 生成式人工智能学习:深入探讨生成式人工智能的概念、工具和项目。
  • LangChain-精通:掌握构建强大LLM应用所需的一切LangChain。
  • 完整数据科学:深入解析数据科学人工智能的概念、工具和项目,以及所有学习和面试准备材料。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

💹 MCP YFinance Stock Server

This project sets up a stock Price server powered by the Yahoo Finance (YFinance) API and built for seamless integration with MCP (Model Control Protocol).

It allows AI agents or clients to:

  • Retrieve real-time stock data
  • Manage a watchlist
  • Perform full stock analysis
  • Run full technical indicators
  • And much more


🪙 Start Simple: Build a Crypto Price Tracker First

Before diving into the full-blown stock server, I recommend starting with this simple crypto tracker built with Python + MCP 👇

🔗 GitHub Repo: https://github.com/Adity-star/mcp-crypto-server

You’ll learn how to:

  • Use MCP to expose crypto tools like get_price(“BTC”)
  • Build an API with FastAPI
  • Fetch real-time prices using the Alpaca API

Explore more of my work:

  • GenAI-Learnings: A deep dive into Generative AI concepts, tools, and projects.
  • LangChain-Mastery: Everything you need to master LangChain for building powerful LLM applications.
  • Complete Data Science: A deep dive into Data Science AI concepts, tools, and projects and all the material for learning and interview preparation.
  • Reinforcement-Learning: Hands-on experiments and theory in Reinforcement Learning.
  • CompleteRAG: End-to-end implementation of Retrieval-Augmented Generation (RAG) systems.

📈 Then Level Up: Build the yFinance Stock Server

Once you’re familiar with the flow, move on to this more advanced stock tracker 💹

🔗 GitHub Repo: https://github.com/Adity-star/mcp-yfinance-server

📝 Detailed Blog: 👉 How I Built My Own Stock Server with Python, yFinance, and a Touch of Nerdy Ambition

Includes:

  • Watchlists
  • Real-time(ish) price updates
  • Technical summaries
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "yfinance-price-tracker": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/YOUR/mcp-yfinance-server", "run", "main.py" ] } } }