这是一个提供实时 WallStreetBets 数据以供分析的 Model Context Protocol (MCP) 服务器,可以与 Claude 或其他 LLM 客户端一起使用。
<a href="https://glama.ai/mcp/servers/@ferdousbhai/wsb-analyst-mcp"> <img width="380" height="200" src="https://gips2.baidu.com/it/u=1955477371,2469714506&fm=3081&app=3081&f=PNG?w=760&h=400" alt="WSB 分析员服务器 MCP 服务器" /> </a>要通过 Smithery 自动安装 WSB 分析员到 Claude Desktop:
npx -y @smithery/cli install @ferdousbhai/wsb-analyst-mcp --client claude
克隆此仓库或下载源文件:
git clone https://github.com/ferdousbhai/wsb-analyst-mcp
cd wsb-analyst-mcp
创建虚拟环境并安装依赖项:
# 使用 uv(推荐)
uv sync
要使用此服务器,您需要创建一个 Reddit 应用来获取 API 凭证:
http://localhost:8000(任何有效的 URL 都可以,因为我们不使用 OAuth)打开 Claude Desktop 的配置文件:
~/Library/Application Support/Claude/claude_desktop_config.json添加以下配置(根据需要调整路径):
{
"mcpServers": {
"wsb-analyst": {
"command": "uvx",
"args": [
"run",
"wsb-analyst"
],
"env": {
"REDDIT_CLIENT_ID": "your_client_id_here",
"REDDIT_CLIENT_SECRET": "your_client_secret_here"
}
}
}
}
重启 Claude Desktop
配置完成后,您可以通过 Claude 与 WSB 分析员服务器进行交互:
/analyze_wsb_market)示例查询:
find_top_posts根据标准获取并筛选 WSB 帖子。
参数:
min_score(默认值:100):所需的最小分数(点赞数)min_comments(默认值:10):所需最小评论数量limit(默认值:10):返回的最大帖子数excluded_flairs(默认值:["Meme", "Shitpost", "Gain", "Loss"]):要排除的帖子标签列表。fetch_post_details获取特定 WSB 帖子的详细信息,包括顶级评论。
参数:
post_id:Reddit 帖子 IDfetch_batch_post_details高效地获取多个帖子的详细信息。
fetch_detailed_wsb_posts获取并筛选 WSB 帖子,然后获取每个帖子的详细信息,包括顶级评论和链接。
get_external_links收集顶级帖子中的所有外部链接。
get_trending_tickers识别并返回最近顶级 WSB 帖子中频繁提及或讨论的股票代码列表。
/analyze_wsb_market提供一个模板提示,指导 LLM 使用可用工具(fetch_detailed_wsb_posts,get_external_links)进行全面的市场分析。它指示 LLM 分析的结构和重点。
/find_market_movers创建一个专注于推动特定股票或整体市场的提示。此提示引导 LLM 使用工具如 find_top_posts 和 fetch_post_details 或 fetch_batch_post_details。
为了增强分析能力,特别是在处理 WSB 帖子中发现的外部链接时,您可以将此服务器与 Firecrawl MCP 服务器 集成。这允许您的 LLM 代理不仅能够识别 WSB 上共享的链接,还可以抓取并分析这些链接页面的内容。
MIT