pinui-mcp
v0.1.3
Published
MCP server that lets AI coding agents (Claude Code, Codex, Cursor) pull pinned UI change requests from PinUI.
Maintainers
Readme
pinui-mcp
MCP server that connects AI coding agents (Claude Code, Codex, Cursor) to PinUI. Pin a UI element in your browser, then let your agent pull the AI-ready change request directly — no copy-paste.
Setup
- Install the PinUI browser extension, log in, and make sure Sync pins is enabled in settings (it is by default).
- Create an API key at https://pinui.dev/dashboard/api-keys.
- Connect your agent:
Claude Code
claude mcp add pinui -e PINUI_API_KEY=pinui_sk_... -- npx -y pinui-mcpCodex
npx -y pinui-mcp setup codex --api-key pinui_sk_...Cursor
npx -y pinui-mcp setup cursor --api-key pinui_sk_...Usage
Pin an element with the extension, then ask your agent:
implement my latest pin
Slash commands are agent-specific:
- Claude Code:
/pinui:latest-pinto implement the newest pin,/pinui:list-pinsto see a numbered list and pick one to implement,/pinui:clear-pinsto wipe synced pins (asks for confirmation first). - Codex:
/pinui-get-latest-pin— but only on builds that surface~/.codex/prompts/*.mdas slash commands. Codex does not expose MCP-registered prompts as slash commands, and some custom Codex distributions ignore the prompts folder entirely. If/pinui-get-latest-pindoesn't appear, just ask the agent (see above) — the MCP tools work regardless. - Cursor: no slash command; ask the agent in natural language.
Tools
| Tool | Description |
| --- | --- |
| get_latest_pin | Fetch the most recent pinned change request |
| list_pins | List recent pins, newest first (limit optional) |
| clear_pins | Delete all synced pins |
Configuration
| Env var / flag | Description |
| --- | --- |
| PINUI_API_KEY / --api-key | Your PinUI API key (pinui_sk_...), required |
| PINUI_API_URL / --api-url | API base URL, defaults to https://api.pinui.dev/api/v1 |
