Skip to main content

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

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

Metadata

Release files for stocksense 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stocksense 0.1.1
File Size Uploaded
stocksense-0.1.1.tar.gz 28.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stocksense 0.1.1
File Interpreter ABI Platform
stocksense-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 51.6 kB

Release files / stocksense-0.1.1.tar.gz

Download URL stocksense-0.1.1.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
13c0af1a09cb8de0416ebb28e949517131c92033a8f6a76317930580a13803d1
BLAKE2b-256 checksum
How to use checksums
5b9c79467d23471e1396630f1b27c93d740267d42fe9573d62ad7511a3718414
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 8, 2026.

Transparency log

Release files / stocksense-0.1.1-py3-none-any.whl

Download URL stocksense-0.1.1-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ae7f37b36997a9fe056e32e31038a07da1e456fc4794e7effefeb0e03a98895
BLAKE2b-256 checksum
How to use checksums
54e39ed29c05de48a66f35fd415bb0e10fb43a5fd06e9b70e925bdd67c3f8950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page