Skip to main content
Glama
README.md
# BrandGene Context MCP

Bring your saved BrandGene brand guidelines, products, campaigns, real product photos, and credit-based ad image generation into **ChatGPT, Codex CLI, Claude, Claude Code, and Google Antigravity**.

The connector uses BrandGene's hosted Remote MCP server (`https://brandgene.io/api/mcp/brandgene`) with OAuth 2.1 (CIMD + PKCE S256 + RFC 7591 DCR) and requires a BrandGene account.

[BrandGene setup and connection management](https://brandgene.io/brandgene-mcp)

## Connect

**ChatGPT** — Install BrandGene Context from the public directory once listed, or add the remote MCP URL (`https://brandgene.io/api/mcp/brandgene`) in a workspace that supports custom MCP connections.

**Codex CLI** — Add the hosted MCP server and sign in through the browser.

```sh
codex mcp add brandgene-context --url https://brandgene.io/api/mcp/brandgene
codex mcp login brandgene-context
```

**Claude (Web & Desktop)** — Open **Settings → Connectors** and add a custom connector with `https://brandgene.io/api/mcp/brandgene`.

**Claude Code** — Add the remote HTTP MCP server, then run `/mcp` inside your session to sign in.

```sh
claude mcp add --transport http brandgene-context https://brandgene.io/api/mcp/brandgene
```

**Google Antigravity** — Add the server to `~/.gemini/config/mcp_config.json`, then open **MCP Servers** in Antigravity to sign in.

```json
{
  "mcpServers": {
    "brandgene-context": {
      "url": "https://brandgene.io/api/mcp/brandgene"
    }
  }
}
```

For staging, replace `https://brandgene.io` with the staging origin. This GitHub repository hosts the open connector package and tool definitions; BrandGene hosts your account data and the Remote MCP endpoint.

## Try it

> Pull the unified marketing brief for my product Flight Bag EFB, write three Instagram ad angles for a 10% launch offer, and generate a 4:5 ad image using the real product photo and brand logo.

## Tools

| Tool | Scope | Cost | Returns / Action |
| --- | --- | --- | --- |
| `get_brand_context` | `brandgene.context.read` | Free | Brand voice, guidelines, colors, logo, and reference images |
| `get_product_context` | `brandgene.context.read` | Free | Product description, selling points, prices, purchase URL, and images |
| `get_campaign_context` | `brandgene.context.read` | Free | Campaign objective, audience, channels, selected angles, recent saved copy and assets, and linked product when present |
| `get_marketing_brief` | `brandgene.context.read` | Free | Unified marketing brief: active/selected brand DNA, linked product, campaign, and recent items |
| `get_account_credits` | `brandgene.context.read` | Free | Credit balance, active subscription, ad image credit pricing, and top-up URL |
| `upsert_brand_context` | `brandgene.context.write` | Free | Create or update a brand's guidelines, colors, tone, values, aesthetics, and active status |
| `upsert_product_context` | `brandgene.context.write` | Free | Create or update a product's description, selling points, pricing, promo badge, storefront link, and product photos |
| `generate_ad_image` | `brandgene.generate` | Credits (6c 1K / 9c 2K / 19c 4K) | Generate a branded ad image with real product photos and brand logo attached automatically as visual references |

Pass `name` or `id` to select a record. With neither argument, read tools list up to ten recent records. If the name matches multiple records, the tool returns candidates so you can choose by ID. Asset references are HTTPS links.

## Permissions & Security

Access is split into three OAuth scopes (`brandgene.context.read`, `brandgene.context.write`, and `brandgene.generate`) with per-user rate and concurrency limits to prevent runaway agent loops from draining credits. Manage or revoke connected clients anytime from [BrandGene connections](https://brandgene.io/api/mcp/brandgene/oauth/connections).

## License

The connector configuration and tool definitions are available under the [MIT License](LICENSE). The BrandGene logo and marks remain BrandGene property.