SuperAPI AI Directory

trading-mcp

Local stock research: screening, fundamentals, insider trades, options and Reddit sentiment, and AI news analysis.

Open website

About this tool

Trading MCP Server is a Model Context Protocol (MCP) server for stock analysis and trading insights, designed to provide MCP clients with multi-dimensional market research capabilities through a unified interface. The project is built with TypeScript and requires cloning the repository, installing dependencies, and compiling before adding the corresponding configuration to the MCP configuration file. Its tools cover modules such as stock screening, fundamentals, insider transactions, options, social media, and news analysis.

Purpose and positioning: The project describes itself as helping users trade smarter (or at least try), mainly serving individual researchers who need to integrate market data, fundamental indicators, market sentiment, and news into their analysis workflow. It exposes these capabilities to MCP-compatible clients through the MCP protocol (for example, the Cursor or IDE MCP settings mentioned in the configuration).

Main capabilities:

  • Stock screening: Use Finviz-format filters for advanced screening, supporting technical patterns, fundamental conditions, and multi-parameter filtering. The filters parameter is a Finviz-format object; use "f" for basic filtering and "o" for sorting; limit defaults to 50.
  • Fundamental analysis: Obtain comprehensive financial indicators such as P/E ratio, PEG, ROE, debt ratio, growth rate, and profit margin; supports multi-stock valuation comparison (default comparison metrics include pe, forwardPE, peg, priceToBook); and can calculate a 0-100 financial health score with customizable weights: profitability 0.3, liquidity 0.2, leverage 0.2, efficiency 0.15, growth 0.15.
  • Insider transactions: Monitor insider transactions and analyze sentiment patterns, returning transaction history with sentiment analysis and confidence. You can set limit (default 10), transaction_types, analysis_period (default 90 days), min_transaction_value (default 10000).
  • Options analysis: Obtain put/call ratio data from Barchart, returning ratios by expiration date with sentiment analysis.
  • Comprehensive stock analysis: One-stop analysis integrating fundamental indicators, financial health score, insider analysis, options sentiment, news analysis, and social sentiment (when configured), by simply entering a ticker.
  • Social media research: Identify stocks of interest in Reddit investment communities, with default subreddits analyzed as wallstreetbets and stocks, limit defaults to 20; and can search Reddit discussions and use AI to analyze retail sentiment, supporting subreddits, time range (hour/day/week/month/year, default week), limit (default 25), sorting (relevance/hot/top/new, default hot), maximum number of posts for sentiment analysis (default 50), and optional comment retrieval (include_comments, post_id_for_comments, comment_limit defaults to 100).
  • News analysis: Combines news sentiment, market impact assessment, and industry background analysis, returning article analysis with sentiment scores and market forecasts. Parameters include days_back (default 7), max_articles (default 10), include_sentiment (default true), sector, news_items.

Usage and configuration: You need to first clone the repository, install dependencies, and build the project, then add the corresponding configuration and API credentials to the MCP client configuration. An OpenAI API key is required for news analysis and social sentiment analysis; Reddit credentials are required for social media research features. To obtain an OpenAI key, visit the OpenAI API to create an account and generate a key, configured as OPENAI_API_KEY; to obtain Reddit credentials, visit Reddit App Preferences, create an app of type script, using such as http://localhost:8080 placeholder redirect URI, record client_id and client_secret and write them into the MCP configuration.

Use cases: suitable for trading researchers who want to integrate stock screening, fundamental comparison, insider activity, options sentiment, Reddit retail sentiment, and news impact assessment into an MCP workflow, especially convenient for direct invocation in MCP-enabled editors or IDEs.

Limitations and risks: web scraping of Finviz and Barchart may occasionally fail due to rate limits or website changes; the Reddit API has rate limits, which may affect high-frequency use; the OpenAI API is billed by tokens consumed and will incur costs. In addition, the data comes from third parties and may be inaccurate or not up to date, and users should verify independently. The project explicitly states that it is for educational and research purposes only and does not constitute financial advice; trading and investing involve the risk of principal loss, and past performance does not indicate future results. If there are questions, issues can be submitted via GitHub.

More details about pricing and specific usage steps are not yet provided in the materials.