简单的MCP主机
一个用于 chrome-devtools-mcp 的最小化 HTTP 封装,可部署到云平台。
🚀 部署到 Railway(免费)
- 创建铁路账户https://railway.app 翻译为中文可以是:“铁路应用程序”或“铁路应用官网”,具体取决于上下文和该网站的具体内容。但通常,网址本身不会直接翻译,而是描述其指向的内容或功能。所以,这里提供的是对网址所代表内容的一种可能的中文描述
- 连接GitHub将此仓库 Fork 到你的 GitHub
- 部署铁路 → 新项目 → 从GitHub部署 → 选择您的仓库
- 获取URL铁路会为您提供一个公共URL,例如
https://your-app.railway.app
🚀 部署到Render(免费)
- 创建渲染账户https://render.com(该网址本身无需翻译,保持原样即可)
- 新的网络服务 → 连接GitHub仓库
- 设置:
- 构建命令: npm install - 启动命令: npm start
- 部署 → 获取您的URL
🚀 部署到 DigitalOcean 应用平台
- DigitalOcean 账户 → 应用平台
- 创建应用程序 → GitHub 仓库
- 部署 → 获取URL
🎯 使用方法
您部署的URL将包含以下端点:
GET /health- 检查服务器是否正在运行GET /tools- 列出可用的MCP工具POST /execute- 执行一个工具
示例工具执行:
# Navigate to a website
curl -X POST https://your-app.railway.app/execute \
-H "Content-Type: application/json" \
-d '{
"tool": "navigate",
"arguments": {"url": "https://example.com"}
}'
# Fill a form
curl -X POST https://your-app.railway.app/execute \
-H "Content-Type: application/json" \
-d '{
"tool": "fill_form",
"arguments": {
"fields": {
"#username": "testuser",
"#password": "testpass"
}
}
}'
# Click an element
curl -X POST https://your-app.railway.app/execute \
-H "Content-Type: application/json" \
-d '{
"tool": "click",
"arguments": {"selector": "#login-button"}
}'
# Take screenshot
curl -X POST https://your-app.railway.app/execute \
-H "Content-Type: application/json" \
-d '{
"tool": "take_screenshot",
"arguments": {"fullPage": true}
}'