MCP server that integrates the LINE Messaging API to connect an AI Agent to a LINE Official Account, offering tools to push/broadcast messages, manage rich menus, and query account info.
https://github.com/line/line-bot-mcp-serverBuilding LINE bots usually means wrestling with webhooks, message formatting, and API quirks. This MCP server from LINE eliminates that complexity by connecting your AI agent directly to LINE Official Accounts through a clean set of tools.
If you're building customer service automation, notification systems, or interactive experiences for Asian markets, LINE is essential. But integrating LINE's Messaging API typically requires custom webhook handlers, message parsing, and dealing with LINE's specific message formats.
This server handles all of that infrastructure. Your AI agent gets simple tools like push_text_message and broadcast_flex_message while the server manages the LINE API complexity behind the scenes.
Direct Messaging Control: Push targeted messages to specific users or broadcast to your entire follower base. Perfect for order confirmations, support responses, or marketing campaigns.
Rich Message Support: Send LINE's interactive Flex Messages with custom layouts, buttons, and carousels. Your AI can create engaging, branded experiences that go far beyond plain text.
Account Management: Query user profiles, check message quotas, and manage rich menus programmatically. Your agent can adapt responses based on user data and account limits.
Production Ready: This comes from LINE themselves, uses their official SDK, and includes proper Docker support for deployment.
Automated Customer Service: Your AI agent can handle support tickets, check order status, and escalate complex issues while maintaining context across LINE conversations.
Smart Notifications: Build intelligent alert systems that notify users about deliveries, appointments, or account activity with rich, actionable messages.
Interactive Marketing: Create campaigns where your AI agent sends personalized product recommendations, collects feedback, or guides users through promotional flows.
Event Management: Automatically send event updates, handle RSVPs, and provide real-time information to attendees through LINE's familiar interface.
The setup is straightforward - just add the MCP server to Claude Desktop or your preferred AI client:
{
"mcpServers": {
"line-bot": {
"command": "npx",
"args": ["@line/line-bot-mcp-server"],
"env": {
"CHANNEL_ACCESS_TOKEN": "your_token_here",
"DESTINATION_USER_ID": "default_user_id"
}
}
}
}
Your AI agent immediately gains access to 10 LINE-specific tools without any custom code. No webhook setup, no message parsing, no API documentation deep-dives.
The tools follow intuitive patterns. Want to send a simple message? Use push_text_message with a user ID and text. Need something more sophisticated? push_flex_message accepts JSON layouts that define interactive components.
The server handles authentication, rate limiting, and error responses. Your agent focuses on conversation logic while LINE integration just works.
For teams building LINE-based automation, this server removes the typical 2-3 day integration overhead and replaces it with a 10-minute configuration step. That's the kind of productivity gain that changes project timelines.