Connect MCP

Connect your AI assistant to Zaptrain. Create, send, and track invoices through natural language.

MCP Server URL
This is the URL your AI client needs to connect to Zaptrain. Authentication is handled automatically via OAuth.
https://zaptrain.com/api/mcp
Claude Desktop and claude.ai
Zaptrain is a remote server, so it is added as a connector — not in claude_desktop_config.json, which only starts local servers.
  1. Open Claude Desktop (or claude.ai) and go to Settings > Connectors
  2. Click "Add custom connector"
  3. Name it Zaptrain and paste the MCP Server URL above as the remote MCP server URL. Leave the OAuth client ID and secret fields empty — Zaptrain registers the client automatically.
  4. Click Add, then Connect. A browser tab opens on Zaptrain: log in if needed and click Approve
  5. Back in Claude, enable the Zaptrain tools for the chat (the search-and-tools menu below the message box) and ask for something like "list my unpaid invoices"

Custom connectors need a paid Claude plan. Menu names may differ slightly between versions of the app.

Claude Code
Add Zaptrain from the terminal, then sign in from inside Claude Code.
  1. Run this in your terminal:
claude mcp add --transport http zaptrain https://zaptrain.com/api/mcp
  1. Start claude, type /mcp, pick zaptrain and choose Authenticate
  2. A browser tab opens on Zaptrain: log in if needed and click Approve
Cursor, Windsurf and other clients
Any MCP client that supports remote (Streamable HTTP) servers with OAuth. If it has an "add MCP server" or "integrations" screen, paste the MCP Server URL there; if it uses an mcpServers config file (Cursor's mcp.json, for example), add this block:
{
  "mcpServers": {
    "zaptrain": {
      "url": "https://zaptrain.com/api/mcp"
    }
  }
}

Save, reload the client's MCP servers, and approve access in the browser tab that opens. Local-only clients (anything that needs a command to launch) cannot connect to Zaptrain directly.

Access expires after 1 hour. Zaptrain does not issue refresh tokens, so after an hour your client will ask you to sign in to Zaptrain again — click Approve and carry on. Nothing you set up is lost. To revoke an app before then, use Settings → Developer settings → Connected apps.

What can your AI assistant do?
You choose on the Approve screen. Read only is selected by default; the action tools below only exist if you pick Read and act.

Why the default is read only: an assistant acts on whatever it reads — a customer email, a web page, a document — and text in any of those can try to instruct it. On a read-only connection there is nothing for such text to trigger: the tools that email and cancel invoices are not offered at all.

Read only

  • List all invoices
  • View invoice details
  • View your profile
  • Check your Lightning wallet balance

Read and act (opt in)

  • Create an invoice without sending it
  • Email (or re-send) an invoice to a customer
  • Send a payment reminder for a sent invoice
  • Cancel an open invoice
Connect an AI assistant (MCP) · Zaptrain