LoopIn

LoopIn

Bridges a browser extension with an AI agent via MCP, enabling the agent to capture and act on UI elements, styles, and accessibility data from web pages.

Category
访问服务器

README

LoopIn

Give your AI coding agent eyes on the browser. Capture UI elements, text, styles, and accessibility data — then send it all directly to your agent via MCP.

How It Works

Browser Extension → HTTP → LoopIn Server → MCP (stdio) → AI Agent

LoopIn runs a local server that bridges your browser and your AI agent. The Chrome extension captures elements you click on, enriches them with context (HTML, CSS, selectors, accessibility attributes, React components), and sends it to the server. Your agent reads captures through MCP tools — no copy-paste, no screenshots.

Two Ways to Use LoopIn

Option A: Local Agent (Claude Code on your machine)

The simplest setup. Everything runs on one machine.

┌─────────────┐     ┌──────────────┐     ┌─────────────┐
│   Chrome     │────▶│ LoopIn Server│────▶│ Claude Code │
│  Extension   │     │  (port 3456) │     │   (local)   │
└─────────────┘     └──────────────┘     └─────────────┘
         Your laptop

1. Install & build

git clone https://github.com/skip5this/LoopIn.git
cd LoopIn
npm install
npm run build

2. Add LoopIn as an MCP server

Add to your ~/.claude.json:

{
  "mcpServers": {
    "loopin": {
      "command": "node",
      "args": ["/path/to/LoopIn/dist/server.js"]
    }
  }
}

3. Restart Claude Code so it picks up the new MCP server.

4. Load the Chrome extension

  • Open chrome://extensions
  • Enable "Developer mode"
  • Click "Load unpacked" → select the extension/ folder
  • Pin LoopIn to your toolbar

5. Capture

  • Click the LoopIn icon to activate
  • Click any element on a page
  • Add context ("Make this button green", "Fix the alignment here")
  • Hit Capture
  • In Claude Code: "What did I just capture?" or "Any pending tasks?"

That's it. Your agent can now see what you see.


Option B: Remote Agent (OpenClaw / another machine)

This is for when your AI agent runs on a different machine than your browser — like an always-on server, a home lab setup, or an OpenClaw agent.

┌─────────────┐     ┌──────────────┐            ┌──────────────┐
│   Chrome     │────▶│ LoopIn Server│───── network ────▶│  AI Agent    │
│  Extension   │     │  (port 3456) │            │ (other machine)│
└─────────────┘     └──────────────┘            └──────────────┘
    Your laptop         Your laptop              Server / iMac / etc.

The key difference: your agent can't use stdio MCP directly because it's on a different machine. Instead, the agent hits LoopIn's HTTP API over the network.

1. Set up LoopIn on your laptop

Same as Option A — install, build, load the extension. But you'll also need to make the server accessible on your network:

# Start the server (it listens on all interfaces by default on port 3456)
npm run build && node dist/server.js

2. Configure your agent to reach LoopIn

Your remote agent needs to know your laptop's IP and LoopIn's port. The agent calls the HTTP API directly:

# Check for new captures
curl http://YOUR_LAPTOP_IP:3456/captures

# Get the latest capture
curl http://YOUR_LAPTOP_IP:3456/captures/latest

# Get pending tasks (captures with instructions)
curl http://YOUR_LAPTOP_IP:3456/tasks/pending

# Mark a task done
curl -X POST http://YOUR_LAPTOP_IP:3456/tasks/0/done

3. Webhook notifications (optional)

Want your agent to be notified instantly when you capture something? Set the OPENCLAW_WEBHOOK_URL environment variable:

OPENCLAW_WEBHOOK_URL=http://AGENT_IP:PORT/webhook node dist/server.js

LoopIn will POST to that URL every time a capture comes in — so your agent doesn't have to poll.

4. Extension settings

If the LoopIn server is running on a different machine than Chrome (less common), open the extension settings (gear icon) and change the server URL from http://localhost:3456 to http://SERVER_IP:3456.

Real-world example: This is exactly how we use LoopIn. Scott browses on his MacBook, captures UI elements, and Rene (an OpenClaw agent running on an iMac across the room) picks them up over the local network and acts on them.


Chrome Extension Controls

Button Action
● Capture Toggle capture mode — hover to highlight, click to capture
📋 Tasks View all captures in a session panel
⚙ Settings Server URL, connection status

MCP Tools (Local Agent)

Tool Description
get_captured_element Get the most recent capture
list_captures List all captures with timestamps
get_capture Get a specific capture by index
clear_captures Clear all captures
get_pending_tasks Get captures that have instructions attached
mark_task_done Mark a task as complete
get_console_errors Get captured console errors from the page

HTTP API (Remote Agent)

Endpoint Method Description
/health GET Server status check
/stats GET Capture count and server info
/captures GET List all captures
/captures/latest GET Most recent capture
/capture/element POST Submit a capture (used by extension)
/tasks/pending GET Captures with instructions
/tasks/:index/done POST Mark task complete

What Gets Captured

Every element capture includes:

  • HTML — Tag, classes, inner content
  • CSS — Computed colors, spacing, layout, typography
  • Selector — Unique path to the element
  • Dimensions — Width, height, position
  • Context — Heading hierarchy, data attributes
  • React Components — Fiber tree (when available)
  • Your Instructions — Whatever context you add ("Make this green", "Fix the spacing")

Environment Variables

Variable Default Description
BROWSER_BRIDGE_PORT 3456 Port for the HTTP server
OPENCLAW_WEBHOOK_URL — URL to POST capture notifications to

Privacy

All data stays local. LoopIn runs entirely on your machine — no cloud services, no telemetry, no data collection. Captures exist only in memory and are cleared when the server restarts. See PRIVACY.md for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选