LL

line/line-bot-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

793 stars 156 forks 质量 89 趋势 42Apache-2.0

集成LINE消息API的MCP服务器,将AI代理连接到LINE官方账户。

概览

模型上下文协议(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(字符串):当无法显示flex消息时显示的替代文本。- message.contents(任意):flex消息的内容。

概述(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向用户推送高度自定义的Flex消息。
  • 输入:
  • userId(字符串?):接收消息的用户ID。默认为DESTINATION_USER_ID。必须设置userId或DESTINATION_USER_ID。
  • message.altText(字符串):当无法显示灵活消息时显示的替代文本。
  • message.contents (任意):flex消息的内容。这是一个定义消息布局和组成部分的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
新手?先看 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" } } } }