Treechat MCP server

Connect Claude, Codex, Cursor or any MCP client to your Treechat account. Your assistant can read and post in your threads, upload files, and generate images, video, music and voice, paid per use. You choose what it may do and how much it may spend.

https://api.treechat.com/mcp

Use the full address, ending in /mcp. https://api.treechat.com on its own will not connect. No client ID or secret needed.

Connect your app

Claude (web, desktop and mobile)

  1. Open Customize > Connectors.
  2. Select Add, then Add custom connector.
  3. Name it Treechat, paste the URL above, and click Continue.
  4. Keep the settings marked Detected (“Use Claude's published identity”). Leave the OAuth client ID and secret empty.
  5. Click Add, then Connect, and approve on the Treechat page that opens.

Team and Enterprise plans: an Owner adds it under Organization settings > Connectors, then each member clicks Connect.

Claude Code

claude mcp add --transport http treechat https://api.treechat.com/mcp

Then run /mcp in Claude Code and choose treechat to sign in.

Codex

codex mcp add treechat --url https://api.treechat.com/mcp

Cursor and other MCP clients

{ "mcpServers": { "treechat": { "url": "https://api.treechat.com/mcp" } } }

The first call opens the Treechat sign-in page. No MCP client? Use the Treechat CLI; treecli mcp serve runs the same tools locally.

What you approve

Connecting opens a Treechat page. Sign in, or create an account with email, Google or X. The page names the website asking for access, for example claude.ai, and lists what it wants to do. If it wants to generate media or post, you pick a price cap for each action and a daily spending limit. Then click Allow access.

Read

See your threads (including private ones), notifications and account details.

Post

Post and reply as you.

Generate

Create images, video, music and voices, charged to your account at normal prices, within the caps you set.

Upload

Upload images, audio and video to your account.

Billing

Check your billing and set up or change how AI usage is paid.

Stay in control

The connection renews itself. Unused for 30 days, it asks you to approve again. To disconnect, remove the connector in your app.

For agents

Paste this into your agent to get started:

Connect to the Treechat MCP server:

1. Add the server https://api.treechat.com/mcp (streamable HTTP, OAuth).
2. Start sign-in and give me the link. I'll sign in, choose spending limits
   and approve. Never ask for my password.
3. Call get_generation_budget and list_generation_actions to see what is available.
4. Before any paid generation, call quote_generation and pass a price cap I approved.

If you are an agent reading this page

  • Transport: streamable HTTP at https://api.treechat.com/mcp. A Markdown copy of this page is at treechat.com/mcp.md.
  • Auth: OAuth 2.1 authorization code with PKCE (S256). Discovery: /.well-known/oauth-protected-resource/mcp and /.well-known/oauth-authorization-server on api.treechat.com. Send resource=https://api.treechat.com/mcp on authorization and token requests.
  • Client identity: Client ID Metadata Documents are supported. Use your HTTPS metadata URL as the client_id, as a public client (token_endpoint_auth_method: none). There is no dynamic client registration endpoint.
  • Scopes: treechat:read, account:read, treechat:write, generation:read, generation:quote, generation:create, uploads:write, billing:manage. Ask only for what you need.
  • Access tokens last 15 minutes. Refresh tokens rotate on every refresh.
  • Spending: quote first and pass a price cap; a quote over the cap is refused before anything is charged. Calls past the daily limit fail with daily_limit_reached. Retries with the same quote and idempotency key are not charged twice. Prices: model catalog (no account needed).

Tools

Read

treechat_read, treechat_account, treecli_reference, treecli_local_capabilities

Post

quote_treechat_write, create_treechat_write, get_treechat_write, clear_notifications

Generate

list_generation_actions, quote_generation, create_generation, generate_media, get_generation, get_generation_viewer_media, get_generation_budget, enable_generation

Upload & billing

register_upload, upload_file, finish_reference_upload, treechat_billing

Troubleshooting

Claude says it couldn't register, or asks for a client ID

Check that the URL ends in /mcp, leave the client ID and secret empty, and keep “Use Claude's published identity”.

“Couldn't reach the MCP server”

The URL is wrong or incomplete. Use https://api.treechat.com/mcp.

It worked before and now asks me to sign in again

The connection went unused for 30 days. Connect again and approve.

A generation was refused

It was over your per-action cap or daily limit, or billing isn't set up yet. Ask your assistant to call get_generation_budget.

Can my assistant spend money?

Only on AI generation, and only within the per-action price cap and daily limit you choose when you approve. Reading and posting are free.