LINE Messaging API
Send push, reply and broadcast messages from a LINE Official Account — LINE is the dominant chat platform in Japan, Taiwan and Thailand. Free tier of 500 push messages per month, unlimited reply messages, channel access tokens require no KYC.
7-day free trial · No credit card · EU-hosted
Ask LINE anything
Try a real prompt against LINE Messaging API via AnythingMCP — Claude calls the tools, returns the answer. Press Enter on your own message to install on Cloud.
Install LINE on CloudClaude is AI and can make mistakes. Please double-check responses.
Setup in 2 minutes
- 1Start a free trial on cloud.anythingmcp.com.
- 2Click LINE Messaging API in the connector store. Paste credentials when prompted.
- 3Mint an MCP API key and point your AI client at the generated MCP URL.
Guides for LINE
Step-by-step setup for the most popular AI clients.
Setting up LINE Messaging API
From the connector definition itself: where to find the credentials, what they need to be allowed to do, and which API this adapter talks to.
This connector uses the LINE Messaging API v2.
Creating a channel: log in to https://developers.line.biz/console → create a Provider → 'Create a new channel' → 'Messaging API'. Set up the LINE Official Account (auto-created with the channel), then under the channel's 'Messaging API' tab, scroll to 'Channel access token' → 'Issue' a long-lived token. Paste it as LINE_CHANNEL_ACCESS_TOKEN.
Authentication: Bearer Token (the channel access token). Note: this token belongs to the channel, not to a user — anyone with the token can post as that Official Account, so keep it secret.
Message shape: LINE messages are objects with a type field. Simplest example: {"type": "text", "text": "Hello"}. Other types: sticker, image, video, audio, location, template, flex. The messages parameter on every tool is an array of up to 5 message objects.
to userId: cannot be looked up cold — you only get a userId from webhook events when a user interacts with the Official Account. Store the userId on first webhook contact, then use it for push.
replyToken: returned in webhook events. Valid for ~30 seconds after the original user message. Use line_reply_message (free, unlimited) instead of line_push_message (counts against the 500/month free quota) whenever possible.
Broadcast: sends to ALL friends of the Official Account. Counts heavily against the push quota — use sparingly.
Pricing: free tier = 500 push messages/month. Paid tiers from JP¥5,000/month for higher quotas.
Your AI is two clicks away from LINE Messaging API.
Install the connector, paste your credentials, ask your AI a question. 7-day free trial, no credit card.