Your AI writes your morning market briefing

Deephaven + MCP = automated analysis of overnight moves, portfolio impact, and what to watch

April 17 2026

Margaret KennedyMargaret KennedyCommunications Director @Deephaven
AI-generated morning market briefing on a computer screen

It's 6:47 AM. You haven't had coffee yet. And you've already got 30 minutes of catch-up ahead of you — overnight futures, Asian closes, figuring out which position moved while you slept. By the time you have a clear picture, the window for acting on it is shrinking.

That 30 minutes is the most valuable part of your trading day. It shouldn't be manual.

Here's what we built: an AI analyst that runs at 6:30 AM without you. By the time you open Slack, it's already:

  • Scanned overnight futures and Asian market closes.
  • Checked your portfolio against pre-market moves.
  • Identified the three things you actually need to know.
  • Written a briefing in plain English.

Your AI analyst never sleeps. By the time you wake up, it's already done the work.

You could build this in a couple of hours on a Saturday afternoon — Deephaven, MCP, and a few free data APIs. It'll literally take you longer to perfect the prompt than to wire up the system.

What we're building

A system that:

  1. Pulls live market data — futures, indices, your watchlist.
  2. Connects to an AI agent via MCP.
  3. Generates a morning briefing automatically.
  4. Delivers it wherever you want (Slack, email, dashboard).

The AI doesn't just summarize numbers. It interprets them: "Tech futures are down 1.2% on NVIDIA guidance concerns — your NVDA position is likely to open lower."

The data layer

First, we need market data. This demo uses yfinance — no API key required. If you have a paid subscription (Bloomberg, Refinitiv, your broker's API), the swap is straightforward: replace the fetch function and keep everything else.

Note

New to Deephaven? Follow the quickstart guide first — it takes less than five minutes. Once your environment is running, install yfinance inside it.

Market data table in Deephaven

Add your portfolio:

Portfolio table in Deephaven

Join them for real-time P&L:

Portfolio with live P&L in Deephaven

Your portfolio now ticks with the market. That's the foundation. What matters is what you do with it.

Connect your AI analyst

With Deephaven MCP, your AI agent can query this data directly. Set up the connection:

Configure your AI tool (Claude, Cursor, etc.) to connect to your Deephaven session. Now the AI can see your tables, run queries, and analyze results.

But we don't want to ask questions manually every morning. We want the AI to do its job automatically.

The morning briefing prompt

The prompt is where most of the actual work happens. With Deephaven MCP connected, your AI can query the tables directly — so you tell it what to look for, not what numbers to crunch.

Paste this into your AI tool:

Automating the delivery

Deephaven handles the data side automatically — function_generated_table keeps market_data current without any intervention. The AI call is a separate concern.

The scheduling runs outside Deephaven — a Python script on your host machine, fired by cron at 6:30 AM. It connects to Deephaven via pydeephaven, pulls the live tables, and passes the data directly to Claude.

Every morning it:

  1. Connects to Deephaven and fetches market_data and portfolio_live.
  2. Builds the prompt with real numbers embedded.
  3. Sends it to Claude via the Anthropic API.
  4. Delivers the response to Slack.

Before scheduling, put your secrets in a protected env file. Embedding them inline makes them visible to other processes and easy to leak via backups or logs:

Then schedule it in cron:

What the briefing looks like

Here's what it actually produced:


☀️ Morning Market Briefing — April 14, 2026

Market overview: Indices are quiet. SPY, QQQ, DIA, and IWM all within ±0.25%. One significant mover: VIX down 5.5% to 18.1 — the only name crossing the 1% threshold. Volatility is compressing. No macro alarm bells today.

Your portfolio: Total exposure: $83,448. Today's projected P&L: -$169.

Key movers:

  • Worst: MSFT — down 0.59%, costing -$171 today. Responsible for nearly all of your daily loss. Still $7,828 above cost basis.
  • Best: NVDA — up 0.16%, adding +$15. Still deeply underwater ($450 cost vs. $189 price, -$13,034 unrealized), but the trend is your friend this morning.
  • AAPL, GOOGL, AMZN are essentially flat.

Watch today: MSFT is the only name that moves the needle on your daily P&L. If it can't hold $384, expect your -$169 to worsen. NVDA's continued upward momentum is the single most important thing for your long-term portfolio recovery. VIX at 18 with a 5% drop signals a calm open — no reason to be defensive.

Generated at 6:30 AM ET


The AI doesn't just read numbers. It tells you what they mean for your positions.

Why this matters

You could build pieces of this with other tools:

  • Data? Sure, you could use Pandas.
  • AI? ChatGPT can analyze if you paste in data.
  • Automation? Cron jobs exist.

But here's the difference: it all runs in one place.

The data is live. The AI queries it directly via MCP — no copy-paste, no stale exports. The scheduling is built in. When NVDA gaps down at 4 AM on earnings, your 6:30 briefing already knows.

Make it yours

Start smaller than you think you need to.

  1. Install Deephaven — free, 5 minutes.
  2. Set up MCP — connect your AI.
  3. Add your data feeds — Alpha Vantage, Yahoo Finance, or your broker's API.
  4. Customize the prompt — what do you want to know each morning?

Start simple: just ask about your portfolio.

You ask:

The AI responds:

The AI does the analysis. You drink your coffee.

By the time you open your laptop, the work is already done.

When you need more

Everything in this post works with Deephaven Community Core — free, open-source, run it on your laptop.

One thing to be realistic about: Community Core doesn't persist between restarts. If your container stops, the tables are gone and the setup code needs to run again. For a personal setup that runs reliably every morning, you'll want the container kept alive with --restart unless-stopped and a fixed PSK set at startup — not the auto-generated one that changes each time:

That handles reboots. You'll still need to re-run the Deephaven setup code once after any restart — something a simple startup script can handle.

So, here's when teams talk to us about Enterprise:

  • Persistent queries. Your setup code runs automatically every time the server starts — no manual intervention, no missed briefings.
  • Your data lives behind a firewall. Enterprise connects to internal feeds, data lakes, and trading systems without exposing them.
  • Multiple people need access. Role-based permissions, audit logging, and SSO for your whole desk.
  • Uptime matters. Managed infrastructure, monitoring, and support SLAs — your 6:30 AM briefing can't fail on earnings day.
  • Scale beyond one user. When your PM, analysts, and risk team all want their own AI briefings hitting the same real-time data.

Start with the personal setup. When you need it production-ready for a team, we can help with that too.

What's next

This is just the beginning. Once your AI analyst is connected:

  • Intraday alerts: "NVDA just broke below your stop-loss level."
  • Research on demand: "What's the correlation between VIX and my portfolio?"
  • Strategy backtesting: "How would this portfolio have performed in 2022?"

The data's already there. You'll run out of questions before you run out of answers.


Questions or want to share your own AI briefing setup? Join us on Slack.