MCP ExplorerExplorer

Stocksense Mcp Server

@danula-rathnayakaon 19 days ago
1 MIT
FreeCommunity
AI Systems
A real-time stock market insights platform powered by an MCP server that aggregates news, sentiment, trends, and research from multiple sources using scraping tools and LLMs helping investors make informed, actionable decisions with a comprehensive view of stock performance and market movement.

Overview

What is Stocksense Mcp Server

StockSense_MCP_Server is a real-time stock market insights platform that aggregates news, sentiment, trends, and research from multiple sources using scraping tools and LLMs. It helps investors make informed, actionable decisions by providing a comprehensive view of stock performance and market movement.

Use cases

Use cases for StockSense_MCP_Server include conducting market research, analyzing stock performance, making investment decisions, and monitoring market trends to inform trading strategies.

How to use

Users can interact with StockSense_MCP_Server by utilizing its various tools through specific function calls. For example, users can fetch news for a stock symbol, retrieve stock data over a specified time period, and analyze sentiment of financial texts.

Key features

Key features of StockSense_MCP_Server include real-time news aggregation, sentiment analysis, stock data retrieval, and market trend tracking. The MCP architecture allows for efficient communication between these tools, enhancing functionality.

Where to use

StockSense_MCP_Server is primarily used in the financial sector, particularly by investors, analysts, and financial advisors who require timely and accurate stock market insights.

Content

StockSense MCP Server

StockSense is an MCP (Model Context Protocol) server designed to provide various financial and stock-related tools and services. MCP servers enable communication between different services in a distributed system, making it easy to create and scale applications that handle specific tasks. In this project, StockSense integrates multiple services such as stock data retrieval, sentiment analysis, news analysis, and market trend tracking to assist with financial decision-making.

By using the MCP architecture, StockSense leverages efficient communication between tools for seamless functionality.


MCP Server

MCP (Model Context Protocol) is a lightweight server framework designed to enable tool-based microservices. Each tool in the system performs a specific function, and the MCP server facilitates communication between them. This architecture is ideal for building modular applications, allowing each service to be developed, deployed, and maintained independently.

In StockSense, the MCP server hosts several tools related to financial services and allows them to interact efficiently. Tools are registered with the server and made accessible via specific function calls. The server can be expanded with additional tools to provide more capabilities as needed.


Architecture Diagram

Below is the architecture diagram of the StockSense MCP Server:

MCP Server Architecture


Tools

StockSense provides the following tools to assist with stock analysis and financial advice:

  1. get_news(stock_symbol: str) - Fetches news for a given stock symbol using DuckDuckGo.

  2. get_stock_data(stock_symbol: str, time_period: str = "1y", start_date: str = None, end_date: str = None) - Stock data retrieval based on the symbol and optional time period or date range using yfinance.

  3. analyze_sentiment(text: str) - Analyzes sentiment of financial or stock-related text using a language model (LLM) via Ollama.

  4. track_market_trends(stock_symbol: str) - Tracks market trends by querying DuckDuckGo and summarizing trends using Ollama.

  5. financial_advisor(stock_symbol: str) - Provides financial advice based on stock data, news, and sentiment analysis.

Tools

No tools

Comments