Skip to main content

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

Project description

StockSense

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

Tool Description
price_history Get historical OHLCV price data for any ticker
quote Get current price, market cap, P/E, 52-week range
search_filings Search SEC EDGAR filings (10-K, 10-Q, 8-K)
get_filing Get full text of a specific SEC filing
insider_trades Get recent insider buys/sells from Form 4 filings
financials Get income statement, balance sheet, cash flow, and key ratios
analyze_company Comprehensive research brief aggregating all data sources
compare_companies Compare key metrics across multiple companies side-by-side
earnings Quarterly earnings history with EPS estimates vs actuals
company_profile Company profile: sector, industry, and business description
dividends Dividend history and current yield
key_events Upcoming earnings dates, ex-dividend date, and estimates
technicals Technical 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stocksense-0.1.0.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stocksense-0.1.0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file stocksense-0.1.0.tar.gz.

File metadata

  • Download URL: stocksense-0.1.0.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stocksense-0.1.0.tar.gz
Algorithm Hash digest
SHA256 acca31fb9d039579d2bef6eadfd4b753450fe75c4eb665309f047384c4707c29
MD5 3b19beabae9dd2e629d12d590ed12f33
BLAKE2b-256 a2859ed7219912a7a78216fcb2b2e58ba8cd40acd8d9e058345269382f5574ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for stocksense-0.1.0.tar.gz:

Publisher: publish.yml on mikejj-creation/stocksense

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stocksense-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stocksense-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stocksense-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b11822012d7fbf7e1e6b1b4e21a10d2098b87762028bf9d3dd5025df6712cca5
MD5 fda87bcd61476dcbeb32eb534fb297e6
BLAKE2b-256 d91d4868c67c7e63bbb0a3d78aa80fc4c5fe5b5fb05e8e4eb138fa6828e40c4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for stocksense-0.1.0-py3-none-any.whl:

Publisher: publish.yml on mikejj-creation/stocksense

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page