Skip to content

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

Free

For 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.

list_portfolios · list_watchlists

Free

Your saved portfolios and watchlists; every analysis tool accepts a saved portfolio by name.

backtest_portfolio

Free

Backtest with drifting weights, rebalancing policy and costs: CAGR, volatility, Sharpe, drawdowns, calendar years, per-holding metrics, every policy compared.

backtest_deep_dive

Free

Beta, 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

Free

Replay 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

Free

Preset or custom factor shocks with joint betas; how correlations between holdings changed over time.

watchlist_insights · country_risk_map

Free

The Watchlist analysis (trend, momentum, relative strength, duplicates, alerts) for any list; World Bank country risk indicators.

stress_test_portfolio · list_stress_scenarios

Essential

Your shocks on 45 benchmarks or on holdings, propagated jointly by market regime: expected move, 90% band, contributions, plausibility, historical analogues.

monte_carlo

Free

Bootstrap, GBM or t-copula paths: quantiles, VaR/CVaR, probability of loss and of large gains.

pac_simulator · list_model_portfolios

Free

Monthly plans with the Italian 26% tax and inflation; 23 model and 6 classic portfolios to start from.

technical_snapshot · price_history · search_tickers

Free

Trend, 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

Free

13F holders and quarterly changes, Form 4 insiders on your holdings; FCA net short positions in UK shares.

market_dashboard · daily_briefing · classify_ticker · suggest_benchmarks

Free

Cross-asset dashboard, today's published briefing, ticker classification and benchmark suggestions.

live_quotes · commodity_prices · methodology

Free

Latest 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

Essential

Aligned 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

Plus

OLS 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

Essential

12 objectives from Max Sharpe to Min CVaR and Risk Parity, with weight bounds, next to your current weights.

portfolio_analysis · portfolio_report_data · compare_portfolios

Essential

The full metric set, all the data of a MEDGE report, and several portfolios side by side with a benchmark.

portfolio_exposure · macro_event_risks

Plus

Measured regions, sectors and sensitivities; the 14 Focus events and what a bad month for each would do to you.

focus_overview · central_banks · sovereign_data

Plus

Event scores and market regime today; Fed, ECB, BoJ, BoE balance sheets; TIC, BIS, Z.1, IMF, DTS.

cot_positioning · cot_market · briefing

Plus

COT on your exposures or any market by name; a freshly generated briefing.

security_profile

Essential

One ticker in depth: classification, dividends, technical snapshot.

custom_briefing · briefing_followup · focus_custom_events

Plus

A 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 first

Save 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

Pro

The dashboards you built in the Workbench.

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. Results are analytics, not investment advice.

Connect from Claude Desktop

  1. 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. 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. 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. 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.

claude_desktop_config.json
{
  "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 30 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, read technical snapshots and 13F/Form 4 ownership, and classify tickers. Essential (€14.99/month) adds stress tests, optimisation, comparison, full metrics, report data and security profiles; Plus (€39.99/month, 7-day trial) adds measured exposure, 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?
Fifty-nine 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, FCA shorts and COT; 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