Skip to main content
Glama
README.md
# plantain-mcp

MCP server for **[Plantain](https://getplantain.com)** — generate **Nano Banana 2.1** 1K images (€0.02 each, less in bulk) and **4–8 second MP4 video clips with sound** (€0.16 each, 720p or 1080p) directly from Claude, Cursor, Windsurf, or any Model Context Protocol client.

- No Google Cloud account or billing setup required
- Pay-as-you-go in euros, no monthly subscription
- New accounts get **5 free credits** at [getplantain.com/signin](https://getplantain.com/signin)
- Failed or refused generations are automatically refunded

*Plantain is an independent service and is not affiliated with or endorsed by Google.*

## Tools

| Tool | Cost | Description |
|---|---:|---|
| `generate_image` | 1 credit | Generates a 1K PNG (`1:1`, `16:9`, `4:3`, `3:4`, or `9:16`), returns it inline, and optionally saves it to `output_path`. |
| `generate_video` | 8 credits | Generates a 4, 6, or 8 second MP4 clip with sound (`16:9` or `9:16`, `720p` or `1080p`) and saves it to disk. |
| `get_account` | 0 credits | Returns your account name, remaining credits, and expiry date. |

## Quick start

1. Get an API key at [getplantain.com/signin](https://getplantain.com/signin) (Sign in with Google, 5 free credits included).
2. Add `plantain-mcp` to your MCP client configuration:

### Claude Desktop (`claude_desktop_config.json`) / Cursor (`.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "plantain": {
      "command": "npx",
      "args": ["-y", "plantain-mcp"],
      "env": {
        "PLANTAIN_API_KEY": "your_plantain_api_key"
      }
    }
  }
}
```

### Claude Code

```bash
claude mcp add plantain -e PLANTAIN_API_KEY=your_plantain_api_key -- npx -y plantain-mcp
```

## Pricing

- **1 credit** = one 1K image (Nano Banana 2.1, PNG)
- **8 credits** = one 4–8s video clip with sound (720p or 1080p, MP4)
- Credit packs: 1,000 credits for €20 (€0.02/image), 5,500 for €100 (€0.018), 31,000 for €500 (€0.016). Credits last 12 months from your last purchase.

## Environment variables

| Variable | Required | Default | Description |
|---|---|---|---|
| `PLANTAIN_API_KEY` | Yes | — | Your Plantain bearer API key |
| `PLANTAIN_API_URL` | No | `https://getplantain.com` | Override the API base URL |

## Development

```bash
npm install
npm test
```

## Support

Questions or feedback: [hello@getplantain.com](mailto:hello@getplantain.com) · [getplantain.com/docs](https://getplantain.com/docs)

TDQS

A3.9/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a clearly distinct action and resource: image generation, video generation, and account lookup. There is no plausible way to confuse generate_image with generate_video or get_account, since modality and read/write intent are explicit in the names and descriptions.

Naming Consistency5/5

All three tools follow the same verb_noun snake_case pattern (generate_image, generate_video, get_account). The verb choice is also semantically meaningful: 'generate' for costly creation, 'get' for a cheap read.

Tool Count4/5

Three tools is on the thin side but each one clearly earns its place for a text-to-media generation service with credit accounting. Nothing is redundant, though the surface feels minimal for a paid API wrapper.

Completeness3/5

The core generate-and-check-balance loop is covered, but there are notable gaps: no image editing/variation, no image-to-video, no history or listing of past generations, and no way to top up or inspect credit purchases. Agents hitting those needs will dead-end.