neko-mcp
Enables AI agents to control a neko virtual browser via WebSocket and REST APIs, while allowing live viewing through a WebRTC stream.
README
neko-mcp
MCP Server để AI agent điều khiển neko virtual browser, trong khi bạn xem live qua WebRTC stream.
Cách dùng
1. Cài đặt
cd neko-mcp
npm install
npm run build
2. Cấu hình trong Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"neko": {
"command": "node",
"args": ["/đường/dẫn/đến/neko-mcp/dist/index.js"],
"env": {
"NEKO_URL": "http://113.173.35.45:8080",
"NEKO_USERNAME": "neko",
"NEKO_PASSWORD": "admin"
}
}
}
}
Hoặc dùng biến môi trường mặc định (đã set sẵn cho server của bạn).
3. Quy trình dùng với AI Agent
Thứ tự khuyến nghị khi bắt đầu một task:
1. connect_websocket → Kết nối WebSocket
2. take_control → Lấy quyền điều khiển
3. screenshot → Xem màn hình hiện tại
4. navigate_url → Vào URL cần thiết
5. screenshot → Xem kết quả
6. mouse_click / type_text / key_press → Tương tác
7. screenshot → Xem kết quả
...
Tools
| Tool | Mô tả |
|---|---|
screenshot |
Chụp màn hình → trả về base64 JPEG |
navigate_url |
Điều hướng đến URL (dùng Ctrl+L) |
mouse_click |
Click tại (x, y) |
mouse_move |
Di chuột đến (x, y) |
mouse_scroll |
Cuộn trang tại (x, y) |
type_text |
Gõ text (dùng clipboard trick) |
key_press |
Nhấn tổ hợp phím |
get_clipboard |
Lấy nội dung clipboard |
set_clipboard |
Đặt nội dung clipboard |
get_screen_info |
Lấy độ phân giải màn hình |
take_control |
Lấy quyền điều khiển |
release_control |
Nhả quyền điều khiển |
connect_websocket |
Kết nối WebSocket |
Phím đặc biệt cho key_press
ctrl, shift, alt, super
Return (Enter), Escape, Tab, BackSpace, Delete
Left, Right, Up, Down
Home, End, Page_Up, Page_Down
F1 - F12
space
a-z, 0-9, ký tự bình thường
Ví dụ tổ hợp phím:
- Ctrl+C:
["ctrl", "c"] - Ctrl+L (focus address bar):
["ctrl", "l"] - Ctrl+Shift+T (mở tab mới):
["ctrl", "shift", "t"]
Kiến trúc
Claude/AI Agent
│ MCP tools
▼
neko-mcp server
├── REST API → /api/login, /api/room/screen/shot.jpg,
│ /api/room/clipboard, /api/room/control/take
└── WebSocket → /api/ws (mouse, keyboard, scroll events)
▼ neko server renders
Bạn xem qua browser (WebRTC)
Ghi chú
- WebSocket format: MCP dùng v3 API format (
/api/ws). Nếu server dùng legacy mode, có thể cần adjust message format. - type_text dùng clipboard trick: set text qua REST API rồi paste Ctrl+V — đảm bảo Unicode hoạt động tốt.
- Screenshot trả về base64 JPEG — AI agent (Claude) có thể đọc ảnh này để hiểu màn hình đang hiển thị gì.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.