yfinance-mcp-server
Provides AI-friendly stock analysis using Yahoo Finance data, including technical indicators, financial metrics, and Japanese reports.
README
yfinance-mcp-server
Important Note: This is an unofficial MCP server.
A Model Context Protocol (MCP) server for accessing Yahoo Finance data with comprehensive technical analysis features. This server provides AI-friendly structured stock analysis through Yahoo Finance API.
This project is based on onori/yfinance-mcp-server and has been enhanced with comprehensive technical analysis features.
Features
- Comprehensive Stock Analysis: Get detailed financial metrics, technical indicators, and AI-friendly Japanese reports
- Technical Indicators: RSI, MACD, Bollinger Bands, Stochastic, Moving Averages, VWAP, Volume Analysis
- Financial Metrics: Market cap, P/E ratio, P/B ratio, ROE, EPS growth, dividend yield
- Multi-Market Support: US stocks (AAPL), Japanese stocks (7203.T), crypto (BTC-USD), forex (EURUSD=X)
- AI-Optimized Output: Structured Japanese reports with emojis for better AI understanding
- Performance Optimized: Maximum 2 API calls with comprehensive local calculations
Installation
Claude Code MCP Configuration
Use the Claude Code CLI to add the MCP server:
claude mcp add yfinance npx @mokemokechicken/yfinance-mcp-server
Or manually add to your Claude Code MCP settings:
{
"mcpServers": {
"yfinance": {
"command": "npx",
"args": ["@mokemokechicken/yfinance-mcp-server"]
}
}
}
Other MCP Clients (Cursor, etc.)
{
"mcpServers": {
"yfinance": {
"command": "npx",
"args": ["@mokemokechicken/yfinance-mcp-server"]
}
}
}
Local CLI
MCP を介さずにローカルで分析する場合は CLI を使えます。
npm run cli -- AAPL
npm run cli -- 6301.T --days 5
npm run cli -- AAPL --technical-params '{"rsi":{"overbought":80}}'
npm run cli -- AAPL --json
ビルド後は yfinance-analyze コマンドとしても使えます。
Available Tool
getStockAnalysis
Performs comprehensive stock analysis with technical indicators and financial metrics.
Parameters:
symbol(required): Stock symbol- US stocks:
AAPL,GOOGL,MSFT - Japanese stocks:
7203.T,6301.T,9984.T - Crypto:
BTC-USD,ETH-USD - Forex:
EURUSD=X,USDJPY=X
- US stocks:
days(optional): Number of days for recent price data display (default: 7, range: 1-365)
Example Usage:
> Please analyze Apple stock (AAPL) for the last 5 days
> Analyze Toyota Motors (7203.T) with default 7-day period
Response includes:
- 📊 Recent stock price data
- 💰 Financial metrics (market cap, P/E, ROE, etc.)
- 📈 Technical indicators (RSI, MACD, Bollinger Bands, etc.)
- 🎯 Trading signals and trend analysis
- 📋 AI-friendly structured Japanese report
Development
To set up the development environment:
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
License
ISC License (ISC)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.