Skip to main content

Claude AI Integration (MCP)

Connect Claude Desktop or Claude.ai directly to your Sable portfolio data using the Model Context Protocol (MCP).

What is this?

Sable MCP lets you query your portfolio data directly from Claude. Instead of logging into the Sable dashboard or Chat Sable, you can ask Claude questions and it will pull real-time data from your account.

You: "What's my YTD P&L?"

Claude: Your YTD P&L is $1,234,567. Here's the breakdown by strategy:
- Long Equity: +$890,000
- Options: +$344,567
...

Key Benefits

BenefitDescription
Natural ConversationAsk follow-up questions, get explanations, dive deeper
Your Data, Your ContextClaude sees your actual positions, trades, P&L
SecureOAuth 2.1 authentication, you control access
Read-OnlyClaude can query data but cannot execute trades

Requirements

  • Claude Plan: Pro, Max, Team, or Enterprise (required for custom connectors)
  • Sable Account: Active Sable user with portfolio data
  • Authentication: You'll sign in with your Sable credentials

How to Connect

Claude.ai (Web)

  1. Go to claude.ai and sign in
  2. Click your profile icon → Settings
  3. Select Connectors from the sidebar
  4. Click Add custom connector
  5. Enter the MCP URL:
    https://sable.aicholdings.com/api/mcp
  6. Click Connect
  7. Sign in with your Sable credentials when prompted
  8. Grant Claude access to your portfolio data

Claude Desktop

  1. Open Claude Desktop
  2. Go to Settings → Connectors
  3. Click Add custom connector
  4. Enter: https://sable.aicholdings.com/api/mcp
  5. Complete the sign-in flow

Claude Code (CLI)

claude mcp add sable -t http https://sable.aicholdings.com/api/mcp

What Claude Can Access

Once connected, Claude can query:

Data TypeExamples
Portfolio SummaryTotal positions, market value, allocation
Position DetailsIndividual holdings, cost basis, unrealized P&L
Trade HistoryRecent trades, buy/sell activity, execution details
P&L ReportsDaily, MTD, QTD, YTD performance
Top MoversBest and worst performers
Sector ExposureBreakdown by industry, sector
Risk MetricsLong/short exposure, net/gross

Example Conversations

Portfolio Overview

You: Give me a summary of my portfolio

Claude: Here's your current portfolio summary:

Total Positions: 47
Long Exposure: $12.5M
Short Exposure: $3.2M
Net Exposure: $9.3M

Top 5 Holdings:
1. AAPL - $1.8M (14.4%)
2. NVDA - $1.2M (9.6%)
...

Performance Analysis

You: How did I do this month?

Claude: Your MTD performance:

P&L: +$234,567 (+1.87%)

Winners: NVDA (+$89K), META (+$45K)
Losers: TSLA (-$23K), AMD (-$12K)

Would you like me to break this down by strategy?

Deep Dives

You: What's happening with my tech positions?

Claude: Your technology sector breakdown:

Total Tech Exposure: $4.2M (33.6% of portfolio)

By subsector:
- Semiconductors: $2.1M
- Software: $1.4M
- Hardware: $0.7M

MTD P&L for tech: +$156K (+3.7%)

Security

Authentication

  • OAuth 2.1 with PKCE (Proof Key for Code Exchange)
  • Your Sable credentials - same login as the web app
  • Scoped tokens - Claude only gets access to your data

Data Isolation

  • You only see data for organizations you belong to
  • Row Level Security (RLS) enforced at the database level
  • No cross-user data access

Permissions

  • Read-only access - Claude cannot modify data or execute trades
  • Revocable - Disconnect anytime from Sable settings

Revoking Access

To disconnect Claude from your Sable account:

  1. Go to Sable web app
  2. Navigate to Settings → Integrations
  3. Find "Claude AI" and click Revoke Access

Troubleshooting

"Connection Failed"

  • Verify you're on Claude Pro, Max, Team, or Enterprise plan
  • Check that the URL is exactly: https://sable.aicholdings.com/api/mcp
  • Try signing out of Sable and reconnecting

"No Data Returned"

  • Ensure your Sable account has portfolio data
  • Check that you have access to the organization you're querying

"Authentication Error"

  • Your session may have expired - try disconnecting and reconnecting
  • Verify your Sable credentials are still valid

Technical Details

For developers and technical users:

AspectDetails
ProtocolModel Context Protocol (MCP)
TransportStreamable HTTP
AuthOAuth 2.1 with PKCE via Supabase
Endpointhttps://sable.aicholdings.com/api/mcp
Tools14 query tools (portfolio, trades, P&L, etc.)

Available MCP Tools

ToolDescription
portfolio_summaryCurrent positions overview
position_detailDetails for specific ticker
trade_historyTrade history with filters
trade_summaryTrade statistics
daily_pnlDaily P&L with filters
pnl_summaryP&L grouped by dimension
period_pnlYTD/QTD/MTD/WTD P&L
top_moversBest/worst performers
sector_breakdownExposure by sector
exposure_summaryLong/short/net/gross
pnl_timeseriesP&L over time (for charts)
biggest_positionsTop holdings by value
natural_queryFree-form queries
query_helpAvailable query types