Connecting a LINE Official Account to an AI Agent with MCP LINE has released an official MCP server for its Messaging API, enabling AI agents to manage LINE Official Accounts directly—sending messages, broadcasting promotions, and pushing Flex Message cards without writing API code. A developer documented a complete setup using Codex, highlighting three discrepancies between documentation and actual behavior, including a 403 Forbidden error for unverified accounts and the need for JSON-formatted follower IDs. LINE published an official MCP server for its Messaging API, which means an AI agent https://devlycan.com/blog/ai-ide-comparison-antigravity-cursor-kiro-windsurf 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.