# Connect Motion Brew to your AI agent

Motion Brew runs an MCP server at `https://motion-brew.com/mcp` (Streamable HTTP, no key). Add it to your client, then ask for a component in plain words, for example "add a hold to delete button".

## Claude Code

```bash
claude mcp add --transport http motion-brew https://motion-brew.com/mcp
```

## Codex

```bash
codex mcp add motion-brew --url https://motion-brew.com/mcp
```

## Gemini CLI

```bash
gemini mcp add --transport http motion-brew https://motion-brew.com/mcp
```

## Claude, Grok and other apps with custom connectors

Add a custom connector with the URL `https://motion-brew.com/mcp`. No sign in is needed.

## Cursor, VS Code and other clients with a JSON config

```json
{
  "mcpServers": {
    "motion-brew": {
      "url": "https://motion-brew.com/mcp"
    }
  }
}
```

Clients that only speak stdio can bridge with `npx -y mcp-remote https://motion-brew.com/mcp`.

## Tools

- `search_components`: find components by what they do
- `list_components`: browse everything
- `get_component`: one component, with a single install command
- `get_install_plan`: several components at once
- `get_setup`: what a new project needs

## npm package

Prefer a package? The same components are on npm: `npm i motion-brew`, then import each one from its own path, for example `import { BillList } from "motion-brew/bill-list"`. Add `@source "../node_modules/motion-brew/dist";` under the Tailwind import in your CSS.

## Project setup

Each component is one .tsx file with everything inside it. A project needs only:

### React 18 or 19

Any setup: Vite, Next.js, Remix, Astro islands. The files start with "use client", so they work in the Next.js App Router as they are.

### Tailwind CSS v4

The class names use Tailwind v4 syntax (`bg-black/5`, `size-4`, arbitrary values). With Vite:

```bash
npm i tailwindcss @tailwindcss/vite
```

and `@import "tailwindcss";` at the top of the main CSS file. Next.js uses `@tailwindcss/postcss` instead. If the component files live outside the folders Tailwind scans, add an `@source` line for them.

### Good to know

- A few components (for example profile-menu) put a `dark` class on themselves. For that, add `@custom-variant dark (&:where(.dark, .dark *));` to the CSS.
- Every component honours `prefers-reduced-motion`; keep those checks when editing.
- Components with an `in view` trigger animate when scrolled into view, so test them below the fold too.
- Files with animated icons carry the lucide-animated MIT notice at the top. Keep it.
