> ## 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.

# Tip Jar

> Build the simplest possible moneydevkit app: a tip jar for a content creator.

<Frame>
  <img src="https://mintcdn.com/moneydevkit/Yd_OK6Xj5gxtrZJ2/images/tip-jar-example.png?fit=max&auto=format&n=Yd_OK6Xj5gxtrZJ2&q=85&s=2b226ad1998575f38030ebd9ff44c2f3" alt="Screenshot of the tip jar example app." width="1280" height="720" data-path="images/tip-jar-example.png" />
</Frame>

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

This is an example for building the absolute simplest of apps with moneydevkit: an app that can receive money. We'll build a tip jar for a content creator, but the same approach applies to donation pages, pay-what-you-want downloads, support-the-author buttons, and many other use cases.

## 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 tip jar:

<Prompt description="Scaffold a moneydevkit tip jar in Next.js." actions={["copy"]}>
  The goal is to build a Next.js website that demonstrates the functionality of moneydevkit's [customers](https://docs.moneydevkit.com/dashboard/customers.md), and [checkout](https://docs.moneydevkit.com/dashboard/checkouts.md) features.

  Style it like a simple platform for a content creator (Cindy - AI Art Sorceress) to accept tips from followers.

  For the human UI, offer several pre-built amount options to chose from: $5, $10, \$25, and Custom.

  Also enable [l402](https://docs.moneydevkit.com/l402.md) functionality so AI agents can leave tips on behalf of their users.

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

  Use the moneydevkit MCP to create an account (if not already done) and setup an app with mnemonic.

  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.
