Connector guide6-minute read8 MCP tools7 languages

Connect LINE to ChatGPT via MCP: Messages and Quotas

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.

HCBy HelpCode teamUpdated 6 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

LINE Messaging API

LINE Messaging API

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.

tools

8

Region

JP

Category

Messaging

Authentication

Bearer Token

Required env vars

LINE_CHANNEL_ACCESS_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.

Guided setup

Connect LINE Messaging API to ChatGPT in 2 minutes

Start a free trial on AnythingMCP Cloud, connect LINE Messaging API in the guided setup, then add your MCP URL to ChatGPT. No code and no server to run.

No credit card · 7-day trial · Self-host alternative available

AnythingMCP's plugin in ChatGPT's directory answers questions from your company databases on AnythingMCP Cloud (PostgreSQL, MySQL, SQL Server, Oracle, SAP HANA, SQLite, MongoDB, read-only): open the listing (opens in a new tab) and click Install plugin. Every other connector is added to ChatGPT as a custom MCP server with your AnythingMCP MCP URL.

Try asking

Example prompts for LINE Messaging API

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

LINE Messaging API · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → LINE Messaging API, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

LINE Messaging API + ChatGPT

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

LINE_CHANNEL_ACCESS_TOKEN

Step 1 — Get credentials

Setting up takes about 5 minutes. You need a LINE account to sign in to the LINE Developers Console; the LINE Official Account is created together with the channel.

  1. Open the LINE Developers Console (developers.line.biz/console) and create a Provider.
  2. Click Create a new channel and choose Messaging API. Set up the LINE Official Account that comes with the channel.
  3. In the channel, open the Messaging API tab, scroll to Channel access token and click Issue to get a long-lived token.
  4. Paste the token into LINE_CHANNEL_ACCESS_TOKEN.
  5. Install the connector and run line_get_bot_info: it is free and shows the bot's basic id (@...), display name and chat mode, so you see that the token works and which account it belongs to.

The token is the account: it belongs to the channel, not to a person. Anyone who has it can post as your Official Account, so keep it secret.

What it reads: the bot itself (bot userId, basic id, display name, picture, chat mode and whether messages are marked as read automatically); the monthly push and broadcast limit with line_get_message_quota and how much of it was used this month with line_get_message_quota_consumption; the display name, profile picture, status message and language of a user who added the account as a friend; and, on verified and premium accounts, the userIds of your friends.

Who gets the message: LINE addresses people by userId, a U followed by 32 hex characters, never by display name. A userId comes from a webhook event, and this connector does not receive webhooks, so you give it to the AI. On verified and premium accounts the AI can also list your friends with line_list_follower_ids, up to 1000 per page; friends who blocked the account or did not agree to share their profile are left out. A push can also go to a group (C...) or a room (R...).

Monthly quota, free replies: the free plan includes a monthly number of push and broadcast messages, and that number depends on the country; paid plans raise it. line_get_message_quota shows your account's own limit. A broadcast goes to all your friends and counts once per friend, so one message to 2,000 friends uses 2,000 of the quota. Replies with line_reply_message are free and unlimited, but they need the replyToken of the user's message, which works once and expires about a minute later.

Asks before every send: line_push_message and line_broadcast_message reach real people. The AI checks how much quota is left, shows you the recipient and the exact message, and waits for your yes. With notificationDisabled a message arrives without a notification.

Switched off at install: nothing, all 8 tools are on. If the AI should never write to all your friends at once, an administrator can switch off line_broadcast_message.

Limits: one call sends up to 5 messages: text (up to 5000 characters), stickers, images, video, audio, locations, templates and flex messages. LINE accepts a broadcast right away and delivers it in the background, so the answer means LINE took the job, not that everyone has read it.

Common errors: "Invalid reply token" means the token was already used, has expired or was not a real one: send a push instead. "The value for the 'userId' parameter is invalid" means a display name or a made-up id was used instead of a real userId. A 403 on line_list_follower_ids means the account is not verified or premium.

The connector does not receive webhooks, so it does not read incoming messages or your chat history, and it cannot turn a display name into a userId.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in ChatGPT

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

ChatGPT adds MCP servers as plugins on its Plugins page, on the web and on paid plans. Developer mode is no longer needed. In a Business workspace only admins and owners can add one; in Enterprise and Edu an admin can grant the Create plugins with MCPs permission.

  1. Go to chatgpt.com/plugins, click Add, then Add custom MCP server.
  2. Enter a name, e.g. Name: LINE Messaging API.
  3. Under Connection, enter the Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID and keep Authentication on OAuth.
  4. Select I understand and want to continue, then Create as a plugin. When ChatGPT asks, sign in to AnythingMCP and allow access.
  5. Install the new plugin from your personal plugins, then type @ in a chat and pick it.

Available tools

ToolWhat it does
line_get_bot_infoBasic information about the Official Account behind the token: its bot userId, basic id (@...), display name, picture, chat mode and…
line_push_messageSend a push message to a specific userId, groupId, or roomId
line_reply_messageReply to a message a user just sent, using the replyToken from that webhook event
line_broadcast_messageBroadcast a message to ALL friends of the Official Account
line_get_profileGet a user's display name, profile picture URL, status message and language
line_get_message_quotaThe monthly limit of push and broadcast messages of the account: type (none for unlimited, limited) and value, the number of messages per…
line_get_message_quota_consumptionHow many push and broadcast messages the account has sent this month (totalUsage)
line_list_follower_idsList the userIds of the users who added the Official Account as a friend, up to 1000 per page, to use with line_get_profile or…

Example prompts

  • "How many push messages do we have left this month? Could we send one broadcast to all our friends without going over?"
  • "Send U4af4980629f1b0c6d3e2a5b7c8d9e0f1 a message that the order is ready for pickup at our Shibuya store. Show me the text before it goes out."
  • "Draft a broadcast for our autumn sale, 20% off this weekend only, and wait for my OK before it goes to everyone."
  • "Which Official Account is this token connected to? Show me its @ id, display name and chat mode."
  • "List our friends and tell me the display names and languages of the first 20."

FAQ

Does the free ChatGPT plan work with custom MCP servers? OpenAI documents custom MCP servers for paid plans only; the Free plan is not on its list.

Next steps

Was this guide helpful?

Connect LINE Messaging API to ChatGPT in 2 minutes

Start a free trial on AnythingMCP Cloud, connect LINE Messaging API in the guided setup, then add your MCP URL to ChatGPT. No code and no server to run.

Related guides

Connectors

Connect LINE to Microsoft Copilot via MCP

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.

Connectors

Connect LINE to Meta Muse via MCP: Messages

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.

Connectors

Connect LINE to Claude via MCP: Messages and Quotas

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.

Connectors

Connect LINE to Cursor via MCP: Messages and Quotas

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.

Connectors

Connect LINE to Gemini CLI via MCP: Messages

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.

Connectors

LINE MCP Server: Messages, Profiles and Quotas

Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.