LINE

LINE

Integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

496
Stars
85
Forks
7
Releases

Overview

LINE Bot MCP Server is a Model Context Protocol (MCP) server that bridges the LINE Messaging API with an AI agent by exposing a set of MCP tools to interact with a LINE Official Account. This repository presents a preview release intended for experimental use and may lack full functionality or official support. The server enables both targeted messaging and broadcasting to LINE users through commands such as push_text_message, push_flex_message, broadcast_text_message, and broadcast_flex_message. Each tool defines required inputs (for example, userId or DESTINATION_USER_ID for user-targeted messages, and message contents for flex messages) and supports typical LINE features like altText for fallback, and contents.type values 'bubble' or 'carousel'. Additional capabilities include retrieving user profiles (get_profile), inspecting messaging quotas (get_message_quota), and rich menu management (get_rich_menu_list, delete_rich_menu, set_rich_menu_default, cancel_rich_menu_default, create_rich_menu) with a range of supported action types. The server can be run via npx or Docker, configured with CHANNEL_ACCESS_TOKEN and DESTINATION_USER_ID, and tested locally with the MCP Inspector. It is designed to assist developers in LINE-based automation and AI agent integrations.

Details

Owner
line
Language
TypeScript
License
Apache License 2.0
Updated
2025-12-07

Features

push_text_message

Push a simple text message to a user via LINE. Requires a userId or DESTINATION_USER_ID and the message.text content.

push_flex_message

Push a highly customizable flex message to a user. Supports userId, message.altText, message.contents (JSON), and contents.type values such as 'bubble' or 'carousel'.

broadcast_text_message

Broadcast a simple text message to all followers of the LINE Official Account.

broadcast_flex_message

Broadcast a customizable flex message to all followers. Includes message.altText and contents (JSON) with contents.type values like 'bubble' or 'carousel'.

get_profile

Retrieve detailed LINE user profile information including display name, avatar URL, status message, and language. Optional input: userId.

get_message_quota

Query the LINE Official Account's monthly message quota and current usage.

get_rich_menu_list

Fetch the list of rich menus associated with the LINE Official Account.

create_rich_menu

Create a new rich menu from a set of actions, generate and upload an image, and set it as default. Supports actions such as postback, message, URI, datetimepicker, camera, and more.

Audience

AI AgentsConnect an AI agent to a LINE Official Account via MCP server to send and receive messages.
LINE AdminsAdminister LINE Official Account interactions, quotas, and rich menus through the MCP server.
DevelopersDevelopers building LINE-based automation tools by integrating this MCP server's features.

Tags

LINELINE Messaging APIMCPModel Context ProtocolRich MenuFlex MessagePush MessageBroadcast MessageAI Agent IntegrationDockernpx