Income Screener MCP Server
Connects Claude to E\*Trade for income-oriented trading research, providing real-time quotes, option chain lookups, and put-sell candidate screening with annualized yield filters.
README
Income Screener MCP Server
A Python MCP server that connects Claude to E*Trade via pyetrade for income-oriented trading research:
- Real-time quotes (equities, preferreds, baby bonds)
- Option chain lookups
- Put-sell candidate screening with annualized yield filters
- Portfolio position monitoring
Architecture
Claude (Claude Code / Claude Desktop)
↓ MCP protocol (stdio)
server.py (FastMCP + pyetrade)
↓ OAuth1 REST
E*Trade API (api.etrade.com)
Prerequisites
- An active E*Trade brokerage account.
- Developer API keys from developer.etrade.com. Production keys take 3–5 business days to approve.
- Python 3.10+.
Setup
pip install -r requirements.txt
cp .env.example .env
# edit .env and set ETRADE_CONSUMER_KEY / ETRADE_CONSUMER_SECRET
python auth.py
auth.py walks the OAuth1 flow: it prints a URL (and tries to open your browser), you authorize the app on E*Trade's site, paste the verification code back into the terminal, and the resulting access tokens are written into .env.
Note: E*Trade access tokens expire at midnight ET. Re-run
python auth.pyeach morning before using the server.
Running the server
python server.py
The server speaks MCP over stdio and is designed to be launched by an MCP client (Claude Desktop, Claude Code, etc.) rather than run interactively.
Claude Desktop config
Add to claude_desktop_config.json:
{
"mcpServers": {
"income-screener": {
"command": "python",
"args": ["server.py"],
"cwd": "/path/to/pyetrade-mcp"
}
}
}
Tools
| Tool | Description |
|---|---|
get_quote(symbols) |
Real-time quotes for up to 25 symbols. |
get_option_expire_dates(symbol) |
Available option expirations for a symbol. |
get_option_chain(symbol, chain_type, expiry_date, strike_price_near, num_strikes) |
Pull an option chain window. |
screen_put_candidates(symbols, max_strike_pct, min_annual_yield, min_open_interest, months_out) |
Rank put-sell income candidates by annualized yield. |
get_portfolio() |
Positions for the first account on the authenticated profile. |
Annualized yield
screen_put_candidates computes (bid / strike) * (365 / DTE) and filters by min_annual_yield. Results sort highest-yield first.
Default watchlists
If you call screen_put_candidates with no symbols, it uses a built-in equity list (HPQ, HPE, PFE, T, VZ, F, INTC, DOW, KHC, WBA). A preferred/baby-bond watchlist is defined in server.py for use with get_quote.
Notes
server.pyusesdev=False(production API). E*Trade's sandbox does not return real option chain data.- Preferred stock symbol formatting (e.g.
JPM-CvsJPMpC) may vary; test against your specific tickers. - Calls in
screen_put_candidatesare serialized with a 0.5s delay to stay under E*Trade's rate limits.
Files
.
├── README.md
├── LICENSE
├── requirements.txt # pyetrade, mcp[cli], python-dotenv
├── .env.example # template — copy to .env and fill in
├── auth.py # one-shot OAuth token refresh
└── server.py # FastMCP server + all 5 tools
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.