line-render-mcp
Render 向け LINE Webhook + Remote MCP
このサービスには2つの公開エンドポイントがあります:
POST /callback— LINE Messaging API の webhook。LINE_CHANNEL_SECRETで保護されています。GET, POST, DELETE /mcp— Streamable HTTP のMCPエンドポイント。MCP_API_KEYを Bearer トークンとして使用して保護されています。
できること
User ID(
U...)または Group ID(C...)に LINE テキストメッセージを送信できます。LINE Flex Messages を送信できます。
メッセージの送信枠(quota)を報告します。
グループ Webhook を受信し、サービス起動後に受信した Group 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/mcpAuthorization: Bearer <MCP_API_KEY>を送信するように設定し、必要なツールだけを有効にしてください。
ローカルテスト
npm install
Copy-Item .env.example .env
# Fill the values in .env, then:
npm run devWebhook のテストでは、開発中のみ公開 HTTP トンネルを使用してください。本番では 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