mcpField
M
Market Insights Server

Market Insights Server

Local
github.com/jashchawla8Finance0Updated 80w ago

About Market Insights Server

Market Insights Server tracks commodity markets by collecting social, news, and price data, then processing it with Spark and GPT-4. It is aimed at users seeking configurable, text-based market reports across commodity types.

Key features

  1. 01Collects Reddit, news, and Yahoo Finance data
  2. 02Processes text with Apache Spark
  3. 03Generates GPT-4 market insight reports
  4. 04Finds commodity-related subreddits and keywords
  5. 05Exports insights as JSON

Use cases

  1. 01Reviewing sentiment around a commodity
  2. 02Combining news narratives with live price feeds
  3. 03Generating reports for energy, metals, or agriculture

MCP support

The project uses the MCP protocol to provide its commodity market insight capabilities to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Market Insights Server

A real-time commodity tracking system using Apache Spark, OpenAI GPT, and the MCP protocol to generate actionable market insights.


image

Features

  • Real-time data collection from Reddit, News APIs, and Yahoo Finance
  • Scalable processing using Apache Spark (PySpark 3.5.0)
  • Natural language insights powered by GPT-4
  • Configurable for any commodity market: energy, metals, agriculture, and more
  • Built-in dynamic configuration generation and subreddit discovery
  • Ready for deployment with error handling, retries, and async collection

Requirements

  • Python 3.x
  • PySpark 3.5.0
  • Spark NLP 4.4.0
  • aiohttp
  • yfinance
  • openai
  • beautifulsoup4

Install dependencies:

pip install -r requirements.txt

Usage

python spark_market_insights_server.py --commodity "nickel"

Outputs:

  • Cleaned text data from Reddit and news sources
  • TF-IDF features
  • GPT-4-powered insight report
  • JSON export of insights

Architecture

  1. Data Collection Layer

    • Async scraping of Reddit and news articles
    • Yahoo Finance for live price feeds
  2. Processing Layer (Apache Spark)

    • Tokenization → Stop words removal → TF-IDF vectorization
    • Supports Spark NLP pipelines
  3. AI Insight Layer

    • Uses OpenAI GPT-4 to summarize and synthesize market narratives
  4. Configuration Layer

    • Automatically identifies relevant subreddits and keywords per commodity

🔍 Example Output

“Nickel prices rose sharply after Indonesia’s new export ban. Reddit sentiment is bullish, with posts anticipating supply constraints. Market data shows correlated uptick in EV-related equities like NIO and LI.”


🛠 Troubleshooting

ProblemFix
Spark stage stuckCheck memory settings, repartition input
API returns 429Add backoff/retry logic, rotate API keys
GPT returns emptyUse latest models, tune prompt

Coming Soon

  • Youtube videos to be analyzed as well for the commodities
  • Public dashboard on Smithery.ai

Contributing

Have a new data source or insight model? PRs welcome!


License

MIT License

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.