/

Using with AI

Using with AI

Connect Claude Code, Codex, Cursor, VS Code, Claude Desktop or Xcode to the UIShelf MCP server, so your agent can find, preview and install items for you.

MCP server

UIShelf runs a remote MCP server, so a coding agent can search the library, look at the captures, read the docs and write an item’s exact files into your Xcode project. It speaks Streamable HTTP at one address and needs nothing installed:

https://uishelf.com/mcp

Without a key you get the free tier. With a UIShelf Pro licence key in the Authorization: Bearer header (or X-UIShelf-Key), every Pro screen and whole-app project comes with it. Find your key in the email from Polar or on Activate Pro. The key is only checked, never activated, so MCP does not use up one of its browser activations. Then ask your agent something like “Add the UIShelf Tend Today screen as my home tab”.

Claude Code

In Terminal, in your app’s folder:

claude mcp add --transport http uishelf https://uishelf.com/mcp --header "Authorization: Bearer YOUR_KEY"

Leave out --header for the free tier. Add --scope user to use it in every project; check with claude mcp list or /mcp.

Or share it with your team in .mcp.json at the project root, with the key read from each person’s environment:

{
  "mcpServers": {
    "uishelf": {
      "type": "http",
      "url": "https://uishelf.com/mcp",
      "headers": { "Authorization": "Bearer ${UISHELF_KEY}" }
    }
  }
}

Codex

In ~/.codex/config.toml:

[mcp_servers.uishelf]
url = "https://uishelf.com/mcp"
bearer_token_env_var = "UISHELF_KEY"

Then export UISHELF_KEY=YOUR_KEY in the shell that starts Codex (or drop the last line for the free tier). Check with codex mcp list.

To put the key in the file instead, replace the last line with http_headers = { “Authorization” = “Bearer YOUR_KEY” }.

Cursor

In .cursor/mcp.json (or ~/.cursor/mcp.json for every project):

{
  "mcpServers": {
    "uishelf": {
      "url": "https://uishelf.com/mcp",
      "headers": { "Authorization": "Bearer ${env:UISHELF_KEY}" }
    }
  }
}

Cursor reads UISHELF_KEY from your environment; you can also paste the key in place of ${env:UISHELF_KEY}. Turn the server on under Settings › MCP.

VS Code

In .vscode/mcp.json:

{
  "inputs": [
    { "type": "promptString", "id": "uishelf-key", "description": "UIShelf Pro licence key", "password": true }
  ],
  "servers": {
    "uishelf": {
      "type": "http",
      "url": "https://uishelf.com/mcp",
      "headers": { "Authorization": "Bearer ${input:uishelf-key}" }
    }
  }
}

VS Code asks for the key once and stores it securely. Use the tools from Copilot Chat in Agent mode.

Claude Desktop

In Settings › Connectors › Add custom connector:

Name: UIShelf
Remote MCP server URL: https://uishelf.com/mcp

Custom connectors cannot send a licence key, so this is the free tier. For Pro, use the mcp-remote config under Claude Desktop in the docs.

For Pro, add the server to claude_desktop_config.json (Settings › Developer › Edit Config) through the mcp-remote bridge, which can send the key, and restart Claude Desktop. It needs Node.js.

{
  "mcpServers": {
    "uishelf": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://uishelf.com/mcp", "--header", "Authorization:${UISHELF_AUTH}"],
      "env": { "UISHELF_AUTH": "Bearer YOUR_KEY" }
    }
  }
}

Xcode

In ~/Library/Developer/Xcode/CodingAssistant/ClaudeAgentConfig/.claude.json:

{
  "mcpServers": {
    "uishelf": {
      "type": "http",
      "url": "https://uishelf.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_KEY" }
    }
  }
}

For Xcode 26.3+ Claude Agent; merge into the file if it exists, then restart Xcode. Codex in Xcode reads ~/Library/Developer/Xcode/CodingAssistant/codex/config.toml.

Xcode’s agents (Intelligence settings, Xcode 26.3 or later) do not read your own ~/.claude.json or ~/.codex/config.toml; they use their own folders under ~/Library/Developer/Xcode/CodingAssistant. For Codex in Xcode:

# ~/Library/Developer/Xcode/CodingAssistant/codex/config.toml
[mcp_servers.uishelf]
url = "https://uishelf.com/mcp"
http_headers = { "Authorization" = "Bearer YOUR_KEY" }

Xcode reads these files when an agent starts: restart Xcode after editing them. In the Claude Agent panel, /mcp lists the servers it loaded.

Tools

Every tool is read-only. Each returns markdown for the model and the same data as structured JSON.

Tool

Arguments

What it returns

search_items

query?, kind?, style?, app?, tier?, limit?

Ranked, typo-tolerant search over names, summaries, apps, styles and docs. Returns ids, page and preview URLs.

list_styles

—

Every style (Arcade, Sweep, Terrain, …) with its look, apps and screen counts.

list_apps

style?

Sample apps with their screen ids, summary and tour video.

get_item

id, part?, files?

Every file (Theme.swift, the style file, components, Metal shaders), the usage snippet, Xcode install steps, sample art and a .zip link. Large items come in parts.

get_docs

id

When to use it, the API, accessibility, motion, platforms and notes for agents, as markdown.

get_preview

id, device?, appearance?

The real Simulator capture as an image (iPhone, iPad, Mac; light or dark), so the agent can see the design.

get_theme

—

Theme.swift and a short guide to the style system and the Metal effects.

get_app_project

app

A whole sample app as an Xcode project: a 15-minute download link, its README and file list.

Two prompts set up a whole task: add_screen (an item id and where it goes) and restyle_app (a style). In Claude Code they appear as /mcp__uishelf__add_screen. Resources: uishelf://styles and uishelf://items/<id> for one item’s docs.

Ids are the short ids shown on each page: activity-rings for a component, <app>/<screen> such as tend/today for a screen. A typical run: search_items → get_preview → get_item. Large screens arrive in parts (about 10k tokens each, so they stay under clients’ output limits); the agent fetches them with part, or downloads the .zip from download_url when it can run shell commands.

Free and Pro

  • Free, no key: search, styles, apps, docs and previews for everything, plus the full source of free items (components, Metal effects, motion and Theme.swift).

  • Pro items without a key return their docs, usage, previews and a clear “Pro licence required” message, never an error, so the agent can tell you what to do.

  • With a Pro key: every file of every screen, sample artwork and whole-app Xcode projects. Download links for Pro files are signed for that one file and last 15 minutes.

Keys are checked with Polar and cached for 15 minutes on the server, by a hash; they are never logged or shown back. Get Pro.

llms.txt

For assistants that read the web instead of using MCP: /llms.txt says what UIShelf is, how to connect and lists every style, app and item with links; /llms-full.txt adds each item’s full docs. Neither has Pro source.

Rules for agents

  • Write UIShelf files exactly as returned. Do not restyle, rename, reformat or “improve” them, and never rebuild a screen from its preview.

  • Keep one UIShelf/Theme.swift and one copy of each style file; replace them when an item brings a newer one.

  • Screens need iOS 26 / macOS 26. .metal files belong in Compile Sources.

  • Use the app’s own data and images in place of the samples; fix build errors in the app’s code, not in UIShelf/.

Troubleshooting

  • Pro items say “Pro licence required”. The key is missing or was not accepted. Check the header is exactly Authorization: Bearer <key> with no quotes around the key, that the variable is exported in the shell that starts the agent, and that the key is active in the Polar portal. Restart the agent after changing its config.

  • The server does not show up. Run claude mcp list or codex mcp list, or open /mcp in Claude Code. Claude Desktop and Xcode load servers only at launch.

  • “405 Method Not Allowed” on GET. Expected: the server is stateless and answers POST only, without an SSE stream. Pick the HTTP (Streamable HTTP) transport, not SSE.

  • A file arrived cut off. The item came in parts: call get_item again with part until next_part is gone, or use download_url. Each file’s sha256 is in manifest.

  • A download link returns 403. Signed links last 15 minutes; call get_item or get_app_project again for a fresh one.

  • Too many requests (429). Wait the seconds in Retry-After. Licensed keys get a higher limit than anonymous use.

  • Shaders fail to load. UIShelfShaders.metal must be in the app target’s Compile Sources, not Copy Bundle Resources.

  • Check the server by hand. npx @modelcontextprotocol/inspector --cli https://uishelf.com/mcp --method tools/list

Create a free website with Framer, the website builder loved by startups, designers and agencies.