> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moneydevkit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Subscriptions

> Build a moneydevkit app where supporters can subscribe to fund an independent journalist.

<Frame>
  <img src="https://mintcdn.com/moneydevkit/w9IqTf9FMdifw5W1/images/subscriptions-example.jpg?fit=max&auto=format&n=w9IqTf9FMdifw5W1&q=85&s=33fc8018b5081ce56e7778eaa48ea157" alt="Screenshot of the subscriptions example app." width="1280" height="720" data-path="images/subscriptions-example.jpg" />
</Frame>

See the live example: [mdk-supporters.vercel.app](https://mdk-supporters.vercel.app)

This is an example for building a recurring-payments app with moneydevkit. We'll build a supporters page for an independent journalist, but the same approach applies to membership sites, paid newsletters, creator memberships, and any other use case where you want to charge a recurring fee.

## Step 1: Install the MCP server

The MCP server lets your coding agent create a moneydevkit account and wire up your app for you. Pick your account type and coding agent below:

<Tabs>
  <Tab title="New Account">
    <AccordionGroup>
      <Accordion title="Cursor" icon="wand-magic-sparkles">
        <a href="cursor://anysphere.cursor-deeplink/mcp/install?name=moneydevkit&config=eyJ1cmwiOiJodHRwczovL21jcC5tb25leWRldmtpdC5jb20vbWNwLyJ9" className="border border-zinc-200 dark:border-zinc-800 hover:bg-zinc-100 dark:hover:bg-zinc-700 transition-colors w-fit text-sm font-medium flex items-center gap-2 rounded-lg px-3.5 py-1.5 not-prose">
          <Icon icon="wand-magic-sparkles" size={16} />

          Install MCP in Cursor
        </a>
      </Accordion>

      <Accordion title="VS Code" icon="code">
        <a href="vscode://mcp/install?name=moneydevkit&config=%7B%22url%22%3A%22https%3A//mcp.moneydevkit.com/mcp/%22%7D" className="border border-zinc-200 dark:border-zinc-800 hover:bg-zinc-100 dark:hover:bg-zinc-700 transition-colors w-fit text-sm font-medium flex items-center gap-2 rounded-lg px-3.5 py-1.5 not-prose">
          <Icon icon="code" size={16} />

          Install MCP in VS Code
        </a>
      </Accordion>

      <Accordion title="Claude Code" icon="terminal">
        Run this in your project directory:

        ```bash theme={null}
        claude mcp add moneydevkit --transport http https://mcp.moneydevkit.com/mcp/
        ```
      </Accordion>

      <Accordion title="ChatGPT Codex" icon="terminal">
        Run this in your project directory:

        ```bash theme={null}
        codex mcp add moneydevkit --url https://mcp.moneydevkit.com/mcp/
        ```
      </Accordion>
    </AccordionGroup>
  </Tab>

  <Tab title="Existing Account">
    <AccordionGroup>
      <Accordion title="Cursor" icon="wand-magic-sparkles">
        <a href="cursor://anysphere.cursor-deeplink/mcp/install?name=moneydevkit&config=eyJ1cmwiOiJodHRwczovL21jcC5tb25leWRldmtpdC5jb20vbWNwL2FjY291bnQvIn0=" className="border border-zinc-200 dark:border-zinc-800 hover:bg-zinc-100 dark:hover:bg-zinc-700 transition-colors w-fit text-sm font-medium flex items-center gap-2 rounded-lg px-3.5 py-1.5 not-prose">
          <Icon icon="wand-magic-sparkles" size={16} />

          Install MCP in Cursor
        </a>
      </Accordion>

      <Accordion title="VS Code" icon="code">
        <a href="vscode://mcp/install?name=moneydevkit&config=%7B%22url%22%3A%22https%3A//mcp.moneydevkit.com/mcp/account/%22%7D" className="border border-zinc-200 dark:border-zinc-800 hover:bg-zinc-100 dark:hover:bg-zinc-700 transition-colors w-fit text-sm font-medium flex items-center gap-2 rounded-lg px-3.5 py-1.5 not-prose">
          <Icon icon="code" size={16} />

          Install MCP in VS Code
        </a>
      </Accordion>

      <Accordion title="Claude Code" icon="terminal">
        Run this in your project directory:

        ```bash theme={null}
        claude mcp add moneydevkit --transport http https://mcp.moneydevkit.com/mcp/account/
        ```
      </Accordion>

      <Accordion title="ChatGPT Codex" icon="terminal">
        Run this in your project directory:

        ```bash theme={null}
        codex mcp add moneydevkit --url https://mcp.moneydevkit.com/mcp/account/
        ```
      </Accordion>
    </AccordionGroup>
  </Tab>
</Tabs>

## Step 2: Start a new project

Create an empty folder and open it in your coding agent. This will be the root of your new Next.js project.

## Step 3: Prompt your coding agent

Paste the following prompt into your coding agent to scaffold the supporters page:

<Prompt description="Scaffold a moneydevkit subscriptions site in Next.js." actions={["copy"]}>
  The goal is to build a Next.js website that demonstrates the functionality of moneydevkit's [subscriptions](https://docs.moneydevkit.com/subscriptions.md),  [customers](https://docs.moneydevkit.com/dashboard/customers.md), and [checkout](https://docs.moneydevkit.com/dashboard/checkouts.md) features. If available, use \$mdk-nextjs skills to accomplish this.

  Style it like the website for an independent journalist who does reporting in dangerous parts of the world. This is a place where people can support his work by leaving a donation or subscribing to support the journalist monthly. If available, use \$impeccable skills to craft a great design.

  For the human UI, offer several subscription options: $5 / mo, $25 / mo, and \$100 / mo. Use the moneydevkit MCP to create the subscription products if moneydevkit MCP tools are available. Otherwise, set it up so I can add the product IDs later in env vars.

  Also enable [l402](https://docs.moneydevkit.com/l402.md) functionality so AI agents can leave leave donations (or subscribe) on behalf of their users. Use \$mdk-l402.

  Follow the instructions [here](https://docs.moneydevkit.com/nextjs.md) for setting up moneydevkit with Next.js.

  When you are finished working, run this in the dev server locally and give the user a link to where they can open it in the browser.
</Prompt>

## Step 4: Preview and deploy

When your coding agent finishes, you can preview your app. The agent will give you a link that you can open in your browser to preview the app locally. When you're ready to ship it, head to [Vercel](https://vercel.com/new) to deploy.
