← AIAP Tool GuidesAll programsHomeSearch
AIAP Tool Guides·AI for Design·45:51

Grounding an AI-Built App: Anthropic API Key, Context7 with shadcn, a Figma MCP-Ready Design System, and Deploying to Vercel

Amlan Designer, "a fellow builder and designer" with entrepreneurial stints; builds one expense-management app (FinLit India) across the series

The short version

  1. The app's new statement import categorises transactions with AI, so it needs your own Anthropic API key in .env.local; tested on an HDFC statement, then expanded to ~50 grouped categories (0:00-0:12).
  2. Context7 connector grounds the UI in current shadcn docs (two failed passes, then a root-cause fix); the Figma MCP plus an MCP-ready community design system drives a full redesign (0:12-0:38).
  3. Claude deploys to Vercel with production and preview URLs and the API key as an environment variable; advice: link Context7 or Figma in the first prompt (0:38-0:45).

At a glance, three clicks deep

Skim here first: the closed row is the glance, open is the study card with the key points and timestamps, and the ↓ link drops to that concept's full write-up below.

01Give the app its own Anthropic API keyAI features inside your app need an API key in an environment file, not your chat subscription.›

AI features inside your app need an API key in an environment file, not your chat subscription.

Key (0:01-0:04)

Dev server (0:05-0:07)

Import test and categories (0:07-0:12)

↓ Full write-up of this concept

02Ground the UI: Context7 for libraries, Figma MCP for the design systemContext7 fetches current library docs (here shadcn);›

Context7 fetches current library docs (here shadcn); the Figma MCP lets Claude read an MCP-ready design system and redesign from it.

Context7 (0:12-0:18)

Figma MCP (0:18-0:31)

Iteration (0:31-0:38)

↓ Full write-up of this concept

03Deploy a shareable prototype to VercelClaude handles login, project creation and the environment variable;›

Claude handles login, project creation and the environment variable; you get a public production URL and a preview URL.

Deploy (0:39-0:43)

Recap (0:43-0:45)

↓ Full write-up of this concept

The concepts in full

01

Give the app its own Anthropic API key

how-to

Create your own key - you see it once.

Claude console > Get API key > create "expense management" > copy immediately. Put it in .env.local (ask Claude Code where), then run npm run dev in the project folder - running it elsewhere fails. Keep imported statements small, "because then there's an opportunity for the app to hallucinate."

Do it in this order
Why it matters

The step between a demo and a working AI feature.

02

Ground the UI: Context7 for libraries, Figma MCP for the design system

how-to

An MCP-ready design system has every element and token "clearly defined and labeled ... no ambiguity."

Claude > + > Connectors > Manage > Add > Browse: add Context7, verify the tools, look up the shadcn library ID, ask for a redesign - it took a root-cause fix before padding and radii actually changed. For Figma: add the Figma connector (or the terminal command), open an MCP-ready community file (the "MCP apps for Claude" kit), switch to Dev Mode and enable the desktop MCP server, give Claude the file URL, restart Claude so the connector loads, then choose a full overhaul (~30-40k tokens). Afterwards, change Figma and ask Claude to re-read the component (button radius 32-48px to 8px); emojis replaced with Lucide icons.

Do it in this order
Why it matters

Guardrails are "the difference between people who are great at building with AI and the ones who are just starting out."

03

Deploy a shareable prototype to Vercel

how-to

Viewers should not need your codebase to see the prototype.

Ask Claude what it recommends for sharing; it checks the Vercel login, deploys and adds the API key to production. Confirm in Vercel > project > Environment variables. The narration calls this "v0", but the demo is Vercel driven by Claude.

Do it in this order
Why it matters

The last step of the five-step flow.

Tools referenced

ToolCoverageMomentContext
Claude Codedemonstrated
Claude Consoledemonstrated
Context7demonstrated
shadcn/uidemonstrated
Figmademonstrated
Figma MCPdemonstrated
Lucidedemonstrated
Verceldemonstrated
v0mentioned

Action items

    Resources mentioned

    Resources
    • docLesson page on the platform

    Extraction notes

    This page was built from an auto-generated transcript, which garbles product and people's names. Those were corrected silently in everything above and logged here for transparency. The warnings flag claims that were true on the recording day but change fast.

    Transcript corrections applied

    The transcript saysThe trainer actually means
    platform.clot.complatform.claude.com (Claude Console)
    Chat C / shat cnshadcn
    Lucid IconsLucide icons
    Contic 7Context7
    Finland India / finlit IndiaFinLit India (project name)

    True on recording day — verify before relying