
line/line-bot-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
LINE Messaging APIを統合し、AIエージェントをLINE公式アカウントに接続するMCPサーバー。
概要
モデルコンテキストプロトコル(MCP)サーバー実装で、LINEメッセージングAPIを統合してAIエージェントをLINE公式アカウントに接続します。 このリポジトリはプレビュー版として提供されています。実験目的で提供していますが、完全な機能や包括的なサポートを含んでいない可能性があることにご了承ください。 1. - LINE経由でユーザーに簡単なテキストメッセージをプッシュする。- - userId(文字列?):メッセージを受け取るユーザーID。デフォルトはDESTINATION_USER_ID。userIDまたはDESTINATION_USER_IDのいずれかを設定する必要があります。- message.text(文字列):ユーザーに送るプレーンテキストのコンテンツ。2. - LINE経由でユーザーに高度にカスタマイズ可能なフレックスメッセージをプッシュする。- - userId(文字列?):メッセージを受け取るユーザーID。デフォルトはDESTINATION_USER_ID。userIDまたはDESTINATION_USER_IDのいずれかを設定する必要があります。- message.altText(文字列):フレックスメッセージを表示できない場合に表示される代替テキスト。- message.contents(任意):フレックスメッセージの内容。
概要(AI 翻訳)
日本語版 READMEはこちら
LINE ボット MCP サーバー
モデルコンテキストプロトコル(MCP)サーバー実装で、LINEメッセージングAPIを統合してAIエージェントをLINE公式アカウントに接続します。
[!注] このリポジトリはプレビュー版として提供されています。実験目的で提供していますが、完全な機能や包括的なサポートを含んでいない可能性があることをご了承ください。
道具
- push_text_message
- LINE経由でユーザーに簡単なテキストメッセージをプッシュする。
- 入力:
userId(文字列?):メッセージを受け取るユーザーID。デフォルトはDESTINATION_USER_ID。userIdまたはDESTINATION_USER_IDのいずれかを設定する必要があります。message.text(文字列):ユーザーに送信するためのプレーンテキストコンテンツ。
- push_flex_message
- LINEを通じて高度にカスタマイズ可能なフレックスメッセージをユーザーにプッシュします。
- 入力:
userId(文字列?):メッセージを受信するためのユーザーID。デフォルトはDESTINATION_USER_ID。userIdまたはDESTINATION_USER_IDのいずれかを設定する必要があります。message.altText(文字列):フレックスメッセージを表示できない場合に表示される代替テキスト。message.contents(任意):フレックスメッセージの内容。これはメッセージのレイアウトと構成要素を定義するJSONオブジェクトです。- 伝言だ。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
LINE Bot MCP Server
Model Context Protocol (MCP) server implementation that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.
[!NOTE] This repository is provided as a preview version. While we offer it for experimental purposes, please be aware that it may not include complete functionality or comprehensive support.
Tools
- push_text_message
- Push a simple text message to a user via LINE.
- Inputs:
userId(string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. EitheruserIdorDESTINATION_USER_IDmust be set.message.text(string): The plain text content to send to the user.
- push_flex_message
- Push a highly customizable flex message to a user via LINE.
- Inputs:
userId(string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. EitheruserIdorDESTINATION_USER_IDmust be set.message.altText(string): Alternative text shown when flex message cannot be displayed.message.contents(any): The contents of the flex message. This is a JSON object that defines the layout and components of the message.message.contents.type(enum): Type of the container. ‘bubble’ for single container, ‘carousel’ for multiple swipeable bubbles.
- broadcast_text_message
- Broadcast a simple text message via LINE to all users who have followed your LINE Official Account.
- Inputs:
message.text(string): The plain text content to send to the users.
- broadcast_flex_message
- Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account.
- Inputs:
message.altText(string): Alternative text shown when flex message cannot be displayed.message.contents(any): The contents of the flex message. This is a JSON object that defines the layout and components of the message.message.contents.type(enum): Type of the container. ‘bubble’ for single container, ‘carousel’ for multiple swipeable bubbles.
- get_profile
- Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.
- Inputs:
userId(string?): The ID of the user whose profile you want to retrieve. Defaults to DESTINATION_USER_ID.
- get_message_quota
- Get the message quota and consumption of the LINE Official Account. This shows the monthly message limit and current usage.
- Inputs:
- None
- get_rich_menu_list
- Get the list of rich menus associated with your LINE Official Account.
- Inputs:
- None
- delete_rich_menu
- Delete a rich menu from your LINE Official Account.
インストール
npx @line/line-bot-mcp-server設定
{
"mcpServers": {
"line-bot": {
"command": "npx",
"args": [
"@line/line-bot-mcp-server"
],
"env": {
"NPM_CONFIG_IGNORE_SCRIPTS": "true",
"CHANNEL_ACCESS_TOKEN" : "FILL_HERE",
"DESTINATION_USER_ID" : "FILL_HERE"
}
}
}
}