AI Stock Analyst — Data skill for Claude Code
Turn a plain-English request ("compare Apple and Microsoft YTD") into a validated stock chart — a CrewAI multi-agent pipeline exposed as MCP tools for Claude Desktop/Code, using yfinance data, AST-val.
How to install AI Stock Analyst
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open morid648/ai-stock-analyst and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Stock Analyst does
Turn a plain-English request ("compare Apple and Microsoft YTD") into a validated stock chart — a CrewAI multi-agent pipeline exposed as MCP tools for Claude Desktop/Code, using yfinance data, AST-validated code generation, and sandboxed execution. Runs on local (Ollama/DeepSeek-R1) or cloud (Groq, GPT-4o) LLMs.
Alternatives in Data
- A Stock Data — A股全栈数据工具包 · 十一层架构 · 54端点 · 19数据源 · 零鉴权 Full-stack China A-share data toolkit for AI agents — 11 layers, 54 end 9.4k ★
- HTML Video — Programmatic video for coding agents — HTML to video on your laptop 4.5k ★
- MCP Server Chart — 🤖 A visualization mcp & skills contains 25+ visual charts using @antvis 4k ★
README
AI Financial Analyst Agent
Autonomous multi-agent stock research and visualization engine powered by **CrewAI**, **FastMCP**, **yfinance**, and local open-weight LLMs (**DeepSeek-R1 / Ollama**).
[](https://www.python.org/) [](https://opensource.org/licenses/MIT) [](https://modelcontextprotocol.io/) [](https://crewai.com)
1. Overview
Retrieving, analyzing, and visualizing stock market data usually requires manually writing Python scripts, juggling `yfinance` and `matplotlib` parameters, and debugging code execution.
The **AI Financial Analyst Agent** accepts natural language queries (such as *"Show me Tesla's YTD performance"* or *"Compare Apple and Microsoft stocks for the past year"*) and autonomously:
- Parses ticker symbols, timeframes, and actions into structured Pydantic schemas.
- Generates clean, production-ready Python visualization scripts using
yfinanceandmatplotlib. - Validates & executes the generated code in a sandboxed subprocess with strict timeouts and error handling.
- Exposes the entire pipeline as standard MCP (Model Context Protocol) tools ready for Claude Desktop and Claude Code.
2. Architecture
flowchart TD
User([User Prompt / MCP Client]) -->|Tool Call: analyze_stock| Server[FastMCP Server: server.py]
Server -->|Kickoff| Crew[CrewAI Pipeline: finance_crew.py]
subgraph CrewAI Sequential Process
A1[Agent 1: Stock Data Analyst] -->|Structured Query Analysis| A2[Agent 2: Senior Python Developer]
A2 -->|Draft Python Script| A3[Agent 3: Senior Code Execution Expert]
A3 -->|Review & Self-Correction Loop| A2
end
Crew -->|Raw Output| Sanitizer[Output Sanitizer: utils/sanitize
Related Skills
Text To SQL Agent
An AI agent that turns plain-English questions into validated SQL, executes them, and returns the answer which
Whisper Cz En
Local Czech & English audio/video transcription using whisper.cpp on Apple Silicon. Anti-hallucination pipelin
Xvary Stock Research
Claude Code skill for public SEC EDGAR + market data: /analyze, /score, /compare. MIT.
Explain SQL
Review one SQL query via guided intake - validation, clause-by-clause breakdown, business layer, scorecard, ri
De Slop
Rewrite (or check) a draft in plain, ASD-STE100-style English tuned to real deliverables — Slack/chat to stake
AlphaAnalyst Open Source Autonomous Equity Research Agent
Enter a US stock ticker, get an analyst grade memo with DCF valuation, peer comparables, news sentiment, and e
Related Agents
Timps AI Workflow Orchestrator
Turn a plain-English multi-step workflow into executable code for LangGraph, Temporal, or Claude-Flow — plus a
Platform Design.Agent
Pluggable platform-guidelines reviewer. Reads config.platform / config.knowledgePack and loads the matching Ar
Guru
Natural Language Programming expert who teaches the art of writing programs in plain English