Hamibot MCP Server
Enables management and control of Hamibot devices and scripts, including device listing, script execution, and custom JavaScript code execution.
README
🤖 Hamibot MCP Server
Hamibot MCP Server 是一个基于 Model Context Protocol (MCP) 的服务器实现,用于与 Hamibot API 进行交互。它提供了一系列工具来管理和控制 Hamibot 设备及脚本。
✨ 功能特性
- 设备管理:列出所有连接的设备
- 脚本管理:查看和运行自动化脚本
- 代码执行:在指定设备上执行自定义 JavaScript 代码
- 支持变量传递:可以向脚本传递自定义参数
⚙️ 配置
获取访问令牌
在 Trae 中使用
详细步骤参考 Trae 文档:https://docs.trae.ai/ide/model-context-protocol?_lang=zh
- 按键
F1 - 输入
open mcp config json,点击进去 - 在
mcp.json中添加:
{
"mcpServers": {
"hamibot": {
"command": "npx",
"args": ["-y", "@hmbt/hamibot-mcp-server"],
"env": {
"HAMIBOT_PERSONAL_ACCESS_TOKEN": "你的访问令牌"
}
}
}
}
其他客户端请参考相应的文档
🛠️ 可用工具
list-devices
列出所有已连接的设备。
list-scripts
列出所有可用的自动化脚本。
run-script
在指定设备上运行脚本。
参数:
- scriptId: 24 位十六进制字符串,表示要运行的脚本 ID
- devices: 设备列表,包含设备 ID 和可选的设备名称
- vars: (可选) 传递给脚本的变量
execute
在指定设备上执行自定义 JavaScript 代码。
参数:
- code: JavaScript Hamibot 代码
- devices: 设备列表,包含设备 ID 和可选的设备名称
- vars: (可选) 传递给代码的变量
📝 示例
获取设备列表获取脚本列表在 "设备名" 上运行脚本 "脚本名",设备名和脚本名加引号,会更明确,例如在 "初号机" 上运行脚本 "演示脚本"

在所有 tag1 标签的设备上运行 "演示脚本"在初号机上运行这个脚本文件

💻 开发
# 构建项目
npm run build
# 启动服务器
npm start
# 开发模式(监视文件变化)
npm run watch
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.