---
title: Use Cases
slug: ai/mcp-server/use-cases
excerpt: >-
  Real-world examples of using the Pine Labs MCP Server with AI assistants —
  payment links, order lookup, cancellations, and resends.
hidden: false
sidebar_order: 2
metadata:
  title: MCP Server Use Cases — AI Payment Automation Examples | Pine Labs
  description: >-
    Practical examples using Pine Labs MCP Server with AI assistants. Generate
    payment links, lookup orders, cancel transactions via natural-language
    prompts.
  keywords: >-
    MCP use cases, AI payment examples, MCP automation, payment link automation,
    AI order lookup, conversational payments, MCP prompts
  robots: index
---

See how Pine Labs MCP Server turns natural-language prompts into Pine Labs API calls. Each example below shows the prompt you give your AI assistant and the tool the MCP Server invokes behind the scenes.

## Talk to Pine Labs through your AI assistant

### 1. Generate a payment link

> 💬 **Prompt:** *"Send a ₹500 payment link to john@example.com"*

The assistant invokes `create_payment_link` with:

- `amount_value: 50000`
- `currency: "INR"`
- `customer_email: "john@example.com"`

→ Returns a short URL the customer can use to pay instantly.

### 2. Look up an order

> 💬 **Prompt:** *"What's the status of order v1-4405071524-aa-qlAtAf?"*

The assistant calls `get_order_by_order_id` and returns the full order payload — status, payment method, captured amount, customer info, and timestamps.

### 3. Cancel a payment link

> 💬 **Prompt:** *"Please cancel payment link pl-v1-5757575757-aa-hU1rUd"*

The assistant triggers `cancel_payment_link` for that ID. The link transitions to `CANCELLED` and can no longer accept payments.

### 4. Re-notify a customer

> 💬 **Prompt:** *"Resend the payment link notification for pl-v1-5757575757-aa-hU1rUd"*

The assistant calls `resend_payment_link_notification` so the customer receives the link again on the original channel (email or SMS).

## What you can build

<div className="not-prose card-grid-3">
  <div className="card-grid-item">
    <div className="inline-flex items-center justify-center w-10 h-10 rounded-lg bg-[#D0F6E5]/60 mb-3">
      <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#003434" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
    </div>
    <h3>Hosted checkout experiences</h3>
    <p>Launch fully hosted, customizable checkout pages with multi-payment support and lightning-fast integration.</p>
    <a href="setup-guide-api-execution">Integrate Now →</a>
  </div>
  <div className="card-grid-item">
    <div className="inline-flex items-center justify-center w-10 h-10 rounded-lg bg-[#D0F6E5]/60 mb-3">
      <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#003434" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><rect x="1" y="4" width="22" height="16" rx="2" ry="2"/><line x1="1" y1="10" x2="23" y2="10"/></svg>
    </div>
    <h3>Accept payments online</h3>
    <p>Quickly integrate Cards, UPI, Wallets, and NetBanking. AI-generated code includes OTP flows, error handling, and secure processing.</p>
    <a href="setup-guide-api-execution">Integrate Now →</a>
  </div>
  <div className="card-grid-item">
    <div className="inline-flex items-center justify-center w-10 h-10 rounded-lg bg-[#D0F6E5]/60 mb-3">
      <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#003434" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>
    </div>
    <h3>Payment links and QR codes</h3>
    <p>Dynamically generate payment links and QR codes with expiry, notifications, and custom configurations.</p>
    <a href="setup-guide-cli">Integrate Now →</a>
  </div>
  <div className="card-grid-item">
    <div className="inline-flex items-center justify-center w-10 h-10 rounded-lg bg-[#D0F6E5]/60 mb-3">
      <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#003434" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/></svg>
    </div>
    <h3>Subscriptions and recurring payments</h3>
    <p>Automate subscription billing, mandate management, and retry mechanisms with AI assistance.</p>
    <a href="setup-guide-api-execution">Integrate Now →</a>
  </div>
  <div className="card-grid-item">
    <div className="inline-flex items-center justify-center w-10 h-10 rounded-lg bg-[#D0F6E5]/60 mb-3">
      <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#003434" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>
    </div>
    <h3>Refund automation</h3>
    <p>Process refunds against completed payments using natural-language prompts.</p>
    <a href="setup-guide-cli">Integrate Now →</a>
  </div>
  <div className="card-grid-item">
    <div className="inline-flex items-center justify-center w-10 h-10 rounded-lg bg-[#D0F6E5]/60 mb-3">
      <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#003434" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><circle cx="8" cy="21" r="1"/><circle cx="19" cy="21" r="1"/><path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"/></svg>
    </div>
    <h3>Order management</h3>
    <p>Create, capture, cancel, and look up orders directly from your editor or chat interface.</p>
    <a href="setup-guide-api-execution">Integrate Now →</a>
  </div>
</div>

<Callout type="tip" title="Try it yourself">
After [setting up the MCP Server](mcp-server/setup-guide), open your AI assistant and try: [*"List all available Pine Labs tools."*](mcp-server/available-tools) If everything is configured correctly, you'll see the full set of MCP tools.
</Callout>

## Next steps

<div className="not-prose grid grid-cols-1 md:grid-cols-2 gap-4 my-6">
  <div className="card-grid-item">
    <div className="inline-flex items-center justify-center w-10 h-10 rounded-lg bg-[#D0F6E5]/60 mb-3">
      <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#003434" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg>
    </div>
    <h3>Installation Guide</h3>
    <p>Learn how to set up the Pine Labs Online MCP Server — for code execution.</p>
    <a href="setup-guide">Get Started →</a>
  </div>
  <div className="card-grid-item">
    <div className="inline-flex items-center justify-center w-10 h-10 rounded-lg bg-[#D0F6E5]/60 mb-3">
      <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#003434" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>
    </div>
    <h3>Available Tools</h3>
    <p>List of all available tools in the Pine Labs Online MCP Server for code execution.</p>
    <a href="available-tools">Explore Tools →</a>
  </div>
</div>

