LINE messaging platform
## Line MCP Server: Asian Messaging Platform The **Line MCP Server** integrates Line's messaging platform into Google Antigravity. This enables building bots and sending messages on Asia's leading messaging app with rich features like Flex Messages and LIFF. ### Why Line MCP? Line dominates Asian messaging: - **200M+ Users**: Japan, Taiwan, Thailand, Indonesia - **Rich Messages**: Flex Messages, templates - **LIFF**: Line Front-end Framework - **Line Pay**: Payment integration - **Official Accounts**: Business messaging ### Key Features #### 1. Send Messages ```python from linebot import LineBotApi from linebot.models import TextSendMessage, FlexSendMessage line_bot = LineBotApi("channel-access-token") # Send text line_bot.push_message( user_id, TextSendMessage(text="Your order has shipped!") ) # Send flex message flex_content = { "type": "bubble", "body": { "type": "box", "layout": "vertical", "contents": [ {"type": "text", "text": "Order Status", "weight": "bold"}, {"type": "text", "text": "Shipped :package:"} ] } } line_bot.push_message(user_id, FlexSendMessage(alt_text="Order Status", contents=flex_content)) ``` #### 2. Bot Webhooks ```python from linebot import WebhookHandler from linebot.models import MessageEvent, TextMessage handler = WebhookHandler("channel-secret") @handler.add(MessageEvent, message=TextMessage) def handle_message(event): text = event.message.text if "status" in text.lower(): line_bot.reply_message( event.reply_token, TextSendMessage(text="All systems operational!") ) ``` #### 3. Rich Menus ```python from linebot.models import RichMenu rich_menu = RichMenu( size={"width": 2500, "height": 843}, selected=True, name="Main Menu", chat_bar_text="Menu", areas=[ {"bounds": {"x": 0, "y": 0, "width": 1250, "height": 843}, "action": {"type": "message", "text": "Status"}} ] ) menu_id = line_bot.create_rich_menu(rich_menu) ``` ### Configuration ```json { "mcpServers": { "line": { "command": "npx", "args": ["-y", "@anthropic/mcp-line"], "env": { "LINE_CHANNEL_ACCESS_TOKEN": "your-token", "LINE_CHANNEL_SECRET": "your-secret" } } } } ``` ### Use Cases **Asian Markets**: Reach users in Japan, Taiwan, Thailand. **Rich Bots**: Build interactive bots with Flex Messages. **Customer Engagement**: Official account messaging. The Line MCP Server brings Asian messaging to Antigravity.
{
"mcpServers": {
"line": {
"mcpServers": {
"line": {
"env": {
"LINE_CHANNEL_ACCESS_TOKEN": "YOUR_TOKEN"
},
"args": [
"-y",
"line-bot-mcp-server"
],
"command": "npx"
}
}
}
}
}