MetorialDocs

Set up Marketstack in Metorial for Claude, ChatGPT and Cursor

Share Marketstack with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 22 tools, all read-only.

To give your team Marketstack in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Marketstack integration in a Metorial portal, and each person connects with an API key. Agents can retrieve real-time, intraday, and historical stock market data for 30,000+ tickers across 70+ global exchanges. The integration has 22 tools, all read-only, plus 1 trigger.

What you'll learn

  • How an admin shares Marketstack in a portal and how each person connects
  • What Marketstack asks for when you connect, and where to find it
  • How to check the connection with metorial call

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokentoken

API Key

To connect, a person enters:

  • token: Marketstack API access key from your account dashboard

Admin: share Marketstack in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Marketstack. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Choose who gets it

Add the access groups that should see Marketstack. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Marketstack integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search marketstack

Employee: connect Marketstack

In the portal

Open Marketstack in the catalog

Sign in to your portal and open Marketstack. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search marketstack
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Marketstack connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list marketstack
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Every Marketstack tool only reads, so the connection is read-only as it is.

Check it worked

metorial list marketstack
metorial tools <integration-id>
metorial call <integration-id> get_sec_financial_data -d '{"mode":"company_facts"}'

metorial tools lists the 22 tools, minus any you rejected. get_sec_financial_data needs mode, so replace the placeholders. It retrieves XBRL financial data from SEC EDGAR filings.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (22)

  • search_sec_filings: Search SEC EDGAR filings by company name or CIK code.
  • search_tickers: Search for stock tickers by name, symbol, or exchange.
  • get_intraday_prices: Retrieve intraday stock price data with configurable intervals from 1 minute to 24 hours. Needs symbols.
  • get_etf_holdings: Retrieve complete ETF holdings data by ticker, including fund metadata and individual security holdings with balances, values, weights, asset categories, and ISINs. Needs symbol.
  • get_sec_financial_data: Retrieve XBRL financial data from SEC EDGAR filings. Needs mode.
  • get_government_bonds: Retrieve 10-year government bond yield data for 53+ countries.
  • get_splits_and_dividends: Retrieve historical stock split factors and/or dividend payment information for one or more tickers. Needs symbols and type.
  • get_commodities: Retrieve current or historical commodity prices by commodityName, including energy, metals, agriculture, and livestock.
  • list_exchanges: List and search supported stock exchanges worldwide.
  • get_market_indices: Retrieve data for 86+ global stock market indices and benchmarks.
  • get_ticker_details: Retrieve detailed company information for a specific ticker symbol, including company name, country, exchange details, and data availability. Needs symbol.
  • get_eod_prices: Retrieve end-of-day (closing) stock prices including open, high, low, close, volume, and adjusted values. Needs symbols.
  • get_analyst_ratings: DEPRECATED — use `get_company_ratings` instead. Needs symbols.
  • list_timezones: List supported IANA timezones and their standard and daylight-saving abbreviations.
  • get_company_ratings: Retrieve analyst buy/sell/hold ratings and consensus price targets for exactly one company ticker through the current company-ratings API.
  • list_currencies: List supported currencies, including currency codes, names, and native symbols.
  • list_etfs: Discover available ETF ticker symbols before retrieving their holdings.
  • get_realtime_prices: Get the last known stock price across exchanges, with currency and the provider trade timestamp.
  • get_market_index: Retrieve a single benchmark quote directly without listing and fetching every index.
  • get_company_profile: Get extended company information by ticker, including industry, sector, executives, addresses, and listings when provided.
  • get_accounts_payable_frames: Get the latest SEC AccountsPayableCurrent fact per reporting entity for a calendar frame, using the documented US-GAAP accounts-payable API.
  • download_catalog: Download the provider-published supported ticker, end-of-day ticker, or commodity catalog to discover query identifiers.

Triggers

Marketstack has 1 trigger, which fire on events in Marketstack:

  • inbound_webhook

Next steps