Cover image
Try Now
2025-04-07

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Market Insights Server

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


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

Problem Fix
Spark stage stuck Check memory settings, repartition input
API returns 429 Add backoff/retry logic, rotate API keys
GPT returns empty Use 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

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

  • GeyserMC
  • Una biblioteca para la comunicación con un cliente/servidor de Minecraft.

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

    Reviews

    1 (1)
    Avatar
    user_YWhrTNce
    2025-04-17

    As a devoted user of the mcp_server by jashchawla8, I am thoroughly impressed with its performance and reliability. This well-documented server application is highly efficient and user-friendly, making it an excellent choice for developers. The GitHub repository provides easy access and comprehensive guides, ensuring smooth implementation. Highly recommend checking it out!