donaldcmwong/sovrai_mcp_data
If you are the rightful owner of sovrai_mcp_data and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The MCP Market Data Demo is a lightweight server-client setup designed to provide market data utilities through the Model Context Protocol (MCP). It leverages Python libraries such as `fastmcp`, `yfinance`, and `pydantic` to deliver financial data services.
MCP Market Data Demo
A tiny Model Context Protocol (MCP) tool server with a matching async client.
It exposes simple market-data utilities (price, OHLCV, summary) that an LLM can call.
Built with Python, fastmcp, yfinance, and pydantic.
✨ Features
-
MCP Tool Server (
core.py)market_data(request)→ historical OHLCV via yfinancecurrent_price(symbols)→ current pricesmarket_summary(symbols)→ key metrics bundle
-
Async Client (
client.py)- Connects to the MCP server and calls tools
- Pretty-prints JSON results
-
Deterministic Tests
- Mock
yfinance.Tickerso CI runs without network flakiness - Run with
pytest -q
- Mock
-
Continuous Integration
- GitHub Actions workflow runs tests on push/PR
- Green check shows reproducibility
🚀 Quickstart (macOS/Linux)
Clone and enter project:
git clone https://github.com/<your-username>/mcp-market-data-demo.git
cd mcp-market-data-demo