Finmagine MCP Server

The MCP server for Indian & US stock market intelligence.

NSE/BSE + NYSE/NASDAQ — REST API + MCP in one endpoint.

🇮🇳 60 REST + 60 MCP — Indian markets 🇺🇸 26 REST + 26 MCP — 6,400+ US stocks ✦ Claude · Cursor · AI-ready Free · $49 · $149

API & MCP Documentation?

60 Indian + 26 US REST endpoints · 86 MCP tools (60 India + 26 US) · NSE/BSE + NYSE/NASDAQ · AI agents, quant devs, algo traders.

Overview

The Finmagine API covers both Indian and US equity markets. For India, the moat is ECS (Earnings Catalyst Score), PEAD (post-earnings drift signals), RRG (Relative Rotation Graph sector trajectories), management tone (NLP-scored concall sentiment), conviction ranking, and concall decoder — all pre-computed and queryable in a single round-trip. For the US, 6,400+ NYSE/NASDAQ stocks with financials, ratios, momentum, ECS, insider trades, SEC filings, 13F superinvestor holdings, and AI research reports. All data is delivered via Model Context Protocol (MCP) so AI agents can run end-to-end research workflows without writing code.

REST API: 86 endpoints total — 60 Indian equities (/api/v1/company/…, /api/v1/market/…, /api/v1/account/…) plus 26 US markets (/api/v1/us/…). MCP: 86 tools (60 India + 26 US) via the same endpoint, covering the full feature set including natural language screening, 13F holdings, AI research reports, and BYO LLM key management.

Base URLhttps://finmagine.com/api/v1
MCP endpointhttps://finmagine.com/api/mcp.php
FormatJSON (all responses)
AuthAPI key — header or query param
VersioningURL-based (/v1/)
Agent recipes/agent-recipes.json — 10 curated, verified-executable multi-tool workflows with tier/status/quota/runtime/async/LLM requirements and step-by-step chaining hints (schema)

Authentication

All endpoints (except GET /status) require an API key. Three ways to pass it:

MethodHeader / ParameterExample
Header (recommended)X-Api-KeyX-Api-Key: fmk_abc123…
Bearer tokenAuthorizationAuthorization: Bearer fmk_abc123…
Query parameter?apiKey=?symbol=RELIANCE&apiKey=fmk_abc123…

Keys follow the format fmk_ + 32 hex characters. Generate a key in the portal →

Rate limits

Limits are enforced per API key, with both daily and hourly counters. Counters reset automatically — no action needed.

TierRequests / dayRequests / hourCompany universe
Free501025 NSE blue chips + 25 S&P 500 mega-caps
Premium Web500100Full universe
Professional Web2,000400Full universe
API Pro1,000200Full universe
API Max5,0001,000Full universe + Screener

Rate limit status is returned in every response header:

X-RateLimit-Limit-Daily:  1000
X-RateLimit-Limit-Hourly: 200
X-RateLimit-Remaining-Daily:  847
X-RateLimit-Remaining-Hourly: 193

Response format

Every successful response is wrapped in a consistent envelope:

{
  "data": { /* endpoint payload */ },
  "meta": {
    "tier":                      "api_pro",
    "requests_remaining_today":  847,
    "requests_remaining_hour":   193,
    "timestamp":                 1748598000
  }
}

Use meta.requests_remaining_today and meta.requests_remaining_hour to implement graceful back-off in scripts before hitting HTTP 429. Both counters reset automatically — daily at midnight IST, hourly on the hour.

Error handling

All errors return a consistent JSON envelope with no data key:

{
  "error":   true,
  "status":  401,
  "message": "Invalid or missing API key."
}
StatusMeaningWhat to do
400Missing or invalid parameterCheck required params and value ranges in the endpoint reference
401Invalid or revoked API keyVerify the fmk_ key is correct and active in the portal
403Tier does not have access to this endpointUpgrade at pricing.php — the error message names the required tier
404Symbol or resource not foundUse search_companies / GET /companies to verify the correct NSE symbol
429Rate limit exceeded (hourly or daily)Read meta.requests_remaining_hour in responses to catch this before it happens; back off and retry after the next hour boundary
503Database unavailableTransient — retry with exponential back-off

Free tier symbols

Free-tier keys can only query these 25 large-cap NSE symbols. Upgrade to any paid plan for the full universe.

RELIANCE  TCS       HDFCBANK  INFY      ICICIBANK
HINDUNILVR BAJFINANCE SBILIFE  KOTAKBANK AXISBANK
ASIANPAINT LT        NESTLEIND MARUTI    TATAMOTORS
SUNPHARMA WIPRO      ONGC      NTPC      POWERGRID
COALINDIA  DIVISLAB  CIPLA     DRREDDY   TITAN

MCP Server

The Finmagine MCP server exposes 86 tools consumable by Claude, Cursor, VS Code, and any MCP-compatible AI agent — 60 for Indian markets and 26 for US markets. It is the only MCP server covering both NSE/BSE and NYSE/NASDAQ equity intelligence.

MCP endpoint: https://finmagine.com/api/mcp.php — Streamable HTTP (JSON-RPC 2.0 over POST). Same API key required.

MCP Tool reference — Indian (41 tools)

All 86 tools are visible in the tools/list manifest for discovery. Access is enforced at call time — calling a pro tool on a free key returns an error in the tool result, not a transport-level error. Full per-endpoint reference (params, examples): API Reference →

ToolEquivalent RESTTier
search_companiesGET /companiesAll
get_company_profileGET /company/profileAll (25 free symbols)
get_financialsGET /company/financialsAll (25 free symbols)
get_ratiosGET /company/ratiosAll (25 free symbols)
get_momentumGET /company/momentumAll (25 free symbols)
get_ai_quarterly_summaryGET /company/ai-summaryapi_max
get_market_breadthGET /market/breadthAll
get_market_momentumGET /market/momentumAll
get_market_sectorsGET /market/sectorsAll
screen_stocksGET /screenerapi_max
get_ecs_scoreGET /company/ecsapi_pro+
get_guidance_toneGET /company/guidance-toneapi_pro+
get_order_winsGET /company/order-winsapi_pro+
get_insider_tradesGET /company/insider-tradesapi_pro+
get_banking_kpisGET /company/banking-kpisapi_pro+
get_company_peadGET /company/peadapi_pro+
get_conglomerateGET /company/conglomerateapi_pro+
get_pledge_historyGET /company/pledge-historyapi_pro+
get_ecs_leaderboardGET /market/ecsapi_pro+
get_conviction_rankingGET /market/convictionapi_pro+
get_pead_candidatesGET /market/peadapi_pro+
get_sector_rrgGET /market/rrgapi_pro+
get_industry_stagesGET /market/industry-stagesapi_pro+
get_rs_changesGET /market/rs-changesapi_pro+
get_order_wins_feedGET /feeds/order-winsapi_pro+
get_insider_feedGET /feeds/insiderapi_pro+
get_bulk_block_dealsGET /feeds/bulk-block-dealsapi_pro+
get_circuit_stocksGET /feeds/circuitAll
get_corporate_actions_feedGET /feeds/corporate-actionsapi_pro+
get_daily_pricesGET /company/daily-pricesapi_pro+
get_shareholdingGET /company/shareholdingapi_pro+
get_corporate_actionsGET /company/corporate-actionsapi_pro+
get_index_constituentsGET /market/index-constituentsAll
get_top_moversGET /market/top-moversAll
get_company_scorecardGET /company/scorecardapi_pro+
get_breakout_conditionsGET /market/breakout-conditionsAll
get_management_toneGET /company/management-toneapi_pro+
get_sector_kpisGET /company/sector-kpisapi_pro+
get_ai_company_profileGET /company/ai-profileapi_max
get_concall_decoderGET /company/concall-decoderapi_max
list_byo_keysGET /account/byo-keysAll
save_byo_keyGET /account/byo-key/saveAll
remove_byo_keyGET /account/byo-key/removeAll
set_preferred_byo_keyGET /account/byo-key/set-preferredAll
test_byo_keyGET /account/byo-key/testAll
market_trader_scanGET /market/trader-scanapi_pro+
start_presetGET /presets/startapi_pro+
check_preset_statusGET /presets/pollapi_pro+
list_preset_runsGET /presets/listapi_pro+
list_preset_catalogGET /presets/catalogAll
cancel_presetGET /presets/cancelapi_pro+
fast_scan_committeeGET /committee/fast-scanapi_pro+
start_committeeGET /committee/startapi_pro+
check_committee_statusGET /committee/pollapi_pro+
get_committee_reportGET /committee/reportapi_pro+
list_committee_runsGET /committee/listapi_pro+
cancel_committeeGET /committee/cancelapi_pro+
compute_committee_riskGET /committee/risk-audit/computeapi_pro+
allocate_committee_riskGET /committee/risk-audit/allocateapi_pro+
screen_natural_languageMCP only, no REST routeAll

MCP Tool reference — US Markets (24 tools)

US tools cover 6,400+ NYSE/NASDAQ stocks and each has a REST (/api/v1/us/…) equivalent too — see the API Reference page for full REST + MCP examples side by side. Free tier is restricted to 25 S&P 500 mega-caps (AAPL, MSFT, AMZN, NVDA, GOOGL, META, TSLA, JPM, V, UNH, AVGO, LLY, XOM, MA, HD, PG, COST, MRK, ABBV, CVX, KO, PEP, ORCL, BAC, JNJ). All pro/max tools require api_pro or api_max respectively.

ToolDescriptionTier
us_search_companiesSearch US stocks by name or ticker symbol. Returns symbol, name, sector, industry, market cap (USD billions), and scorecard score. No tier restriction on search — free keys get 10 results, paid keys get up to 50.All
us_get_company_profileFull profile for a US stock: price, market cap (USD billions), 52-week range, RS rating, P/E, ROE, operating margin, scorecard score, index membership (SP500/NDX100/DOW30). Free tier restricted to 25 S&P 500 mega-caps: AAPL, MSFT, AMZN, NVDA, GOOGL, META, TSLA, JPM, V, UNH, AVGO, LLY, XOM, MA, HD, PG, COST, MRK, ABBV, CVX, KO, PEP, ORCL, BAC, JNJ.All (25 free symbols)
us_get_market_breadthUS market breadth snapshot: percentage of stocks above SMA-50 and SMA-200, total stocks tracked, and sector-level breakdown. Use this to gauge overall US market health before screening.All
us_get_market_sectorsUS sector summary: stock count, average scorecard score, average RS rating, and breadth (% above SMA-50 and SMA-200) for each GICS sector. Use to identify leading vs lagging sectors.All
us_get_top_moversUS top gainers or losers by recent price return. Direction: gainers (default) or losers. Period: 1w (1 week) or 1m (1 month, default). Returns symbol, name, sector, current price, return %, RS rating, market cap in USD billions.All
us_get_breakout_conditionsS&P 500 (SPY) technical posture: is SPY above SMA-50 and SMA-200? Returns BULL_CONFIRMED, ABOVE_SMA50_ONLY, or BEAR_CONFIRMED regime with SPY price, EMA-20, and RSI-14.All
us_get_financialsHistorical financials for a US stock — income statement, balance sheet, or cash flow — annual or quarterly. Key income fields: revenue, netinc, epsdil, ncfo, capex, fcf. Key balance fields: assets, debtnc, assetsc. Requires api_pro.api_pro+
us_get_ratiosFinancial ratios for a US stock with classification (Excellent/Good/Average/Poor) and peer percentile. Covers valuation (P/E, P/B, EV/EBITDA), profitability (ROE, margins), growth, leverage, and liquidity. Requires api_pro.api_pro+
us_get_momentumTechnical momentum profile for a US stock: RS rating, 1W/1M/3M returns, RSI-14, EMA-20, SMA-50, SMA-200 with above/below flags, distance from 52-week high, and latest ECS score. Requires api_pro.api_pro+
us_get_company_scorecardFinmagine scorecard for US stocks: 5-dimension score (financial_health, growth_prospects, competitive_position, management_quality, valuation) and overall 0–10 score. Omit symbol for ranked list. Requires api_pro.api_pro+
us_screen_stocksScreen US stocks by fundamentals, technicals, and scorecard. Filters: sector, market cap (USD billions), P/E, ROE, operating margin, RS rating, above SMA-50/200, debt/equity, minimum scorecard score. Returns up to 50 results. Requires api_pro.api_pro+
us_get_ecs_scoreEarnings Catalyst Score (ECS) for a US stock: composite 0–100 score reflecting quality and surprise of recent earnings. Includes revenue/net income YoY and QoQ, percentile ranks, PEAD signal, and actual vs expected EPS. Requires api_pro.api_pro+
us_get_insider_tradesRecent SEC Form 4 insider transactions for a US stock: director/officer name, title, transaction type, shares, price per share, and total value USD. Requires api_pro.api_pro+
us_get_conviction_rankingUS stocks appearing in multiple screener presets simultaneously — a quantitative measure of multi-factor conviction. Higher scan_count = passes more screens at once. Requires api_pro.api_pro+
us_get_index_constituentsMembers of SP500, NDX100 (Nasdaq 100), or DOW30 (Dow Jones 30). Returns symbol, name, GICS sector, RS rating, market cap, P/E, and scorecard score. Use index_name: SP500, NDX100, or DOW30. Requires api_pro.api_pro+
us_get_order_winsContract wins and significant agreements for US companies sourced from SEC 8-K filings. Returns contract type, value (USD millions), client name, segment, geography, AI summary, and confidence. Omit symbol for recent cross-company feed. Requires api_pro.api_pro+
us_get_management_toneManagement tone analysis across recent earnings calls for a US company: per-quarter tone_read, top messages, dodged topics, and investor lens. Derived from AI-decoded earnings calls. Requires api_pro.api_pro+
us_get_ai_quarterly_summaryAI-generated one-pager for a US company's most recent earnings: verdict, key KPIs, what went right, what to watch, management guidance, and investor lens. Faster than reading the full report. Requires api_pro.api_pro+
us_get_ai_company_profileDeep AI-generated company profile for a US stock: 10-section analysis covering business model, financials, competitive moat, management quality, risks, and investment thesis. Updated each earnings cycle. Requires api_max.api_max
us_get_full_reportFull AI research report for a US stock with COMPELLING/WATCHLIST/AVOID stance. Complete fundamental analysis narrative in plain text. Requires api_max.api_max
us_screen_natural_languageScreen US stocks using plain English. Examples: "profitable large-cap tech stocks with low debt", "healthcare companies with high ROE and strong earnings growth". Converts the query to filter criteria and returns matching stocks. Uses Groq/Gemini (no Finmagine paid LLM keys). Requires api_max.api_max
us_get_13f_holdingsSuperinvestor 13F holdings data. If symbol provided: shows which tracked funds hold it with value and portfolio %. If no symbol: lists all 14 tracked superinvestors (Berkshire, Pershing, Scion, Appaloosa, Duquesne, etc.). Requires api_max.api_max
us_get_sec_feedRecent SEC filings from EDGAR: 8-K material events, 10-K annual reports, 10-Q quarterly reports. Filter by symbol, form type, and lookback days. Requires api_max.api_max
us_get_concall_decoderStructured earnings call decoder for a US company: tone_read, top 3 management messages, topics dodged or downplayed, tone shifts from prior quarter, key numbers from Q&A, management outlook, and investor lens. Requires api_max.api_max
us_market_momentumTop US stocks ranked by RS rating (IBD-style 1-99 vs full US universe). RS >= 90 = elite momentum. No tier gate — source data is fully public.All
us_market_trader_scanUS stocks matching a precomputed technical scan: Stage 2, VCP, Near-High, High Volume, or Breakout Readiness Score (BRS). Mirrors /us/picks/?list=trader. Requires api_pro (source data is premium-gated on the web).api_pro+

Add to claude.ai (web)

The claude.ai web app supports custom MCP connectors natively. No extensions or config files needed.

Step 1 — Copy your connector URL

Append your API key as a query parameter to the MCP endpoint:

https://finmagine.com/api/mcp.php?apiKey=fmk_YOUR_KEY

Replace fmk_YOUR_KEY with your actual key from the API portal. The ?apiKey= param is required — do not use the Authorization field in Advanced settings (claude.ai treats that as an OAuth client ID, not a static header).

Step 2 — Add the connector

In claude.ai, go to Settings → Connectors and click the + button, then:

FieldValue
NameFinmagine Market Intelligence
Remote MCP server URLhttps://finmagine.com/api/mcp.php?apiKey=fmk_YOUR_KEY
Advanced settingsLeave empty

Click Add. The connector should appear under Web in your connectors list and show 86 available tools (60 Indian + 26 US).

Step 3 — Enable it in a conversation

Open a new chat. Click the tools or connectors button in the input bar and toggle Finmagine Market Intelligence on. Claude will now call the tools automatically when you ask market questions.

Add to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "finmagine": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://finmagine.com/api/mcp.php?apiKey=fmk_YOUR_KEY"]
    }
  }
}

Replace fmk_YOUR_KEY with your API key. Restart Claude Desktop — mcp-remote is downloaded automatically on first run (requires Node.js). The Finmagine tools will appear in the tools panel.

Sample prompts

Paste either prompt into Claude (with the Finmagine connector active).

Quick start — core tools Free

Exercises: get_market_breadth · get_market_momentum · search_companies · get_company_profile · get_financials · get_ratios · get_momentum

📋 Copy and paste into Claude with Finmagine connector enabled:

I want a complete market intelligence briefing for the Indian stock market. Please do the following in sequence:

1. Market context
Get the last 20 days of market breadth data. Summarise the trend — are we in a broad advance or a selective market? Is the % of stocks above their 40-day MA expanding or contracting?

2. Momentum leaders
Pull the top 20 momentum stocks by RS rating. Which sectors are dominating? Flag any with RS rating above 85.

3. Sector hunt
Search for companies in the "Capital Goods" sector with market cap above ₹5,000 Cr and RS rating above 60.

4. Deep dive — Pick the highest RS-rated stock from step 3 and simultaneously pull:
  a. Full company profile — note PE, ROCE, debt/equity, and proximity to 52-week high
  b. Last 6 quarters of financials — is revenue and OPM% expanding or compressing?
  c. Financial ratios — flag any red flags: Altman Z-score below 1.8, pledge above 20%, or D/E above 1
  d. Momentum signals — is it above its 10 and 21 EMA? Is RS improving or deteriorating over 30 days?

Finally, synthesise: given the breadth environment from step 1, would you be aggressive or selective in new positions? Does the step 4 stock look actionable on this evidence?

📄
Sample output — real run · 30 May 2026
India Market Intelligence Briefing
Nifty 50 @ 23,548 · Regime: SELECTIVE · Target: GVT&D (RS 98, ROCE 76.4%) · Quality screen: 12 stocks · 4 pages
Open PDF →

Full-coverage workflow — 42 of 60 India tools (read-only) api_max

Works when the Finmagine connector is active — Claude calls each tool in turn and narrates results. Scoped to read-only tools only — the remaining 18 (BYO LLM keys, Investment Committee, Research Presets) spend real quota or provider tokens and are covered in their own guides below.

Tier requirements for this workflow

api_max screen_stocks, screen_natural_language, get_ai_quarterly_summary, get_ai_company_profile, get_concall_decoder and all AI content tools — full 42-tool prompt requires this tier
api_pro Market setup, sector rotation, event flow, and single-stock intel tools work on this tier — about 31 of the 42 tools
api_base screen_natural_language, momentum, breadth, and core company tools — about 20 tools
free get_breakout_conditions, get_market_sectors, get_top_movers, get_circuit_stocks — 4 tools only

⚠️ Do not ask Claude to build an artifact or write code — paste this as a plain question and let the connector do the work.

📋 Copy and paste into Claude with Finmagine connector enabled:

Using your Finmagine tools, give me a complete Indian market intelligence brief. Call the tools in the order below, share what each one returns, and weave the findings together as you go.

Market setup — Start by checking whether today is a good day for breakouts (get_breakout_conditions, last 5 days). Then pull 20 days of breadth data (get_market_breadth) and tell me whether the market is broadening or narrowing on the 10-day, 20-day and 40-day MA lines. Pull today's top movers (get_top_movers) and any circuit stocks (get_circuit_stocks) — flag if any circuit name is in the Nifty 500. Get the top 30 momentum stocks (get_market_momentum) and call out any with RS ≥ 90. Finally, pull the Stage 2 + Near High trader scan (market_trader_scan, scan_type=stage2NearHigh) and note any overlap with the momentum leaders above.

Sector rotation — Call get_sector_rrg and tell me which sectors are Leading, Improving, Weakening, and Lagging right now. Then pull get_industry_stages and list every industry in Stage 2. Do the Stage 2 industries match the Leading sectors? Get the Nifty 50 constituents (get_index_constituents) and show which of the 50 large-caps sit in Stage 2 industries. Call get_rs_changes and flag any stock with an RS gain above 15 points in the last 20 days. Finally, pull get_market_sectors and confirm the Leading sectors from the RRG step also rank near the top by average RS rating.

Event flow — Check the order wins feed (get_order_wins_feed, last 14 days), insider feed (get_insider_feed, last 30 days), bulk and block deals (get_bulk_block_deals, last 7 days), and recent corporate actions (get_corporate_actions_feed, last 30 days — this is a look-back feed, not a forward calendar). Note any promoter buying in a top-RS stock. Then pull PEAD candidates (get_pead_candidates), the ECS leaderboard (get_ecs_leaderboard, top 15), and the conviction ranking (get_conviction_ranking, top 20). Is there any stock that appears in more than one of these three lists?

Single-stock deep dive — From the conviction ranking, pick the stock with the highest RS rating that is also in a Stage 2 industry. Call it TARGET. Now call every company-level tool on TARGET and summarise what each one reveals:
get_company_profile · get_financials (8 quarters) · get_ratios · get_momentum · get_company_scorecard · get_daily_prices (90 days)
get_ecs_score · get_company_pead · get_ai_quarterly_summary (latest quarter)
get_guidance_tone · get_management_tone · get_concall_decoder · get_ai_company_profile
get_sector_kpis (last 4 quarters) · get_shareholding (last 4 quarters) · get_pledge_history · get_insider_trades
get_corporate_actions · get_order_wins · get_conglomerate
If TARGET is a bank or NBFC, also call get_banking_kpis and report NIM, GNPA, CASA trends.

Screen and shortlist — Run screen_stocks with ROCE ≥ 18, PE ≤ 40, RS ≥ 65, MCap ≥ ₹1,000 Cr, D/E ≤ 1, sorted by RS descending — top 15 results. Then call screen_natural_language with a plain-English query that captures the key theme from the sector rotation step — for example, "high-quality mid-caps in [top Leading sector] with improving momentum and low debt" — and return the top 10 results. Do any stocks appear in both the parametric screen and the NL screen? Those are the highest-conviction names. Finally call search_companies filtered to the top Leading sector from the RRG, MCap above ₹2,000 Cr.

Synthesis — Combine everything into: (1) market regime verdict — offensive, defensive, or selective? (2) three actionable ideas — one from the screener, one from the conviction ranking, one from PEAD, each with a one-sentence thesis and the key risk; (3) a Strong Buy / Buy / Hold / Avoid verdict on TARGET with the single deciding factor; (4) a five-stock watchlist — RS improving, Stage 2, with a catalyst from the corporate actions feed.

📄
Sample output — real run · 30 May 2026
India Market Intelligence Brief
Nifty 50 @ 23,548 · Regime: SELECTIVE · Target: NATIONALUM (Hold) · Best idea: NATCOPHARM · 5 pages · all 39 tools called
Open PDF →

Tools exercised: get_breakout_conditions · get_market_breadth · get_top_movers · get_circuit_stocks · get_market_momentum · market_trader_scan · get_sector_rrg · get_industry_stages · get_index_constituents · get_rs_changes · get_market_sectors · get_order_wins_feed · get_insider_feed · get_bulk_block_deals · get_corporate_actions_feed · get_pead_candidates · get_ecs_leaderboard · get_conviction_ranking · get_company_profile · get_financials · get_ratios · get_momentum · get_company_scorecard · get_daily_prices · get_ecs_score · get_company_pead · get_ai_quarterly_summary · get_guidance_tone · get_management_tone · get_concall_decoder · get_ai_company_profile · get_sector_kpis · get_shareholding · get_pledge_history · get_insider_trades · get_corporate_actions · get_order_wins · get_conglomerate · get_banking_kpis · screen_stocks · screen_natural_language · search_companies

The remaining 18 tools power 3 systems — BYO LLM key setup, Research Presets, and the Investment Committee. Each gets its own sample prompt below, since each genuinely exercises several tools together. Full technical detail (encryption, quotas, response shapes) lives in their dedicated guides: BYO LLM Key Management · Research Presets · Investment Committee. All 3 apply equally to US symbols via a market parameter.

BYO LLM Key Setup — walkthrough prompt Free

Exercises: list_byo_keys · save_byo_key · test_byo_key · set_preferred_byo_key — the required first step before either Research Presets or the Investment Committee will run.

⚠️ Have a real API key ready from whichever provider you plan to use — anthropic, openai, gemini, groq, deepseek, or openrouter all work identically. Claude will ask you to paste it mid-conversation. That's expected here; save_byo_key is the tool built for exactly this.

📋 Copy and paste into Claude with Finmagine connector enabled:

Help me set up a BYO LLM provider key on Finmagine so I can run Research Presets and the Investment Committee. Do this step by step:

1. Check what I already have
Call list_byo_keys and tell me which providers I already have saved, and which one (if any) is currently my preferred default.

2. Ask which provider I want
If I don't already have a saved key I want to use, ask me which provider I'd like to set up — the options are anthropic, openai, gemini, groq, deepseek, or openrouter. Wait for my answer before continuing.

3. Save the key
Ask me to paste my API key for the provider I chose. Once I do, call save_byo_key with that provider and test_and_save:true so it's verified against the real provider in the same step. Tell me clearly what the verification result says.

4. Set it as my default
Call set_preferred_byo_key with that same provider so it becomes my account-wide default for Presets and Committee runs.

Finally, call list_byo_keys one more time and confirm the key shows up masked (never the raw value) with the right provider set as preferred.

Run a Research Preset end-to-end api_pro

Exercises: list_preset_catalog · start_preset · check_preset_status (polled repeatedly).

⚠️ Spends real quota (10 runs/24h, shared with the web UI) and calls your saved LLM provider. Requires a saved BYO key — run the BYO Key prompt above first. This will genuinely take up to ~15 minutes to finish; don't close the conversation.

📋 Copy and paste into Claude with Finmagine connector enabled:

Run a Finmagine Research Preset for me end-to-end:

1. Show me the options
Call list_preset_catalog and list all 8 presets with their runtime and agent count.

2. Start the fastest one
Call list_byo_keys to see which provider I have saved, then call start_preset with preset "technical_analysis_panel" (the fastest, ~15 min), goal "Assess whether Reliance Industries' current price action supports a fresh long position at current levels", and that saved provider.

3. Poll until done
Call check_preset_status with the returned vibe_run_id. If status is "running", wait roughly 30 seconds and check again — keep doing this until status is "completed" or "failed". Tell me the status each time you check.

Finally, once completed, show me the full final_report and summarise the key conclusion in two sentences.

📄
Sample output — real run · 29 Jul 2026
Technical Analysis Panel: Reliance Industries (RIL) Assessment
Completed on first poll (3/3 agents done) · Key levels: breakout above 2,900 targets 3,050, stop-loss below 2,650 · RSI 60, bullish MACD crossover
View transcript Open PDF →

Investment Committee — Fast Scan, then a full run api_pro

Exercises: fast_scan_committee · start_committee · check_committee_status (polled repeatedly) · get_committee_report.

⚠️ Part 1 (Fast Scan) is completely free — zero LLM tokens, no quota, safe to run anytime. Part 2 (the real Committee run) spends real quota (5 runs/24h) and calls your saved LLM provider — requires a saved BYO key and can take up to ~10 minutes. Feel free to stop after Part 1 if you just want to see the free tooling work.

📋 Copy and paste into Claude with Finmagine connector enabled:

Run Finmagine's Investment Committee analysis for me on RELIANCE, TCS, and INFY:

Part 1 — Free Fast Scan
Call fast_scan_committee with symbols RELIANCE, TCS, INFY. For each stock, show me the committee_signal, agreement_score, and the gate result for each of the 3 lenses (quality_compounder, india_growth, value_safety). Tell me which stock looks strongest on this free, deterministic scan.

Part 2 — Full Committee run on the strongest candidate
Call list_byo_keys to see which provider I have saved, then call start_committee with just that one symbol and that saved provider. Then call check_committee_status with the returned job_id — if status is "running", wait roughly 30 seconds and check again, repeating until status is "completed" or "failed", telling me the status each time.

Finally, once completed, call get_committee_report with the job_id and summarise the committee's verdict, agreement score, research stance, and any dissent among the lenses.

📄
Sample output — real run · 29 Jul 2026
Investment Committee Report — Infosys Ltd (INFY)
Fast Scan on RELIANCE/TCS/INFY picked INFY (agreement 0.33) → full run: Bullish, agreement 0.67, Favorable stance, illustrative weight 7–10%
Open PDF →

Cursor / VS Code setup

Add to .cursor/mcp.json or your VS Code MCP settings:

{
  "servers": {
    "finmagine-markets": {
      "url": "https://finmagine.com/api/mcp.php",
      "headers": {
        "Authorization": "Bearer fmk_YOUR_KEY"
      }
    }
  }
}

cURL examples

# Company profile
curl -H "X-Api-Key: fmk_YOUR_KEY" \
  "https://finmagine.com/api/v1/company/profile?symbol=INFY"

# Top 20 momentum stocks in IT sector
curl -H "X-Api-Key: fmk_YOUR_KEY" \
  "https://finmagine.com/api/v1/market/momentum?sector=Information+Technology&limit=20"

# Screen: ROCE>20, PE<30, RS>60, sort by RS rating (api_max)
curl -H "X-Api-Key: fmk_YOUR_KEY" \
  "https://finmagine.com/api/v1/screener?min_roce=20&max_pe=30&min_rs=60&sort_by=rs_rating"

# NL screen: plain-English query via MCP tools/call (api_base+)
curl -X POST "https://finmagine.com/api/mcp.php?apiKey=fmk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"screen_natural_language","arguments":{"query":"profitable mid-caps with low debt and strong momentum","limit":10}}}'

# Last 10 days of market breadth
curl -H "X-Api-Key: fmk_YOUR_KEY" \
  "https://finmagine.com/api/v1/market/breadth?days=10"

Python

import requests

API_KEY = "fmk_YOUR_KEY"
BASE    = "https://finmagine.com/api/v1"
HEADERS = {"X-Api-Key": API_KEY}

# Get profile
r = requests.get(f"{BASE}/company/profile", headers=HEADERS, params={"symbol": "RELIANCE"})
profile = r.json()["data"]
print(f"{profile['company_name']}: ROCE={profile['roce']}, RS={profile['rs_rating']}")

# Screen stocks (api_max)
r = requests.get(f"{BASE}/screener", headers=HEADERS, params={
    "min_roce": 20, "max_pe": 30, "min_rs": 70, "sort_by": "rs_rating"
})
for co in r.json()["data"]["companies"]:
    print(f"{co['symbol']:12} RS={co['rs_rating']}  ROCE={co['roce']}%")

JavaScript

const API_KEY = "fmk_YOUR_KEY";
const BASE    = "https://finmagine.com/api/v1";

async function getProfile(symbol) {
    const r = await fetch(`${BASE}/company/profile?symbol=${symbol}`, {
        headers: { "X-Api-Key": API_KEY }
    });
    const { data } = await r.json();
    return data;
}

async function getTopMomentum(sector, limit = 20) {
    const params = new URLSearchParams({ limit, ...(sector ? { sector } : {}) });
    const r = await fetch(`${BASE}/market/momentum?${params}`, {
        headers: { "X-Api-Key": API_KEY }
    });
    return (await r.json()).data.stocks;
}

// Usage
const profile = await getProfile("HDFCBANK");
console.log(`${profile.company_name}: PE=${profile.pe}, RS=${profile.rs_rating}`);

US Markets — REST + MCP Documentation

24 REST endpoints (/api/v1/us/…) + 24 MCP tools · NYSE/NASDAQ · 6,400+ symbols · Same API key.

Overview

US markets have full REST + MCP parity — every capability is available as both a GET /api/v1/us/… REST endpoint and a us_* MCP tool. Use REST for scripts and pipelines; use MCP for AI agents (Claude, Cursor, etc.). Same API key for both.

REST base: https://finmagine.com/api/v1/us — Standard GET with X-Api-Key header.
MCP endpoint: https://finmagine.com/api/mcp.php — JSON-RPC 2.0 over POST. See setup instructions in the India tab.

Universe: 6,400+ NYSE and NASDAQ stocks. Free tier is restricted to 25 S&P 500 mega-caps. REST paths use /us/ prefix; MCP tool names use a us_ prefix. Each endpoint section below shows both. MCP call format:

curl -X POST "https://finmagine.com/api/mcp.php?apiKey=fmk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "us_get_company_profile",
      "arguments": { "symbol": "AAPL" }
    }
  }'

Free tier symbols

Free-tier keys can query only these 25 S&P 500 mega-caps via US tools. Any paid tier unlocks the full 6,400+ symbol universe.

AAPL  MSFT  AMZN  NVDA  GOOGL
META  TSLA  JPM   V     UNH
AVGO  LLY   XOM   MA    HD
PG    COST  MRK   ABBV  CVX
KO    PEP   ORCL  BAC   JNJ

Sample prompts

Paste either prompt into Claude (with the Finmagine connector active). US tools share the same MCP endpoint as Indian tools — no extra setup needed.

Quick start — core tools api_pro

Exercises: us_get_market_breadth · us_get_breakout_conditions · us_get_market_sectors · us_get_top_movers · us_search_companies · us_get_company_profile · us_get_financials · us_get_ratios · us_get_momentum · us_screen_stocks

📋 Copy and paste into Claude with Finmagine connector enabled:

I want a complete market intelligence briefing for US stocks. Please do the following in sequence:

1. Market context
Call us_get_breakout_conditions — what is today's US market regime: BULL_CONFIRMED, ABOVE_SMA50_ONLY, or BEAR_CONFIRMED? Then call us_get_market_breadth — what % of stocks are above their SMA-50 and SMA-200? Is breadth expanding or contracting?

2. Sector leaders
Call us_get_market_sectors and rank all 11 GICS sectors by average RS rating. Which two sectors are leading? Which is lagging most?

3. Today's movers
Call us_get_top_movers (direction=gainers, period=1m, limit=20). Flag any mover that sits in one of the two leading sectors from step 2.

4. Stock hunt
Search us_search_companies filtered to the top leading sector from step 2 and pick the result with the highest scorecard score as TARGET.

5. Deep dive on TARGET — Pull all four simultaneously:
  a. us_get_company_profile — note PE, ROE, market cap (USD B), and % from 52W high
  b. us_get_financials (statement=income, quarterly, 8 periods) — is revenue and net income expanding or compressing?
  c. us_get_ratios — flag any red flags: PE above 50, debt/equity above 2, ROE below 10%
  d. us_get_momentum — is it above SMA-50 and SMA-200? What is the RS rating? Is RSI-14 overbought (>70) or oversold (<30)?

6. Quality screen
Run us_screen_stocks with min_roe=15, min_rs=70, above_sma200=1, sort_by=rs_rating, limit=15. List the top 10 results.

Finally, synthesise: given the regime from step 1, would you be aggressive or selective in new positions? Which 3 stocks from step 6 look most actionable right now and why?

📄
Sample output — real run · 20 Jul 2026
US Market Intelligence Briefing
Regime: SELECTIVE · Energy #1 sector (RS 62.3) · Consumer Staples laggard · Target: FTNT · 10 tools called
Open PDF →

Full-coverage workflow — all 26 US tools api_max

Works when the Finmagine connector is active — Claude calls each tool in turn and narrates results. Covers every us_*-prefixed tool. The Investment Committee, Research Presets, and BYO LLM key setup also work for US symbols (via a market parameter) but aren't us_*-prefixed tools, so see the India tab's sample prompts for those.

Tier requirements for this workflow

api_max us_get_ai_company_profile, us_get_full_report, us_screen_natural_language, us_get_13f_holdings, us_get_sec_feed, us_get_concall_decoderall 26 tools require this tier
api_pro Market setup, conviction, ECS, insider trades, screener, financials, management tone, AI quarterly, trader scan — 19 of 26 tools work on this tier
free us_get_breakout_conditions, us_get_market_breadth, us_get_market_sectors, us_get_top_movers, us_search_companies, us_get_company_profile (25 symbols), us_market_momentum — 7 tools

⚠️ Do not ask Claude to build an artifact or write code — paste this as a plain question and let the connector do the work.

📋 Copy and paste into Claude with Finmagine connector enabled:

Using your Finmagine US tools, give me a complete US market intelligence brief. Call the tools in the order below, share what each one returns, and weave the findings together as you go.

Market setup — Check today's US market regime (us_get_breakout_conditions) — BULL_CONFIRMED, ABOVE_SMA50_ONLY, or BEAR_CONFIRMED? Pull us_get_market_breadth and tell me % above SMA-50 and SMA-200, broken down by sector — which sectors are showing the strongest internal breadth? Get the top 20 monthly gainers (us_get_top_movers, period=1m) and flag any with RS above 80. Pull us_get_market_sectors and rank all 11 GICS sectors by RS rating — do the top sectors align with the strongest breadth from the previous step? Then pull the top 30 momentum stocks (us_market_momentum) and cross-check the leaders against the Stage 2 + Near High trader scan (us_market_trader_scan, scan_type=stage2nh) — flag any stock appearing in both.

Conviction and index context — Pull the S&P 500 constituents (us_get_index_constituents, index=SP500). How many SP500 members have RS ≥ 70, and which sectors do they cluster in? Get the conviction ranking (us_get_conviction_ranking, top 25) — which stocks appear across the most screener presets simultaneously? Do the conviction leaders come from the same sectors leading on breadth?

Event intelligence — Pull the SEC 8-K feed (us_get_sec_feed, last 14 days). Note any major operational announcements from stocks with RS above 70. Screen for US stocks with high ECS scores (us_screen_stocks, sort_by=rs_rating, above_sma200=1, min_rs=75) and compare overlap with the conviction ranking — stocks appearing in both are your highest-priority candidates.

Single-stock deep dive — From the conviction ranking, pick the stock with the highest RS rating that is also above its SMA-200. Call it TARGET. Now call every company-level tool on TARGET and summarise what each reveals:
us_get_company_profile · us_get_financials (statement=all, quarterly, 8 periods) · us_get_ratios · us_get_momentum · us_get_company_scorecard
us_get_ecs_score · us_get_management_tone · us_get_ai_quarterly_summary · us_get_concall_decoder · us_get_ai_company_profile
us_get_13f_holdings (which superinvestors — Buffett, Ackman, Scion, etc. — hold TARGET?) · us_get_insider_trades (last 90 days — net buying or selling?) · us_get_order_wins
us_get_full_report — pull the AI-generated 9-section research report; summarise the competitive moat, bull case, bear case, and overall verdict.

Screen and shortlist — Run us_screen_stocks with min_roe=15, min_rs=70, above_sma200=1, max_pe=50, sort_by=rs_rating — top 15 results. Then call us_screen_natural_language with a plain-English query capturing the dominant theme from the sector rotation step — for example, "profitable large-caps in [top Leading sector] with strong earnings momentum, low debt, and insider buying" — top 10 results. Do any stocks appear in both screens? Those are the highest-conviction names. Also run us_search_companies filtered to the top sector with a market cap filter of at least $10B.

Synthesis — Combine everything into: (1) market regime verdict — offensive, defensive, or selective? (2) three actionable ideas — one from the parametric screener, one from the conviction ranking, one from the SEC or 13F superinvestor data, each with a one-sentence thesis and key risk; (3) a Strong Buy / Buy / Hold / Avoid verdict on TARGET with the single deciding factor; (4) a five-stock watchlist — RS improving, above SMA-200, with a superinvestor holding or recent insider buy as the catalyst.

📄
Sample output — real run · 20 Jul 2026
US Market Intelligence Brief
Regime: SELECTIVE · Target: FTNT (RS 95, BUY) · SP500 RS≥70: 152/499 · 6 sections · all 24 tools called
Open PDF →

Tools exercised: us_get_breakout_conditions · us_get_market_breadth · us_get_top_movers · us_get_market_sectors · us_market_momentum · us_market_trader_scan · us_get_index_constituents · us_get_conviction_ranking · us_get_sec_feed · us_screen_stocks · us_get_company_profile · us_get_financials · us_get_ratios · us_get_momentum · us_get_company_scorecard · us_get_ecs_score · us_get_management_tone · us_get_ai_quarterly_summary · us_get_concall_decoder · us_get_ai_company_profile · us_get_13f_holdings · us_get_insider_trades · us_get_order_wins · us_get_full_report · us_screen_natural_language · us_search_companies

Developer portal · Questions? contact@finmagine.com