All guides

Ship them

Replit, Bolt, v0, Cursor and other AI builders

Connect TemplatePort to any AI app builder or coding agent that supports MCP, then ask for your emails in chat.

Connect TemplatePort to your AI builder

TemplatePort works as an MCP server: a connector that AI builders and coding agents can talk to. Connect it once, then ask for your emails in your project's chat. The agent fetches them from TemplatePort, always in their latest version, and writes them into your app.

  1. 1In TemplatePort, open Providers and scroll to Use TemplatePort from your AI builder. Pick your app, copy the server URL and choose Create key. The key is shown once.
  2. 2Add TemplatePort as an MCP server in your app with the steps for it below.
  3. 3In your project's chat, ask for what you need, such as Use TemplatePort to add my welcome email or Which TemplatePort emails changed since I last updated them?

Create one key per app and name it after the app (Replit, Bolt, …). The push history then shows which app fetched each email, and you can revoke one without breaking the others.

Replit

  1. 1Open the MCP Servers settings and select + Add MCP server.
  2. 2Name it TemplatePort and paste the server URL.
  3. 3Under Advanced settings, add the header X-API-Key with your API key as the value. Then select Test & save.

Bolt

  1. 1In the chat box, select + → Connectors → Manage connectors → Custom MCP server.
  2. 2Name it TemplatePort, paste the server URL and choose transport HTTP.
  3. 3For authentication choose API key, paste your key and select Connect. Turn it on for your project.

v0

  1. 1In the prompt box, open + → MCPs and add a custom server.
  2. 2Name it TemplatePort and paste the server URL.
  3. 3For authentication choose Bearer Token and paste your API key.

Cursor

  1. 1Open Settings → MCP and add a new server, or edit .cursor/mcp.json.
  2. 2Add TemplatePort with the server URL as "url" and the header "Authorization": "Bearer <your key>".
  3. 3Check that TemplatePort shows as connected.

Claude Code

  1. 1In your project folder, run: claude mcp add --transport http templateport <server URL> --header "Authorization: Bearer <your key>"
  2. 2Run /mcp in Claude Code to check that TemplatePort is connected.

Any other MCP app

  1. 1Add a remote MCP server (Streamable HTTP) with the server URL.
  2. 2Send your API key as a bearer token (header Authorization: Bearer <key>) or as the header X-API-Key.

The server uses Streamable HTTP. No OAuth sign-in is needed: the API key is the login.

How the email gets into your app

The agent looks at your project and picks the way that fits:

  • Send by template ID: if you pushed the email to Resend, Postmark, SendGrid or Brevo and your app sends through that provider, the code sends the pushed template. Design changes are then just a push from TemplatePort, with no code change.
  • React Email: if your project already uses React Email, it adds the email as a component.
  • HTML module: for everything else, a small file with the subject, HTML and plain text. It works with any sender, including SMTP and Nodemailer.
  • Supabase Auth: sign-up, reset password and other auth emails are sent by Supabase itself. With the Supabase CLI the agent puts them in your project's config; otherwise it gives you the HTML to paste in the Supabase dashboard.

When you ask for an email you don't have yet, the agent adds it to TemplatePort first (a gallery design or a new email from TemplatePort's AI), so it shows on your Templates page, marked with the app that made it.

On the Free plan the agent can browse and add emails to your templates. Fetching emails as code comes with the Launch Pack and Pro. Each account allows 60 calls an hour.

Updating later

Emails the agent fetched show the app's name on the Templates page. When you change one, or your brand kit, it shows as out of sync. Ask the agent Use TemplatePort to update my changed emails and it re-applies them.

Something unclear or missing? Email hello@templateport.app.