UIPin MCP Server
Run at http://127.0.0.1:3846 to provide AI tools (Claude Code, Cursor, etc.) with live UI annotations, screenshots, and structured context via JSON-RPC + SSE.
README
UIPin
Universal UI annotation & feedback tool. Screenshot → annotate with pins, arrows, rectangles, and freehand → export to AI via MCP protocol.
Why UIPin?
The typical UI feedback loop is broken: screenshots sent over chat, vague comments, endless back-and-forth. UIPin replaces this with visual annotations that AI can directly consume and act on.
Features
- 3 capture modes — Fullscreen (
Ctrl+Shift+P), Region (Ctrl+Shift+R), Window (Ctrl+Shift+W) - 4 annotation tools — Pin markers, arrows, rectangles, freehand drawing
- Undo/redo — 50-step history
- Zoom & pan — Scroll to zoom, Shift+drag to pan
- MCP Server — AI tools (Claude Code, Cursor, Windsurf) can read annotations live via JSON-RPC + SSE
- Export — Markdown (with color analysis + cropped regions), JSON, annotated PNG
- UIA integration — Auto-detects Windows UI element name, type, class, and ancestry tree at each pin
- i18n — English, 简体中文, 繁體中文, 日本語
- System tray — Always available, never in the way
- Auto-update — Keeps itself current via GitHub Releases
Quick Start
Download
Download the latest installer from Releases.
| Platform | Package |
|---|---|
| Windows | .exe (NSIS installer) |
| macOS | .dmg |
| Linux | .AppImage |
Build from Source
git clone https://github.com/sixtdreanight/UIPin.git
cd UIPin
npm install
npm run dev # Start in development mode
npm run build # Production build
npm run dist # Package installer
Requirements: Node.js ≥ 20, npm ≥ 10
Usage
Keyboard Shortcuts
| Global Shortcut | Action |
|---|---|
Ctrl+Shift+P |
Capture full screen |
Ctrl+Shift+R |
Capture region |
Ctrl+Shift+W |
Capture window |
Ctrl+Z / Ctrl+Shift+Z |
Undo / Redo |
| In-App Shortcut | Action |
|---|---|
P / A / R / F |
Switch tool: Pin / Arrow / Rect / Freehand |
Esc |
Deselect all |
| Scroll | Zoom in/out |
| Shift + Drag | Pan |
Tools
- Pin — Place a numbered marker. Click to add a comment. Drag to reposition.
- Arrow — Draw an arrow from one point to another.
- Rectangle — Draw a dashed rectangle to highlight a region.
- Freehand — Draw freely for custom highlights.
Export Formats
- Copy (Markdown) — Full bug report with coordinates, color analysis, cropped region screenshots, and UIA element tree. Paste directly into AI chat.
- Screenshot (PNG) — Annotated screenshot with all markers baked in.
- JSON — Structured data for programmatic consumption.
MCP Protocol
UIPin runs a local MCP-compatible JSON-RPC server at http://127.0.0.1:3846.
Tools
| Tool | Description |
|---|---|
list_annotations |
List all active annotation pins and drawings |
get_screenshot |
Get current screenshot metadata |
resolve_annotation |
Mark an annotation as resolved (removes from list) |
get_context |
Get structured Markdown context for AI consumption |
Quick Test
# List available tools
curl -s http://127.0.0.1:3846/mcp \
-H "Content-Type: application/json" \
-d '{"method":"tools/list","id":1}'
# Get current annotations
curl -s http://127.0.0.1:3846/mcp \
-H "Content-Type: application/json" \
-d '{"method":"tools/call","id":2,"params":{"name":"list_annotations"}}'
SSE (Server-Sent Events)
Subscribe to real-time session updates at http://127.0.0.1:3846/sse.
Architecture
UIPin/
├── electron/ # Electron main process
│ ├── main.ts # Window, IPC, shortcuts, tray
│ ├── preload.ts # Context bridge API
│ ├── uia.ts # Windows UIAutomation (PowerShell)
│ ├── updater.ts # Auto-update via electron-updater
│ ├── logger.ts # Structured logging
│ ├── mcp/ # MCP protocol server (modular)
│ │ ├── http-server.ts # HTTP bootstrap, routing, CORS
│ │ ├── handlers.ts # Tool implementations
│ │ ├── sse.ts # SSE connection management
│ │ └── types.ts # Shared types
│ └── mcp-server.ts # Re-export facade
├── src/ # React renderer
│ ├── components/ # UI components
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Pure utility modules
│ ├── i18n/ # Internationalization
│ ├── context/ # React context + reducer
│ └── types/ # TypeScript type definitions
├── resources/ # Icons and images
└── .github/workflows/ # CI/CD pipeline
Development
# Install dependencies
npm install
# Start development mode
npm run dev
# Type check
npm run typecheck
# Lint
npm run lint
# Run tests
npm test
npm run test:watch
npm run test:e2e
# Build production
npm run build
# Package for distribution
npm run dist
Contributing
See CONTRIBUTING.md.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。