🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

stocksense

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stocksense

StockSense — MCP server providing AI agents with access to financial data: SEC filings, price history, financials, insider trades

pipPyPI
Version
0.1.1
Weekly downloads
55
Maintainers
1

StockSense

mcp-name: io.github.mikejj-creation/stocksense

PyPI version PyPI downloads Python versions License: MIT

An MCP (Model Context Protocol) server that gives AI agents access to financial data — SEC EDGAR filings, market fundamentals, insider trades, and price history.

Installation

pip install -e .

For development:

pip install -e ".[dev]"

Usage

Run the server

# Either:
stocksense

# Or:
python -m stocksense

Claude Desktop configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "stocksense": {
      "command": "stocksense"
    }
  }
}

Available Tools

ToolDescription
price_historyGet historical OHLCV price data for any ticker
quoteGet current price, market cap, P/E, 52-week range
search_filingsSearch SEC EDGAR filings (10-K, 10-Q, 8-K)
get_filingGet full text of a specific SEC filing
insider_tradesGet recent insider buys/sells from Form 4 filings
financialsGet income statement, balance sheet, cash flow, and key ratios
analyze_companyComprehensive research brief aggregating all data sources
compare_companiesCompare key metrics across multiple companies side-by-side
earningsQuarterly earnings history with EPS estimates vs actuals
company_profileCompany profile: sector, industry, and business description
dividendsDividend history and current yield
key_eventsUpcoming earnings dates, ex-dividend date, and estimates
technicalsTechnical indicators: SMA, EMA, RSI, MACD, and performance

Example queries

  • "What's AAPL's price history for the last month?"
  • "Get me a quote for MSFT"
  • "Show me TSLA's weekly prices over the past year"
  • "Show me Apple's recent 10-K filings"
  • "What insider trades happened at Tesla recently?"
  • "Show me Apple's financial statements"
  • "Give me a research brief on Tesla"
  • "Compare AAPL, MSFT, and GOOGL"
  • "Show me Apple's earnings history"
  • "What sector is NVIDIA in?"
  • "Show me AAPL's dividend history"
  • "When is Microsoft's next earnings date?"
  • "What are Tesla's technical indicators?"

Data Sources

  • yfinance — price data, quotes, financial statements, analyst consensus
  • SEC EDGAR — free, unlimited filings and insider trades (no API key needed)

Development

# Run tests
pytest

# Run linter
ruff check src/ tests/

License

MIT

Keywords

mcp

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts