StockSense — MCP server providing AI agents with access to financial data: SEC filings, price history, financials, insider trades
Project description
StockSense
mcp-name: io.github.mikejj-creation/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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stocksense-0.1.1.tar.gz.
File metadata
- Download URL: stocksense-0.1.1.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13c0af1a09cb8de0416ebb28e949517131c92033a8f6a76317930580a13803d1
|
|
| MD5 |
5a9f9f47532838daef264aad256a2299
|
|
| BLAKE2b-256 |
5b9c79467d23471e1396630f1b27c93d740267d42fe9573d62ad7511a3718414
|
Provenance
The following attestation bundles were made for stocksense-0.1.1.tar.gz:
Publisher:
publish.yml on mikejj-creation/stocksense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stocksense-0.1.1.tar.gz -
Subject digest:
13c0af1a09cb8de0416ebb28e949517131c92033a8f6a76317930580a13803d1 - Sigstore transparency entry: 1250763267
- Sigstore integration time:
-
Permalink:
mikejj-creation/stocksense@720300b8d6c8143c5f010cd210220398fa37b3c0 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/mikejj-creation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@720300b8d6c8143c5f010cd210220398fa37b3c0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file stocksense-0.1.1-py3-none-any.whl.
File metadata
- Download URL: stocksense-0.1.1-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ae7f37b36997a9fe056e32e31038a07da1e456fc4794e7effefeb0e03a98895
|
|
| MD5 |
a94e14346c625973007f3eccdbcf1603
|
|
| BLAKE2b-256 |
54e39ed29c05de48a66f35fd415bb0e10fb43a5fd06e9b70e925bdd67c3f8950
|
Provenance
The following attestation bundles were made for stocksense-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on mikejj-creation/stocksense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stocksense-0.1.1-py3-none-any.whl -
Subject digest:
3ae7f37b36997a9fe056e32e31038a07da1e456fc4794e7effefeb0e03a98895 - Sigstore transparency entry: 1250763307
- Sigstore integration time:
-
Permalink:
mikejj-creation/stocksense@720300b8d6c8143c5f010cd210220398fa37b3c0 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/mikejj-creation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@720300b8d6c8143c5f010cd210220398fa37b3c0 -
Trigger Event:
push
-
Statement type: