LL

line/line-bot-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

793 stars 156 forks 品質 89 トレンド 42Apache-2.0

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公式アカウントに接続します。

[!注] このリポジトリはプレビュー版として提供されています。実験目的で提供していますが、完全な機能や包括的なサポートを含んでいない可能性があることをご了承ください。

道具

  1. push_text_message
  • LINE経由でユーザーに簡単なテキストメッセージをプッシュする。
  • 入力:
  • userId(文字列?):メッセージを受け取るユーザーID。デフォルトはDESTINATION_USER_ID。userIdまたはDESTINATION_USER_IDのいずれかを設定する必要があります。
  • message.text(文字列):ユーザーに送信するためのプレーンテキストコンテンツ。
  1. push_flex_message
  • LINEを通じて高度にカスタマイズ可能なフレックスメッセージをユーザーにプッシュします。
  • 入力:
  • userId(文字列?):メッセージを受信するためのユーザーID。デフォルトはDESTINATION_USER_ID。userIdまたはDESTINATION_USER_IDのいずれかを設定する必要があります。
  • message.altText(文字列):フレックスメッセージを表示できない場合に表示される代替テキスト。
  • message.contents(任意):フレックスメッセージの内容。これはメッセージのレイアウトと構成要素を定義するJSONオブジェクトです。
  • 伝言だ。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 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

  1. 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. Either userId or DESTINATION_USER_ID must be set.
      • message.text (string): The plain text content to send to the user.
  2. 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. Either userId or DESTINATION_USER_ID must 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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
  7. get_rich_menu_list
    • Get the list of rich menus associated with your LINE Official Account.
    • Inputs:
      • None
  8. delete_rich_menu
    • Delete a rich menu from your LINE Official Account.
GitHub で README 全文を見る

インストール

npx @line/line-bot-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "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" } } } }