Need public brand information? Keyless Optimly Index reads require no credentials.

Developer reference · MCP

Optimly MCP connector

One endpoint, 20 tools, and the brand named per call — by an organization-wide credential. The connector speaks Streamable HTTP and keeps no session, so any request can land on any instance.

This connector exposes your organization's BrandVault, not the public Optimly Index. There is no public-index MCP server yet; use the keyless HTTP quickstart for public brand data.

Endpoint

Server URLhttps://app.optimly.ai/api/mcp
TransportStreamable HTTP, JSON responses, stateless
AuthenticationAuthorization: Bearer — an organization sk_live_… key or an oat_ OAuth access token
Rate limit60 requests per minute per token, shared with the keyed REST API
BrandNamed per tool call with the brand argument — an id, a slug or the unique name — and defaulted when the organization has one brand.

OAuth brand access

Approving the consent screen grants every brand in the organization — including brands added later — and the client names the brand on each call. Every connection and API key is organization-wide; brand-scoped credentials are retired.

Connect a client

Create a key in the application under Connections — it is shown once and covers every brand. The shapes below cover the clients most people use; the Connections page has the paste-ready setup, extraction, and interview prompts that go with them.

Claude Code

Add the HTTP server with the current CLI syntax, then keep the key in an environment variable:

claude mcp add --transport http optimly https://app.optimly.ai/api/mcp \
  --header 'Authorization: Bearer ${OPTIMLY_KEY}'

The single quotes matter: Claude Code stores the ${OPTIMLY_KEY} reference and expands it from the environment when it connects, so the raw key is never written to the client configuration. The variable must be set in the environment that launches the client. If you prefer OAuth instead of a static key, omit the header and run claude mcp login optimly, then complete the consent screen in the browser.

Cursor and other JSON clients

Clients that accept HTTP servers in an mcpServers map use a url and a headers object:

{
  "mcpServers": {
    "optimly": {
      "url": "https://app.optimly.ai/api/mcp",
      "headers": { "Authorization": "Bearer <your-key>" }
    }
  }
}

This shape is not the Claude Desktop config file format. Claude Desktop connects through Settings → Connectors → Add custom connector, where the connector URL is https://app.optimly.ai/api/mcp and the authentication is OAuth.

Hosted connectors

Add a custom connector pointing at https://app.optimly.ai/api/mcp and complete the OAuth consent screen in the browser. The connector discovers the flow on its own: an unauthenticated request answers 401 with a WWW-Authenticate header naming the resource metadata at https://app.optimly.ai/.well-known/oauth-protected-resource, which in turn advertises the authorization server at https://app.optimly.ai/.well-known/oauth-authorization-server. PKCE with S256 is required.

On Claude Team/Enterprise and ChatGPT workspaces, an admin adds the connector once and each member then connects. The server URL is https://app.optimly.ai/api/mcp.

Verify the connection

A server that answers is not the same as a credential that resolved your organization and brand. Check both layers:

  1. Run claude mcp list (or your client's equivalent). The optimly entry should show https://app.optimly.ai/api/mcp as an HTTP server and report a successful connection.
  2. Call list_brands to see what the credential reaches.
  3. Call get_brand for the brand you mean, and check the name and canonical_domain it returns.

Do not treat the connection as working until get_brand succeeds. An unauthenticated sanity check is also useful: curl -i https://app.optimly.ai/api/mcp must answer 401 with a WWW-Authenticate header pointing at the resource metadata — that proves the endpoint is reachable and speaking the discovery protocol.

Tool reference

All 20 tools, as the connector advertises them. Reading is unconstrained; the writable surfaces are publish_vault, act_on_recommendation, create_brand, update_brand, add_buyer_match_offers, and update_buyer_match_offer. No tool starts a measurement run.

create_brand takes an optional entity_type — company (the default), product_line, product, or person — and an optional parent_brand_id. A person brand may not have a parent; every other type's parent must be a non-archived brand in the same organization. The parent link is living brand state, not a versioned vault section. update_brand changes an existing brand's type under the same trusted-owner policy, and a person brand may not keep a parent.

BuyerMatch tools add and update private offers. Each offer is a name and a description covering what the buyer gets, who qualifies, and when you'd offer it. add_buyer_match_offers and update_buyer_match_offer are writes, so they must name brand and they reject an archived brand; list_buyer_match_offers reads the active or archived list. Offers are never published on the Brand Profile; the details needed for an intro are shared only after a match and the buyer opts in.

list_brands

The brands this credential can reach — the list every other tool's `brand` argument is drawn from, with each brand's id, name, domain and slug. Every credential sees the whole organization. Listed first on purpose: a caller that does not know what it can reach should be able to find out before it tries to read or write anything.

No parameters beyond the authenticated brand.

get_brand

Identity of the authenticated brand: name, canonical domain, slugs, claim state.

ParameterTypeRequiredDescription
brand any no

create_brand

Create a brand in the authenticated organization. The credential's owner must be a **trusted user**. Because this writes, confirm the brand name, website, type and parent with the user before calling it. `entity_type` is one of `company` (the default), `product_line`, `product`, or `person`. A `person` brand may not have a parent. Any other type may set `parent_brand_id` to a non-archived brand in the same organization; the parent link is living brand state, not a versioned vault section. A hosted person profile URL (a supported platform profile) is normalized to its exact identity and gets public-web research instead of a site scrape. An exact canonical-URL match already in the organization returns that brand with `created: false` and does not start a second prefill. On a new brand the type-appropriate prefill is queued; the interactive interview and any report run are deliberately not started.

ParameterTypeRequiredDescription
name string yes
website_url string yes
entity_type string no
parent_brand_id any no

update_brand

Change an existing brand's entity type. `entity_type` is one of `company`, `product_line`, `product`, or `person`. The credential's owner must be a **trusted user**, the same policy brand creation applies. A `person` brand may not keep a parent: clear `parent_brand_id` through `publish_vault` first. The type is living brand state, not a versioned vault section, and a claimed brand's public page is rebuilt with the new section membership. Because this changes what the world sees, state `brand` and confirm it with the user before calling it.

ParameterTypeRequiredDescription
entity_type string yes
brand any no

get_vault

The brand's active vault: all sections (with publish_state), competitors, and disambiguation. Falls back to the draft when nothing is published.

ParameterTypeRequiredDescription
brand any no

publish_vault

Publish a new vault version. Payload shape: `{"sections": {<registry key>: {"content", "publish_state": "public"|"internal", "evidence_url"?}}, "competitors": [{name, url, competitor_type: "direct"|"indirect_adjacent"|"legacy_category", is_primary}], "disambiguation": {<one of the six field keys>: [str]}, "parent_brand_id": "<brand UUID>" | null}`. The full schema, including every section and disambiguation key, is in this tool's input schema. **Presence means replace; omission means keep.** Omitted `sections` copy forward from the active version. Omitted `competitors`, `disambiguation` and `parent_brand_id` PRESERVE the current living state; to change them, send the complete list/object (a present object replaces the whole set), or `[]` / `{}` to clear. `parent_brand_id` is a single ID, not a set: send the parent's brand UUID to set it, or null to clear it. Sending only the fields you are adding will delete the rest of that set. `alternate_domains` is the exception: it carries forward when omitted and cannot be changed through the API. `additional_context` is user-authored only (never filled by onboarding) and defaults to `publish_state: "internal"`: it shapes report questions but does not reach the Brand Index unless explicitly published. It is capped at 20,000 characters. Competitor URLs may omit the scheme (`example.com`, `example.com/pricing`); they are stored as https://. Rows whose URL does not resolve are dropped, never fatal. Measurement is not re-triggered by publishing — runs are scheduled in the app. Publishing changes what the world sees, so this tool does not guess which brand it is for: state `brand`, and **confirm the brand with the user before calling it** — name it in the confirmation ("publish to Acme?"), and if the organization has more than one brand, never infer which one they meant.

ParameterTypeRequiredDescription
payload object yes The complete `publish_vault` payload. Omitted `sections` copy forward. Omitted `competitors`, `disambiguation` and `parent_brand_id` preserve the current living state; an explicit list/object/ID replaces it, and `[]` / `{}` / `null` clears it. A present `disambiguation` object replaces the whole set (except `alternate_domains`, which carries forward when omitted).
brand any no

list_vault_versions

Version history of the brand's vault, newest first (metadata only).

ParameterTypeRequiredDescription
brand any no

get_vault_version

One vault version snapshot by number: metadata + the full section rows.

ParameterTypeRequiredDescription
version integer yes
brand any no

list_buyer_match_offers

The brand's private BuyerMatch offers: active (default) or archived. An offer is a name and a description; the matching model extracts the value, eligibility, redemption details, and exclusions from the description. Offers are never published on the Brand Profile.

ParameterTypeRequiredDescription
status string no
brand any no

add_buyer_match_offers

Add one or more private offers to BuyerMatch. Each offer is `{"name": "...", "description": "..."}`. The description should cover what the buyer gets, who qualifies, and when you'd offer it; the matching model extracts the rest. Up to 200 offers per call. The source is recorded as `api`. An archived brand is rejected. This writes, so it must name its brand: pass `brand` and confirm it with the user before calling.

ParameterTypeRequiredDescription
offers array yes
brand any no

update_buyer_match_offer

Edit an offer's name/description or archive/restore it. Pass at least one of `name`, `description`, or `status` (`active`/`archived`). An archived brand is rejected. This writes, so it must name its brand: pass `brand` and confirm it with the user before calling.

ParameterTypeRequiredDescription
offer_id string yes
name any no
description any no
status any no
brand any no

list_recommendations

All recommendations for the brand, newest first. Optional filters: status (todo|done|dismissed), effort (low|medium|high).

ParameterTypeRequiredDescription
status any no
effort any no
brand any no

act_on_recommendation

Act on a recommendation: status todo|done|dismissed; acted_at (optional ISO-8601) backdates the completion. Provide status and/or acted_at. This writes, so it names its brand: state `brand` rather than letting it be inferred, and when the organization has more than one, confirm with the user which brand's recommendation this is.

ParameterTypeRequiredDescription
rec_id string yes
status any no
acted_at any no
brand any no

list_reports

All measurement reports for the brand, newest version first. Reports are read-only — runs are triggered in the app, never here.

ParameterTypeRequiredDescription
brand any no

get_report_status

Whether this brand can generate a report now, and why not if it cannot. Returns the per-brand free-report budget (`budget`, `used`, `remaining`), `unlock_at` when the budget is spent, the blocking `gate` when one applies (`vault_not_published` | `report_budget_exhausted` | `vault_stale`), the latest run, and `can_generate` (false while a run is in flight). A request the worker has not yet turned into a run appears as `reports.queued` with the `request_id` generate_report returned, so an immediate poll cannot mistake the previous report for the new one. This tool starts no run. Tell the user what blocks a report when `gate` is set; when it is not, call generate_report after confirming with them that it should spend one of their reports.

ParameterTypeRequiredDescription
brand any no

generate_report

Generate a new report for this brand now. Queues the same run the app's Generate button queues, spending one of the brand's free reports (three per brand per rolling 30 days). The profile must be published and current (`vault_not_published` / `vault_stale`), the budget must have room (`report_budget_exhausted`), and no other run may be in flight (`run_in_progress`); a closed gate returns the same message the app shows. This spends a report, so name the brand explicitly and **confirm with the user before calling it** — say which brand and how many reports remain (call get_report_status first). A run takes minutes: this returns as soon as it is queued (`queued: true`, or `already_queued: true` when the same minute's request already exists) with a `request_id`; get_report_status follows it, reporting that id under `reports.queued` until the worker creates the run, then the run under `reports.latest_run`.

ParameterTypeRequiredDescription
brand any no

get_report

One report: frozen summary metrics, the per-model breakdown, the model panel snapshot, and the run block (trigger, timing).

ParameterTypeRequiredDescription
report_id string yes
brand any no

get_report_questions

Question Analysis for one report: every question with per-model answers and judgments. Pass question_id to narrow to a single question.

ParameterTypeRequiredDescription
report_id string yes
question_id any no
brand any no

get_report_sources

Sources for one report: per-domain citation aggregation with owned / competitor / third-party classification.

ParameterTypeRequiredDescription
report_id string yes
brand any no

get_attribution

Attribution for the brand: metric trend across report versions plus the acted-on recommendation timeline.

ParameterTypeRequiredDescription
brand any no

Related

The keyed REST API covers the same records over plain HTTP, for programs that would rather not speak MCP.