Skip to content
Docs page

API reference

MCP server

Connect Claude Desktop, Cursor or any MCP client to Brand Identity API and give your agent get_brand, get_brand_profile, search_brands and get_logo_url.

The Model Context Protocol lets an AI assistant call tools on its own. With the Brand Identity API MCP server connected, you can ask for “the Linear logo as an SVG” or “the brand colors of these ten companies” and the agent fetches real data instead of guessing.

Endpoint

POSThttps://brandidentityapi.com/mcp

A remote MCP server over Streamable HTTP. It is stateless, so there is no session to keep alive. Authenticate with a secret key in the Authorization header. A publishable key also connects, but can only search and build logo URLs. Without a key, a client can still list the tools and call get_logo_url.

Tools

All four tools are read-only: none of them changes anything in your account.

ToolArgumentsReturnsKeyCredits
get_branddomain{ brand, cached, credits }: the full brand record, cached (true when the index answered), and credits as { remaining, charged }. domain may also be a URL or an email address.Secret1 per brand returned
get_brand_profiledomain, sections?, format?{ domain, profile, notes?, credits }: the brand's deep profile, as the Profile API returns it, with credits as { remaining, charged }. It comes as JSON in the tool's text inside a site-content fence; there is no structured copy outside it. sections is a list such as ["contact", "pricing"]. format is json, brand-md or design-md; the markdown formats come back as the tool's text. While the profile is built it adds pending: true and retry_after_seconds. Long answers are cut to fit, and truncated: { sections, note } names the sections left out.Secret5 per read
search_brandsquery, limit?{ query, results }: brands by name or domain, best match first, with their icons, as the Search API returns them. limit is 1 to 20, default 10.Secret or publishable0, counts toward monthly searches
get_logo_urldomain, type?, theme?, size?{ url, markdown, html }: a logo CDN URL, and the same as a Markdown image and an HTML img tag. Fetches nothing. type is icon, symbol or logo; theme is the ink color; size is 16 to 1024.Any, or none0

A failed tool call comes back as a readable tool error (for example, a domain with no site), so the agent can explain it or try another domain.

Claude Code

bash
claude mcp add --transport http brand-identity-api https://brandidentityapi.com/mcp \
  --header "Authorization: Bearer $BRAND_IDENTITY_API_KEY"

Claude Desktop

Claude Desktop starts local servers from claude_desktop_config.json (Settings, Developer, Edit Config). The mcp-remote package bridges it to a remote server and passes your key as a header. Restart Claude Desktop after saving.

claude_desktop_config.json
{
  "mcpServers": {
    "brand-identity-api": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://brandidentityapi.com/mcp",
        "--header",
        "Authorization:${BRAND_IDENTITY_API_AUTH}"
      ],
      "env": {
        "BRAND_IDENTITY_API_AUTH": "Bearer lh_sk_your_secret_key"
      }
    }
  }
}
The header is split into Authorization: and an environment variable because some systems break arguments on the space in Bearer lh_sk_....

Cursor

Add the server to .cursor/mcp.json in a project, or to ~/.cursor/mcp.json for every project:

.cursor/mcp.json
{
  "mcpServers": {
    "brand-identity-api": {
      "url": "https://brandidentityapi.com/mcp",
      "headers": {
        "Authorization": "Bearer lh_sk_your_secret_key"
      }
    }
  }
}

Other clients

Any client that speaks Streamable HTTP can connect: give it the URL https://brandidentityapi.com/mcp and an Authorization: Bearer header. To check the server by hand, list its tools with a plain JSON-RPC call:

bash
curl https://brandidentityapi.com/mcp \
  -H "Authorization: Bearer $BRAND_IDENTITY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Keep the key out of shared config

A config file checked into a repository is shared with everyone who can read it. Put the key in an environment variable or your editor's secret store, and give each teammate their own key.

What it costs

Credits per call: get_brand 1, get_brand_profile 5
Each tool costs what its REST endpoint costs. search_brands counts toward monthly searches; get_logo_url costs 0. Every endpoint's cost
  • get_brand costs what GET /v1/brands/{identifier} costs: 1 credit for every brand returned, from the index or crawled live. A domain with no brand costs nothing.
  • get_brand_profile costs what GET /v1/brands/{identifier}/profile costs: 5 credits per read. Reads of the same brand within 10 minutes of a paid one cost nothing, so calling again while it is pending is free.
  • search_brands costs no credits; each call counts toward your plan's monthly searches.
  • get_logo_url costs nothing: it only builds a URL.
Site text is data
A profile quotes the brand's own site. The tool fences that text as site-content, and your agent should treat it as data, never as instructions.