line-render-mcp
面向 Render 的 LINE Webhook + 远程 MCP
此服务提供两个公开端点:
POST /callback— 受LINE_CHANNEL_SECRET保护的 LINE Messaging API Webhook。GET, POST, DELETE /mcp— 使用MCP_API_KEY作为 Bearer 令牌保护的 Streamable HTTP MCP 端点。
它能做什么
向用户 ID (
U...) 或群组 ID (C...) 发送 LINE 文本消息。发送 LINE Flex 消息。
报告消息配额。
接收群组 Webhook,并公开服务启动以来收到的群组 ID。
Related MCP server: Python LINE MCP Server
部署到 Render
将此目录推送到一个 私有 GitHub 仓库。不要提交
.env。在 Render 中,选择 New > Blueprint,选择该仓库,并从
render.yaml创建服务。在 Render 服务的 Environment 选项卡中设置:
CHANNEL_ACCESS_TOKENLINE_CHANNEL_SECRETDESTINATION_ID(可选)将生成的
MCP_API_KEY保密。
部署成功后,复制公共 URL。它看起来类似
https://line-render-mcp.onrender.com。在 LINE Developers Console > Messaging API 中:
将 Webhook URL 设置为
https://line-render-mcp.onrender.com/callback;点击 Verify;
打开 Use webhook;
如需群组投递,请启用 Allow bot to join group chats。
在 ChatGPT Business 工作区中,使用端点
https://line-render-mcp.onrender.com/mcp创建自定义 App,并配置为发送Authorization: Bearer <MCP_API_KEY>,且只启用你需要的工具。
本地测试
npm install
Copy-Item .env.example .env
# Fill the values in .env, then:
npm run dev如需进行 Webhook 测试,请仅在开发阶段使用公共 HTTPS 隧道。生产环境请使用 Render 的 URL。
安全说明
绝不要把 LINE 访问令牌或
MCP_API_KEY放进源代码、Issue 或公共仓库中。保持 Render 仓库私有。
MCP_API_KEY可以发送 LINE 消息。若泄露,请立即轮换。get_known_groups目前仅将 ID 存储在进程内存中。在跨重新部署或多个服务实例依赖它之前,请先使用数据库。
This server cannot be deployed
Maintenance
Related MCP Connectors
Let Claude or ChatGPT search, read and send your WhatsApp messages over MCP. OAuth sign-in.
Summarize, search, and manage your own WhatsApp groups from any MCP client.
MCP server for Sendbird — chat users, channels, members, and messages from your AI client.
Hosted Slack MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to send LINE messages, including text, stamps, Flex Messages, and check message quotas through the LINE Messaging API.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables language models to read and analyze LINE Bot conversations through a standardized MCP interface. Supports text, sticker, and image messages with webhook event handling and message storage in JSON format.20-

LINE Bot MCP Serverofficial
AlicenseAqualityAmaintenanceMCP server that integrates the LINE Messaging API to enable AI agents to send messages and manage LINE Official Accounts.123,602 npm796Apache 2.0- AlicenseNot gradedqualityDmaintenanceEnables sending LINE messages (push, multicast, broadcast), retrieving user profiles, checking quotas, and sending flex messages via Claude using the LINE Messaging API.62 npmApache 2.0