StockFlow MCP Server
StockFlow MCP Server
Ein Model Context Protocol (MCP)-Server, der Echtzeit-Aktiendaten und Optionsanalysen über Yahoo Finance bereitstellt. Ermöglicht LLMs den Zugriff auf Marktdaten, die Analyse von Aktien und die Bewertung von Optionsstrategien.
Funktionen
Aktiendaten
Echtzeit-Aktienkurse und wichtige Kennzahlen
Historische Kursdaten mit OHLC-Werten
Unternehmenskennzahlen und Finanzberichte
Marktindikatoren und Kennzahlen
Optionsanalyse
Vollständige Optionskettendaten
Griechen (Delta, Gamma, Theta, Vega)
Verfolgung von Volumen und offenem Interesse
Analyse von Optionsstrategien
Related MCP server: MCP Yahoo Finance
Installation
# Install dependencies
pip install mcp yfinance
# Clone the repository
git clone https://github.com/twolven/stockflow
cd stockflowVerwendung
Klonen Sie das Repository:
git clone https://github.com/twolven/mcp-stockflow.git
cd mcp-stockflowInstallieren Sie die Abhängigkeiten:
pip install -r requirements.txtFügen Sie zu Ihrer Claude-Konfiguration hinzu: Fügen Sie in Ihrer
claude-desktop-config.jsonFolgendes zum AbschnittmcpServershinzu:
{
"mcpServers": {
"stockflow": {
"command": "python",
"args": ["path/to/stockflow.py"]
}
}
}Ersetzen Sie "path/to/stockflow.py" durch den vollständigen Pfad zu der Stelle, an der Sie die Datei stockflow.py gespeichert haben.
Verwendungshinweis für Claude
Wenn Sie mit Claude arbeiten, können Sie diesen Hinweis verwenden, um ihm die verfügbaren Tools zu erklären:
"Ich habe die stockflow-Tools aktiviert, die Ihnen Zugriff auf Aktienmarktdaten geben. Sie können diese drei Hauptfunktionen verwenden:
get_stock_data– Umfassende Aktieninformationen abrufen:
{
"symbol": "AAPL",
"include_financials": true, # optional
"include_analysis": true, # optional
"include_calendar": true # optional
}get_historical_data– Kursverlauf und technische Indikatoren abrufen:
{
"symbol": "AAPL",
"period": "1y", # 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max
"interval": "1d", # 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo
"prepost": false # optional - include pre/post market data
}get_options_chain– Optionsdaten abrufen:
{
"symbol": "AAPL",
"expiration_date": "2024-12-20", # optional - uses nearest date if not specified
"include_greeks": true # optional
}Alle Antworten enthalten aktuelle Kursdaten, Fehlerbehandlung und umfassende Marktinformationen."
Server ausführen
python stockflow.pyVerwendung mit MCP-Client
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
server_params = StdioServerParameters(
command="python",
args=["stockflow.py"]
)
async def run():
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
# Get current stock data
result = await session.call_tool(
"get-stock-data",
arguments={"symbol": "AAPL"}
)
# Get options chain
options = await session.call_tool(
"get-options-chain",
arguments={
"symbol": "AAPL",
"expiration_date": "2024-12-20"
}
)
if __name__ == "__main__":
import asyncio
asyncio.run(run())Verfügbare Tools
get-stock-dataAktueller Preis und Volumen
Marktkapitalisierung und KGV
52-Wochen-Hoch/Tief
get-historical-dataOHLC-Kurse
Konfigurierbare Zeiträume
Volumendaten
get-options-chainCalls und Puts
Ausübungspreise
Griechen und IV
Volumen und offenes Interesse
Verfügbare Ressourcen
company-info://{symbol}Unternehmensbeschreibung
Sektor und Branche
Mitarbeiterzahl
Website
financials://{symbol}Gewinn- und Verlustrechnung
Bilanz
Kapitalflussrechnung
Prompts
analyze-optionsAnalyse von Optionsstrategien
Risiko-/Ertragsbewertung
Bewertung der Marktbedingungen
Anforderungen
Python 3.12+
mcp
yfinance
Einschränkungen
Die Daten stammen von Yahoo Finance und können Verzögerungen aufweisen.
Die Verfügbarkeit von Optionsdaten hängt von den Marktzeiten ab.
Es gelten Ratenbegrenzungen basierend auf den Einschränkungen der Yahoo-Finance-API.
Mitwirken
Beiträge sind willkommen! Sie können gerne einen Pull Request einreichen.
Lizenz
Dieses Projekt ist unter der MIT-Lizenz lizenziert – siehe die Datei LICENSE für Details.
Autor
Todd Wolven – Leitender KI-Softwareentwickler und Open-Source-GenAI-Ingenieur
Danksagungen
Erstellt mit dem Model Context Protocol (MCP) von Anthropic
Daten bereitgestellt von Yahoo Finance
Entwickelt für die Verwendung mit Claude von Anthropic
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies through Yahoo Finance data.38MIT
- AlicenseBqualityBmaintenanceA Model Context Protocol server that enables interaction with Yahoo Finance to retrieve stock pricing, company information, and historical financial data through natural language queries.1029MIT
- AlicenseCqualityNot gradedmaintenanceA Model Context Protocol server that provides tools for interacting with Yahoo Finance, allowing users to retrieve stock prices, company information, and perform financial data comparisons.11
- AlicenseCqualityDmaintenanceA Model Context Protocol server providing comprehensive financial data from Yahoo Finance, allowing users to retrieve detailed stock information, financial statements, options data, and market news.34MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Real-time news with bias scoring, live market data, and AI-powered options pricing
Appeared in Searches
- Real-Time Stock Options Data for All NASDAQ Stocks
- Yahoo Finance MCP (Model Context Protocol) Server
- A server for exploring business analysis, market research, and idea validation techniques
- A guide to investing in managed funds and equities
- A platform for live probability option trading with indicators across multiple markets
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/twolven/mcp-stockflow'
If you have feedback or need assistance with the MCP directory API, please join our Discord server