mcpField
S
StockSense MCP Server

StockSense MCP Server

Local
github.com/danula-rathnayakaFinance2Updated 77w ago

About StockSense MCP Server

StockSense is an MCP server for investors that combines stock data, news, sentiment analysis, and market-trend tools to support financial decisions.

Key features

  1. 01Fetch news by stock symbol
  2. 02Retrieve historical stock data
  3. 03Analyze financial text sentiment
  4. 04Track and summarize market trends
  5. 05Offer advice using data and news

Use cases

  1. 01Find news about a stock
  2. 02Review prices for a chosen period
  3. 03Assess sentiment in market coverage
  4. 04Combine stock information for decisions

MCP support

The MCP server exposes tools for stock news, market data, sentiment analysis, trend tracking, and financial advice.

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

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.

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.