Use with your agent
Claude Code, Cursor, VS Code and Codex can install PixilUI items by name. One line sets up the project; the MCP server lets the agent search, read and install without leaving the chat.
One line
Paste this into your agent. It checks the project first (React 19, Tailwind v4, your package manager), stops on Tailwind 3 instead of upgrading without asking, and ends with every file it changed.
components.jsonthe @pixilui registrycomponents/pixilui/foundation.csstokens and motion, onceAGENTS.md, .cursor/rulesrules it reads every session.mcp.jsonthe MCP serverIt never asks for a Pro key. If you have Pro, it tells you to run npx pixilui@latest login yourself. setup.md is written for the agent, step by step, if you want to read it first.
The rules are short on purpose: search the MCP server and read the item before building approval, run, tool call, thinking or streaming UI by hand; tokens only, never hex, oklch() or palette classes; one primary action per surface; restyle through className and data attributes; pending work through promises or loading, never disabled; motion from the motion-* utilities. The rest of AGENTS.md is never touched. Claude Code reads CLAUDE.md: if yours does not mention AGENTS.md, add a line @AGENTS.md.
Connect the MCP server
Free items need no account. With Pro or Team, the Pro address opens the PixilUI login once and installs Pro items like free ones.
claude mcp add --transport http pixilui https://mcp.pixilui.com/mcpClaude Code keeps the login for every session. claude -p and Agent SDK runs cannot open a browser: log in once in an interactive session first, or use a token.
Logging in
The first time a client connects to the Pro address, three things happen. There is nothing to copy and no token in a config file.
Without a login or token the server answers every question about every item, and returns source and install commands for free items. For a Pro item it returns the description, props and notes, says it needs a license, and offers the free item closest to the job. A login without a license still gets every free item.
Tokens for CI
Headless agents and CI cannot open a browser. Create an access token on your account, keep it in a secret, and send it to /mcp.
claude mcp add --transport http pixilui https://mcp.pixilui.com/mcp --header "Authorization: Bearer $PIXILUI_TOKEN"In Cursor add "headers": { "Authorization": "Bearer ${env:PIXILUI_TOKEN}" } next to the url. The shadcn CLI reads PIXILUI_TOKEN from .env.local; npx pixilui@latest login writes it for you. A revoked token, or one whose license has ended, falls back to free items.
What the agent can do
| Tool | Does |
|---|---|
search_items |
Finds items by what the UI has to do ("ask before the agent sends an email") |
list_items |
Every item, by category and tier |
get_item |
When to use it and when not, props, keyboard, accessibility, motion and notes for AI |
get_install_command |
One shadcn command for every item you need, with the components.json entry |
get_source |
The files with their paths, for projects that cannot run the CLI |
get_skill |
The PixilUI agent skill |
Agents that start local servers can run it from the CLI instead: claude mcp add pixilui -- npx -y pixilui@latest mcp. It forwards every request to the remote server and adds two tools that change your project, init and add. Tools that cannot use MCP can read the same data over HTTP: /openapi.json describes the catalog and the registry, and none of it needs a key.
Files agents read
Rebuilt with the registry on every release, so they never drift from the code.
pixilui.com/llms.txtthe index, by jobpixilui.com/llms-full.txtevery page in one filepixilui.com/components/<item>/markdowneach page as markdownpixilui.com/setup.mdthe setup, written for the agent.claude/skills/pixilui/the agent skillEach item page also has Copy prompt, which copies instructions for a coding agent followed by the item's full markdown with every file, and Open in Claude or ChatGPT. Docs pages have the same markdown twin at /docs/<page>/markdown. The skill teaches the find, read, install, wire and review loop and every item by job; npx shadcn@latest add @pixilui/skill installs the same files.
Try a prompt
Name the item, ask the agent to read the item's markdown page before writing code, and ask it to keep the semantic utilities (bg-surface, text-secondary, rounded-control).
What it records
Questions
One the agent can read and install without guessing: a shadcn registry for installs, a rules file it loads every session, an MCP server to search, and plain-text docs per item. PixilUI ships all four, and so do several other libraries; compare what their items cover and how they look.
No, not for free items. Pro and Team log in from the browser through the
/mcp/proaddress, or use an access token in CI.Yes.
AGENTS.mdis read by Codex, and the MCP setup above covers Codex and VS Code.