Brand Images → Notion

Brand Images → Notion

Enriches Claude with tools to generate brand-consistent images using OpenAI's gpt-image-2 and upload them directly to Notion pages.

Category
Visit Server

README

Brand Images → Notion

Generate on-brand images with OpenAI's gpt-image-2 and drop them straight into a Notion page — all by chatting with Claude. You bring a brand/design guide and an idea ("make me an infographic about X"); Claude reads the guide, writes the image prompt, renders it, and uploads the result into Notion as a real image block. No public image hosting, no manual drag-and-drop.

It's a small MCP server with three tools that Claude drives:

Tool What it does
generate_brand_image Renders a PNG with gpt-image-2 — via the OpenAI API (default) or the Codex CLI.
upload_image_to_notion Uploads a local image into a Notion page (Notion-hosted, private).
check_setup Reports which keys/backends are ready.

Quick start (no coding required)

You'll do everything by talking to Claude Code (the CLI, the desktop app, or the VS Code extension).

  1. Get the repo onto your machine. In Claude, say:

    Clone https://github.com/jacobwjs/brand-images-to-notion and open it.

  2. Let Claude set it up. Then say:

    Set up this repo.

    Claude reads CLAUDE.md and walks you through it: installs uv, creates your .env, and asks you for two things —

    • an OpenAI API key (https://platform.openai.com/api-keys), and
    • a Notion integration token (https://www.notion.so/my-integrations) — Claude will explain how to make one and how to share your Notion page with it.
  3. Restart Claude Code when it asks (so the server and your keys load), then say:

    Run check_setup.

  4. Make something. Point Claude at your brand guide and ask, e.g.:

    Here's our brand guide ~/Desktop/brand.html. Make a portrait infographic about why Acme should hire us, and upload it to this Notion page: <paste page URL>.

That's it. Ask for "two different variants" any time you want options.


What you need

  • Claude Code (you're already using it).
  • An OpenAI API key — for image generation. (Or use the Codex CLI backend instead; run codex login once — no key needed.)
  • A Notion integration token, with your target page shared to it.
  • Your brand/design guide in a normal local folder. ⚠️ Not inside Google Drive / iCloud "CloudStorage" folders — macOS blocks reading those. Drag a copy to your Desktop first if needed.

Manual setup (for the technically curious)

# 1. Install uv (launches the server with no pip/venv juggling)
curl -LsSf https://astral.sh/uv/install.sh | sh

# 2. Configure secrets
cp .env.example .env        # then edit .env and fill in your keys

# 3. The server is registered via .mcp.json. Open the folder in Claude Code,
#    approve the "brand-images" server, restart, and ask Claude to run check_setup.

No-uv fallback: pip install mcp, then set .mcp.json to "command": "python3", "args": ["server.py"].


How it works

  1. Claude reads your brand guide and writes a detailed gpt-image-2 prompt (exact colors, fonts, logo, layout, verbatim text).
  2. generate_brand_image renders it to a PNG.
  3. upload_image_to_notion uses Notion's File Upload API (create → send → attach) to post it as a native image block — privately hosted by Notion, no public URL.

Notes & limits

  • Image models occasionally reinterpret logos or garble small text. Just re-run (each run differs) or ask Claude to refine one detail. The output is always the real gpt-image-2 image — never a code-drawn substitute.
  • Keep your tokens in .env (git-ignored). Rotate any token you paste into a chat.
  • When an image references another company, use their name as text only — don't reproduce their logo.

Troubleshooting

Most issues are setup-related. Tell Claude what you see and it can usually fix it — but here are the common ones:

Symptom Fix
Operation not permitted when Claude reads your brand file The file is inside a Google Drive / iCloud CloudStorage/ folder, which macOS blocks. Drag a copy to your Desktop or Downloads and point Claude there.
check_setup says a key is missing even though you edited .env Claude Code only loads .env and MCP servers at startup. Fully restart / reopen the folder, then run check_setup again.
The brand-images tools don't appear When Claude Code starts, it asks you to approve the brand-images server — approve it, then restart. Confirm .mcp.json is present in the folder.
uv: command not found Install it: curl -LsSf https://astral.sh/uv/install.sh | sh (or brew install uv). No-uv fallback: pip install mcp, then set .mcp.json to "command": "python3", "args": ["server.py"].
OpenAI image error / 400 / quota Make sure billing is enabled on your OpenAI account (image generation isn't free), and your key is valid. Or switch to the Codex backend: run codex login, then ask for backend="codex".
Notion upload fails (404 / "could not find page") The page isn't shared with your integration. Open the page → •••Connections → add your integration, then retry. Also check the page URL is correct.
Notion says "unauthorized" / 401 NOTION_TOKEN is wrong or missing in .env. Re-copy it from https://www.notion.so/my-integrations.
The image text is garbled or the logo looks off Normal for image models. Ask Claude to re-run (each run differs) or to refine one detail. It will never substitute a code-drawn image.
You pasted a token into a chat Rotate it: delete/regenerate the integration secret in Notion (or the key in OpenAI) and update .env.

License

MIT — see LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured