Claude Code
Claude Code can interact with Treeline in two ways: through the MCP server (tools) or directly via CLI commands. Both work well — use whichever fits your workflow.
MCP Setup
Section titled “MCP Setup”Add Treeline as an MCP server:
claude mcp add treeline -- tl mcpThis gives Claude Code access to Treeline’s MCP tools (status, query, sync, tag, etc.) alongside your other tools.
CLI Access
Section titled “CLI Access”Claude Code can also run tl commands directly in its shell. This is useful when you want to pipe output, chain commands, or use CLI-only features like tl import or tl backup.
tl status --jsontl query "SELECT * FROM transactions WHERE amount < -100" --jsontl skills list --jsonExample Session
Section titled “Example Session”Once connected, just ask questions naturally:
- “What’s my checking account balance?”
- “Show me all untagged transactions from this month”
- “Write a query that shows my spending trend by category over the last 6 months”
- “Create a skill that tracks my freelance income categories”
Claude Code will use the appropriate Treeline tool or CLI command to answer.