Loading...

This MCP server connects AI agents to LINE Official Accounts, enabling them to send messages, manage rich menus, and retrieve user profiles via the LINE Messaging API.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
This MCP server connects AI agents to LINE Official Accounts, enabling them to send messages, manage rich menus, and retrieve user profiles via the LINE Messaging API.
This server offers a mix of read and write operations on a LINE Official Account. While it doesn't provide direct system-level access, the ability to send messages and modify rich menus carries a moderate risk if the CHANNEL_ACCESS_TOKEN is compromised or the tools are misused. It is safe when used with explicit user IDs and carefully crafted messages, but risky when broadcasting or manipulating rich menus without proper testing.
Performance will be limited by the LINE Messaging API rate limits and the processing power of the host environment. Optimize message content and rich menu designs for efficient delivery.
Cost is primarily determined by the number of messages sent through the LINE Messaging API. Monitor message quota usage to avoid exceeding limits and incurring additional charges.
npm install
```{
"mcpServers": {
"line-bot": {
"command": "npx",
"args": [
"@line/line-bot-mcp-server"
],
"env": {
"CHANNEL_ACCESS_TOKEN" : "FILL_HERE",
"DESTINATION_USER_ID" : "FILL_HERE"
}
}
}
}push_text_messageSends a simple text message to a specified user via LINE.
Can be used to send unwanted messages if userId is not properly validated.
push_flex_messageSends a customizable flex message to a user via LINE.
Flex messages allow complex content, increasing the risk of phishing or malicious content.
broadcast_text_messageBroadcasts a simple text message to all users who follow the LINE Official Account.
Can be used for spam or to spread misinformation to a large audience.
broadcast_flex_messageBroadcasts a customizable flex message to all users who follow the LINE Official Account.
Flex messages allow complex content, increasing the risk of phishing or malicious content to a large audience.
get_profileRetrieves the profile information of a specified LINE user.
Read-only operation that retrieves publicly available user information.
get_message_quotaRetrieves the message quota and consumption of the LINE Official Account.
Read-only operation that retrieves account usage information.
get_rich_menu_listRetrieves a list of rich menus associated with the LINE Official Account.
Read-only operation that retrieves configuration data.
delete_rich_menuDeletes a specified rich menu from the LINE Official Account.
Destructive operation that can impact user experience if deleted incorrectly.
set_rich_menu_defaultSets a specified rich menu as the default for the LINE Official Account.
Can disrupt user experience if set to an incorrect or broken rich menu.
cancel_rich_menu_defaultCancels the default rich menu setting for the LINE Official Account.
Can temporarily disrupt user experience by removing the default rich menu.
create_rich_menuCreates a rich menu based on the given actions, uploads an image, and sets it as default.
Can disrupt user experience if set to an incorrect or broken rich menu, and image upload could introduce vulnerabilities.
Token
cloud
This server offers a mix of read and write operations on a LINE Official Account. While it doesn't provide direct system-level access, the ability to send messages and modify rich menus carries a moderate risk if the CHANNEL_ACCESS_TOKEN is compromised or the tools are misused. It is safe when used with explicit user IDs and carefully crafted messages, but risky when broadcasting or manipulating rich menus without proper testing.
Autonomy depends on the configuration of the AI agent and the permissions granted through the CHANNEL_ACCESS_TOKEN. Exercise caution when automating destructive tools.
Production Tip
Implement robust input validation and error handling to prevent unexpected behavior and ensure the stability of the LINE Official Account.
The CHANNEL_ACCESS_TOKEN is a secret key that authorizes access to the LINE Messaging API. You can find it in the LINE Developers Console for your LINE Official Account.
The DESTINATION_USER_ID is the ID of the user who will receive messages. It is required when the tool's input does not include a userId.
Implement robust input validation, rate limiting, and user consent mechanisms to prevent abuse and ensure responsible messaging practices.
Flex messages have limitations on the size and complexity of the JSON payload. Refer to the LINE Messaging API documentation for details.
Use the get_message_quota tool to retrieve the current message quota and consumption.
No, you can only send messages to users who have followed your LINE Official Account or have interacted with your bot.
Implement try/catch blocks and error callbacks to gracefully handle errors and prevent the server from crashing.