Model Context Protocol
The finance MCP server for your AI assistant.
MEDGE Capital runs a production Model Context Protocol server. Connect Claude, ChatGPT, Cursor or any MCP-capable client and your assistant can call MEDGE’s own engines mid-conversation — backtests with real rebalancing, stress tests of your own scenarios, measured exposure, macro event risks, 13F and COT positioning — on your saved portfolios, authenticated with your account and gated by your subscription tier.
Available tools
get_started · portfolio_checkup · explain_term
FreeFor anyone new to investing: where to start, a plain-language check-up of a portfolio with euro examples, and any term explained simply. Guided prompts first_check, if_markets_fall and monthly_plan.
broker_positions
FreeCurrent stock and ETF positions of the brokerage account you connected on MEDGE (read-only), with weights ready to analyse or save.
superinvestor_portfolio · hedge_fund_consensus
FreeA tracked investor’s latest 13F (top holdings, new positions, largest buys and sells), and what the tracked hedge funds own, buy and sell in common.
crowded_trades · crash_recovery
FreeFutures where speculators are at a one-year extreme this week, with what followed past extremes; every S&P 500 fall of 10% or more and how long it took to recover.
list_portfolios · list_watchlists
FreeYour saved portfolios and watchlists; every analysis tool accepts a saved portfolio by name.
backtest_portfolio
FreeBacktest with drifting weights, rebalancing policy and costs: CAGR, volatility, Sharpe, drawdowns, calendar years, per-holding metrics, every policy compared.
backtest_deep_dive
FreeBeta, alpha and capture vs a benchmark, bear/neutral/bull and calm/turbulent regimes, worst and best windows, 15 crisis windows, effect of each holding.
what_if_backtest · ticker_sensitivity · period_attribution
FreeReplay the same backtest with other weights; beta to any ticker; what drove the portfolio between any two dates, holding by holding.
factor_scenario · list_factor_scenarios · rolling_correlation
FreePreset or custom factor shocks with joint betas; how correlations between holdings changed over time.
watchlist_insights · country_risk_map
FreeThe Watchlist analysis (trend, momentum, relative strength, duplicates, alerts) for any list; World Bank country risk indicators.
stress_test_portfolio · list_stress_scenarios
EssentialYour shocks on 45 benchmarks or on holdings, propagated jointly by market regime: expected move, 90% band, contributions, plausibility, historical analogues.
monte_carlo
FreeBootstrap, GBM or t-copula paths: quantiles, VaR/CVaR, probability of loss and of large gains.
pac_simulator · list_model_portfolios
FreeMonthly plans with the Italian 26% tax and inflation; 23 model and 6 classic portfolios to start from.
technical_snapshot · price_history · search_tickers
FreeTrend, momentum, volatility and levels of a ticker; end-of-day price summaries (last close, range, returns); exact symbols incl. European listings.
institutional_ownership · uk_short_positions
Free13F holders and quarterly changes, Form 4 insiders on your holdings; FCA aggregated net short positions per UK company, with their history.
market_overview · daily_briefing · classify_ticker · suggest_benchmarks
FreeCross-asset dashboard, today's published briefing, ticker classification and benchmark suggestions.
live_quotes · commodity_prices · methodology
FreeLatest prices with the change on the day (real-time for US listings in market hours); spot prices, returns and trend analysis for 25 commodities; the exact calculation conventions behind every number.
return_series · risk_decomposition · benchmark_comparison
EssentialAligned return series for your own models (up to 260 periods); Euler risk contributions, ES shares, EWMA covariance, PCA and effective bets; the portfolio against up to 6 benchmarks with a style-analysis blend.
factor_regression
PlusOLS on ETF factor proxies (style, global, macro, multi-asset or your own long-short pairs) with Newey-West t-stats, VIF, alpha and rolling betas.
optimize_portfolio
Free12 objectives from Max Sharpe to Min CVaR and Risk Parity, with weight bounds, next to your current weights.
compare_portfolios
FreeSeveral portfolios or tickers side by side, optionally with a benchmark.
portfolio_analysis · portfolio_report_data
EssentialThe full metric set and all the data of a MEDGE report.
portfolio_exposure
EssentialMeasured regions, sectors and sensitivities, holding by holding.
macro_event_risks
PlusThe 14 Focus events and what a bad month for each would do to you.
focus_overview · central_banks · sovereign_data
PlusEvent scores and market regime today; Fed, ECB, BoJ, BoE balance sheets; TIC, BIS, Z.1, DTS.
cot_positioning · cot_market · briefing
PlusCOT on your exposures or any market by name; a freshly generated briefing.
security_profile
FreeOne ticker in depth: classification, dividends, technical snapshot.
custom_briefing · briefing_followup · focus_custom_events
PlusA briefing on your topic and follow-up questions; your own events scored by the Focus engine and applied to a portfolio.
save_portfolio · create / update / add_to / remove_from_watchlist · update_watchlist_item
Asks firstSave a portfolio the AI built with you (1 on Free, more on paid plans); create, rename and organise watchlists with groups, notes, weights and price alerts. Marked as account changes, so your client asks for confirmation.
list_workbench_widgets
ProThe dashboards you built in the Workbench.
Five prompts: portfolio_review chains backtest, exposure, macro risks, a stress test and positioning into one written review; stress_scenario turns a scenario described in words into Stress Lab shocks; first_check, if_markets_fall and monthly_plan guide people new to investing, in plain words. Results are analytics, not investment advice.
Connect from Claude Desktop
- 1
Generate a personal API key
Sign in to MEDGE Capital and open Account → API keys. Create a key with a label like "Claude Desktop" and copy it — the plaintext is shown exactly once.
- 2
Edit the Claude Desktop config file
Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS (or %APPDATA%\Claude\claude_desktop_config.json on Windows) and add the medge server entry with your key as the Bearer token.
- 3
Restart Claude Desktop completely
Quit the app fully (Cmd+Q / system-tray Quit) and reopen it — the config is read at startup only.
- 4
Verify the tools appear
In a new chat, open the tools panel: the medge server lists its tools (list_portfolios, backtest_portfolio, stress_test_portfolio and the others). Ask "list my MEDGE portfolios and backtest the first one" to test.
{
"mcpServers": {
"medge": {
"url": "https://medgecapital.com/api/mcp/mcp",
"headers": {
"Authorization": "Bearer YOUR_KEY_HERE"
}
}
}
}Connect from Claude.ai (web)
Claude.ai custom connectors use OAuth 2.1 — no key to paste. Go to Settings → Connectors → Add custom connector, enter https://medgecapital.com/api/mcp/mcp, and Claude walks the OAuth flow: you sign in on medgecapital.com, click Authorize on the consent screen, and the tools appear in your chat. Access tokens expire after 1 hour and refresh automatically for up to 90 days.
Cursor, Cline, Continue and Zed use the same URL with the Bearer header — the exact same config shape as Claude Desktop, placed in each client’s MCP settings file.
Security & keys
Per-user keys (up to 5 active), shown once at mint time, stored server-side only as SHA-256 hashes. Revoke any key individually without touching the others.
Every call is authenticated, tier-gated and rate-limited server-side. Only six tools can change your account (save a portfolio, edit watchlists) and clients ask before using them; billing and account data are never exposed.
OAuth 2.1 with PKCE for browser clients: short-lived access tokens, rotating refresh tokens, and a consent screen that shows exactly which account is being linked.
Frequently asked questions
- What is the Model Context Protocol (MCP)?
- MCP is an open protocol that lets AI assistants like Claude and ChatGPT call external tools over HTTP. An MCP server exposes typed tools the model can invoke mid-conversation. MEDGE runs one at https://medgecapital.com/api/mcp/mcp, so your assistant can pull real MEDGE analytics into a chat instead of guessing.
- Is the MEDGE MCP server free to use?
- The server is available on every plan. On Free you can list your portfolios and watchlists, run backtests, Monte Carlo and optimisation, compare portfolios, read security profiles, technical snapshots and 13F/Form 4 ownership, and classify tickers. Essential (€14.99/month) adds stress tests, full metrics, report data and measured exposure; Plus (€39.99/month, 7-day trial) adds macro event risks, COT, central banks, sovereign data and briefings; Pro adds the Workbench. Each tool has a per-user hourly limit, three times higher on Advisor.
- Which AI clients are supported?
- Any MCP-capable client. Claude Desktop, Cursor, Cline, Continue and Zed connect with a personal API key (Bearer header). Claude.ai web connects as a custom connector via OAuth 2.1 — you authorize it on medgecapital.com with one click. ChatGPT supports MCP connectors on paid plans.
- What tools does the server expose?
- Sixty-seven tools covering the whole platform, for beginners and experts alike: your portfolios and watchlists; backtests, deep dives, what-if replays, stress tests, Monte Carlo, optimisation, comparison, full metrics and report data; measured exposure and macro event risks; technical snapshots, prices, dashboard, security profiles; 13F, Form 4, superinvestor portfolios and hedge fund consensus, FCA shorts, COT and crowded trades; stock market falls and recoveries; positions from your connected broker; Focus, central banks, and sovereign data; the PAC simulator and model portfolios; live quotes and commodity prices; and quantitative tools for return series, factor regressions, risk decomposition and benchmark comparison. Six tools can change your account (save a portfolio, create, organise or edit watchlists) and are marked so your AI client asks before using them. Five prompts chain the tools: portfolio_review and stress_scenario for a full analysis; first_check, if_markets_fall and monthly_plan for people new to investing, explained in plain words.
- Can I revoke access?
- Yes, instantly. API keys are per-user and individually revocable from Account → API keys — revoking one key does not affect your other clients. OAuth connections use short-lived access tokens (1 hour) that renew while the app uses them, for up to 90 days; each connected app can be disconnected from Account → API keys, and revoked credentials stop working on the next call. Changing your password can disconnect every key and app at once.
- What data can the AI access through MCP?
- Your saved portfolios, watchlists and Workbench widgets, the analytics the tools compute on them, and market and regulatory data. The AI can save a portfolio or edit a watchlist only through the six tools marked as account changes, which MCP clients confirm with you first; it cannot delete portfolios and never sees billing, email or other account data. Every call is authenticated, tier-gated and rate-limited server-side.
Put MEDGE in your AI’s toolbox.
Free account, key in one click, connected in five minutes. Explore the rest of the platform while you’re at it.
Start free