How do I add an MCP server to Line CLI?
Add it under mcpServers in:
~/.line/mcp.json(yours, every project), or.mcp.jsonor.line/mcp.jsonin the project (shared with the repo).
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "${GITHUB_TOKEN}" }
},
"docs": {
"url": "https://example.com/mcp",
"headers": { "Authorization": "Bearer ${DOCS_TOKEN}" }
}
}
}
Then type /mcp reload. /mcp shows each server's status and tools; line mcp lists them from the shell. Tools appear to the agent as mcp__<server>__<tool>.
Project servers start only after you trust them: /mcp trust <name> or line mcp trust <name>.
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.