
WSB Analyst MCP Server
A Model Context Protocol server that enables LLM clients to fetch, analyze, and extract insights from real-time WallStreetBets posts, comments, and shared links for market analysis.
README
WSB Analyst MCP Server
A Model Context Protocol (MCP) server that provides real-time WallStreetBets data for analysis with Claude or other LLM clients.
Features
- Fetch WallStreetBets Posts: Filter posts by score, comment count, and content type
- Detailed Post Analysis: Extract comments, links, and metadata from posts
- External Link Collection: Gather links being shared in WSB discussions
- Analysis Templates: Ready-to-use prompt templates for market analysis
- Progress Reporting: Real-time progress updates during data collection
- MCP Integration: Seamless integration with Claude Desktop and other MCP clients
Requirements
- Python 3.10 or higher
- Reddit API credentials
- Claude Desktop or another MCP client
Installation
Clone this repository or download the source files:
git clone https://github.com/ferdousbhai/wsb-analyst-mcp
cd wsb-analyst-mcp
Create a virtual environment and install dependencies:
# Using uv (recommended)
uv sync
Setting Up Reddit API Credentials
To use this server, you need to create a Reddit application to get API credentials:
- Log in to your Reddit account
- Navigate to https://www.reddit.com/prefs/apps
- Scroll down and click "create another app..." or "create an app..."
- Fill in the following details:
- name: WSB Analyst MCP (or any name you prefer)
- app type: select "script"
- description: Optional description of your application
- about url: Can be left blank
- redirect uri: Use
http://localhost:8000
(any valid URL works as we don't use OAuth)
- Click "create app"
- After creation, note down:
- client_id: The string under the app name (appears right under "personal use script")
- client_secret: The string labeled "secret"
Configuration for Claude Desktop
Open Claude Desktop's configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration (adjust paths as needed):
{
"mcpServers": {
"wsb-analyst": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/wsb-analyst-mcp",
"run",
"mcp_wsb_server.py"
],
"env": {
"REDDIT_CLIENT_ID": "your_client_id_here",
"REDDIT_CLIENT_SECRET": "your_client_secret_here"
}
}
}
}
Restart Claude Desktop
Using with Claude Desktop
Once configured, you can interact with the WSB Analyst server through Claude:
- Open Claude Desktop
- You should see a hammer icon in the bottom right corner of the message input box
- Click the hammer to see available tools
- Access prompt templates via slash commands (e.g.,
/analyze_wsb_market
)
Example queries:
- "What are the top trending stocks on WallStreetBets today?"
- "Analyze recent WallStreetBets posts and tell me about potential market opportunities"
- "What external resources are WSB users sharing about AMD stock?"
Available Tools
find_top_posts
Fetch and filter WSB posts based on criteria.
Parameters:
min_score
(default: 100): Minimum score (upvotes) requiredmin_comments
(default: 10): Minimum number of comments requiredlimit
(default: 10): Maximum number of posts to returnexcluded_flairs
(default:["Meme", "Shitpost", "Gain", "Loss"]
): List of post flairs to exclude.
fetch_post_details
Fetch detailed information about a specific WSB post including top comments.
Parameters:
post_id
: Reddit post ID
fetch_batch_post_details
Fetches details for multiple posts efficiently.
fetch_detailed_wsb_posts
Fetch and filter WSB posts, then get detailed information including top comments and links for each.
get_external_links
Collects all external links from top posts.
Prompt Templates
/analyze_wsb_market
Provides a template prompt to guide an LLM in performing a comprehensive market analysis using the available tools (fetch_detailed_wsb_posts
, get_external_links
). It instructs the LLM on the structure and focus of the analysis.
/find_market_movers
Creates a prompt focused on what's moving specific stocks or the overall market. This prompt guides the LLM to use tools like find_top_posts
and fetch_post_details
or fetch_batch_post_details
.
Integrating with Firecrawl MCP Server
For enhanced analysis capabilities, especially when dealing with external links found in WSB posts, you can integrate this server with the Firecrawl MCP Server. This allows your LLM agent to not only identify links shared on WSB but also scrape and analyze the content of those linked pages.
Configuration Example
To use both servers simultaneously in Claude Desktop, modify your claude_desktop_config.json
to include configurations for both under the mcpServers
key. Ensure you have the Firecrawl MCP server cloned and set up according to its documentation.
{
"mcpServers": {
"wsb-analyst": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/wsb-analyst-mcp",
"run",
"mcp_wsb_server.py"
],
"env": {
"REDDIT_CLIENT_ID": "your_client_id_here",
"REDDIT_CLIENT_SECRET": "your_client_secret_here"
}
},
"firecrawl": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/firecrawl-mcp-server", // Adjust path
"run",
"mcp_firecrawl_server.py"
],
"env": {
"FIRECRAWL_API_KEY": "your_firecrawl_api_key" // If required by Firecrawl
}
}
}
}
Remember to replace /absolute/path/to/...
with the actual paths to your project directories and provide any necessary API keys. Restart Claude Desktop after updating the configuration.
License
MIT
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。