LINE published an official MCP server for its Messaging API, which means an AI agent can now drive a LINE Official Account directly — sending messages, broadcasting promotions, and pushing Flex Message cards without writing any API code.
I set it up with Codex and worked through every capability the server exposes, from creating a fresh account to delivering a message to a real phone. This guide is the result: a complete walkthrough, and an honest account of the three places where the documentation and reality diverge.
~/.codex/config.toml
. Most guides assume the JSON format used by get_follower_ids
returns 403 Forbidden until the account is verified or on a premium plan.default_tools_approval_mode = "writes"
so the agent asks before any send.Every screenshot comes from the actual working setup, including the errors.
The article is available in both English and Thai.