Skip to content

MCP Server

Treeline includes a built-in MCP (Model Context Protocol) server. This lets AI agents query your finances, sync accounts, tag transactions, and more — all from your local database.

Pick the client you’re using. You can use more than one — they all share the same local database.

Two ways to connect, depending on whether you use the terminal.

Don’t use the terminal? Download the .mcpb extension from treeline.money/download and open it. Claude Desktop installs it automatically — no configuration needed.

Already have the CLI? Open Settings > Developer > Edit Config in Claude Desktop and add:

{
"mcpServers": {
"treeline": {
"command": "tl",
"args": ["mcp"]
}
}
}

Restart Claude Desktop. You should see Treeline listed in the tools menu.

Both options work in Chat and Cowork mode.

Requires the Treeline CLI.

Terminal window
claude mcp add treeline -- tl mcp

Requires the Treeline CLI. Any client that supports the MCP STDIO transport can connect — point it at tl mcp as the command.

Once connected, the agent has access to these tools:

ToolDescriptionAccess
statusAccount balances, transaction counts, and connected integrationsRead-only
schemaGet database schema (tables, views, columns) for SQL query planningRead-only
queryExecute a read-only SQL query against your financial databaseRead-only
query_writeExecute a SQL query with write access (INSERT, UPDATE, DELETE)Read/Write
syncPull latest transactions from connected bank integrationsRead/Write
tagApply tags to transactionsRead/Write
doctorRun database health checksRead-only
demoEnable, disable, or check demo modeRead/Write
skills_listList available user-created financial skillsRead-only
skills_readRead a file from a skill directoryRead-only
skills_writeCreate or update a skill fileRead/Write
encryption_statusCheck database encryption and lock statusRead-only
versionGet current CLI version and check for updatesRead-only

You don’t need to mention Treeline or MCP by name. Just ask questions naturally:

  • “What’s my net worth?”
  • “How much did I spend on groceries last month?”
  • “Show me my largest transactions this week”
  • “Tag all Starbucks transactions as coffee”
  • “Sync my bank accounts”

The agent will choose the appropriate Treeline tool based on your question.

The MCP server runs locally and reads directly from your Treeline database on disk. No financial data is sent to any server by the MCP server itself.

The AI agent you’re using (Claude, etc.) will see query results in order to answer your questions. The LLM provider sees the data you ask about, but not your full database.