trading-mcp
by netanelavr·★ 71·综合分 43
Trading MCP 服务器提供股票筛选、基本面分析、内部交易、社交情绪和新闻分析功能。
概述
Trading MCP 服务器是一个综合性的金融导向 MCP 实现,集成了多个数据源进行股票分析。它提供技术筛选、基本面指标比较、内部交易监控、期权情绪分析和 Reddit 集成的社交媒体研究工具。服务器需要 OpenAI 和 Reddit 的外部 API 密钥才能使用情绪分析等高级功能。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您需要多数据源股票分析和 AI 驱动的情绪分析进行投资研究,请选择此服务器。
什么时候不要选它
如果您需要实时交易功能,或不愿意管理 OpenAI 和 Reddit 的多个 API 密钥,请避免使用此服务器。
此 server 暴露的工具
从 README 抽取出 10 个工具screen_stocks_advanced_filtersfilters: object, limit?: numberAdvanced stock screening using Finviz filters with technical patterns and fundamental criteria.
get_fundamental_stock_metricsticker: string, metrics?: arrayRetrieves comprehensive financial metrics including P/E ratios, ROE, debt ratios, and growth rates.
compare_stock_valuationstickers: array, metrics?: arrayCompares valuation metrics across multiple stocks to identify relative value opportunities.
calculate_financial_health_scoreticker: string, weights?: objectCalculates a comprehensive financial health score based on profitability, liquidity, leverage, and growth metrics.
analyze_insider_activityticker: string, limit?: number, transaction_types?: array, analysis_period?: number, min_transaction_value?: numberMonitors insider transactions and analyzes sentiment patterns with confidence scores.
get_put_call_ratioticker: stringRetrieves put/call ratio data from Barchart to assess options market sentiment.
comprehensive_stock_analysisticker: stringAll-in-one stock analysis combining fundamental metrics, financial health, insider data, options sentiment, and social/news analysis.
discover_trending_stockssubreddits?: array, limit?: numberIdentifies stocks gaining attention across Reddit investing communities with mention frequency.
analyze_reddit_sentimentticker: string, subreddits?: array, time_filter?: string, limit?: number, sort?: string, max_posts_for_sentiment?: number, include_comments?: boolean, post_id_for_comments?: string, comment_limit?: numberSearches Reddit discussions and uses AI to analyze retail investor sentiment with confidence scores.
analyze_news_and_market_contextticker: string, days_back?: number, max_articles?: number, include_sentiment?: boolean, sector?: string, news_items?: arrayCombines news sentiment analysis, market impact assessment, and sector context analysis.
可对比工具
安装
安装步骤
- **克隆并安装依赖:**
git clone <repository-url>
cd trading-mcp
npm install- **构建项目:**
npm run build- **在 Claude Desktop 中配置:**
添加到 claude_desktop_config.json:
{
"mcpServers": {
"trading-mcp": {
"command": "node",
"args": ["/path/to/trading-mcp/dist/server.js"],
"env": {
"OPENAI_API_KEY": "sk-your-openai-api-key-here",
"REDDIT_CLIENT_ID": "your-reddit-client-id",
"REDDIT_CLIENT_SECRET": "your-reddit-client-secret",
"REDDIT_USERNAME": "your-reddit-username",
"REDDIT_PASSWORD": "your-reddit-password"
}
}
}
}FAQ
- 需要哪些 API 密钥?
- 新闻分析和社交情绪分析需要 OpenAI API 密钥。社交媒体研究功能需要 Reddit 凭据。
- 如何获取 Reddit API 凭据?
- 访问 Reddit 应用偏好设置 (https://www.reddit.com/prefs/apps),创建脚本应用,并记下您的 client_id 和 client_secret。将它们添加到您的 MCP 配置中。
trading-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。