# Connecting a LINE Official Account to an AI Agent with MCP

> Source: <https://dev.to/ome_devlycan/connecting-a-line-official-account-to-an-ai-agent-with-mcp-2bg9>
> Published: 2026-08-29 00:30:00+00:00

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.**
