Skip to main content

MseeP.ai Security Assessment Badge

WSB Analyst MCP Server

Trust Score smithery badge

A Model Context Protocol (MCP) server that provides real-time WallStreetBets data for analysis with Claude or other LLM clients.

WSB Analyst Server MCP server

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.12 or higher
  • Reddit API credentials
  • Claude Desktop or another MCP client

Installation

Installing via Smithery

To install WSB Analyst for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @ferdousbhai/wsb-analyst-mcp --client claude

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:

  1. Log in to your Reddit account
  2. Navigate to https://www.reddit.com/prefs/apps
  3. Scroll down and click "create another app..." or "create an app..."
  4. 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)
  5. Click "create app"
  6. 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": "uvx",
      "args": [
        "run",
        "wsb-analyst"
      ],
      "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:

  1. Open Claude Desktop
  2. You should see a hammer icon in the bottom right corner of the message input box
  3. Click the hammer to see available tools
  4. 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) required
  • min_comments (default: 10): Minimum number of comments required
  • limit (default: 10): Maximum number of posts to return
  • excluded_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.

get_trending_tickers

Identifies and returns a list of stock tickers frequently mentioned or discussed in recent top WSB 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.

License

MIT

Metadata

Release files for iflow-mcp_ferdousbhai-wsb-analyst 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_ferdousbhai-wsb-analyst 0.1.1
File Size Uploaded
iflow_mcp_ferdousbhai_wsb_analyst-0.1.1.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_ferdousbhai-wsb-analyst 0.1.1
File Interpreter ABI Platform
iflow_mcp_ferdousbhai_wsb_analyst-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.6 kB

Release files / iflow_mcp_ferdousbhai_wsb_analyst-0.1.1.tar.gz

Download URL iflow_mcp_ferdousbhai_wsb_analyst-0.1.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2fb921bac234aaae36350fae443b5687521f400398eb7df35e9c088ad02cf4ec
BLAKE2b-256 checksum
How to use checksums
7cf91c138f999caf52808090759ef1c68438df8455b530fa979f4511718f213f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_ferdousbhai_wsb_analyst-0.1.1-py3-none-any.whl

Download URL iflow_mcp_ferdousbhai_wsb_analyst-0.1.1-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc5c24d342811b2c188ae4de5b719ef9a0a1e7ddcb7a5edfcfacac2b67cfc6bc
BLAKE2b-256 checksum
How to use checksums
4ec218a46cc4f108f97a0750d5b5cce09a966b7bf28f7eb192eec9d7aaed98c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page