---
title: MCP Server
slug: ai/mcp-server
excerpt: >-
  Pine Labs MCP Server for AI assistants — Claude, Cursor, VS Code, Windsurf.
  Run payment workflows with natural language.
hidden: false
sidebar_order: 1
metadata:
  title: Pine Labs MCP Server — AI Payment Protocol Integration | Pine Labs
  description: >-
    Pine Labs MCP Server implements Model Context Protocol for AI payment
    integrations. Connect Claude, Cursor, VS Code to execute payment APIs via
    natural language.
  keywords: >-
    MCP server, Model Context Protocol, AI payments, Claude payments, payment
    automation, AI assistant integration, MCP protocol
  robots: index
---

## Overview


Learn how you can set up and use the Pine Labs Online Model Context Protocol (MCP) server to integrate with Pine Labs Online APIs with AI tools for code executions.

The Pine Labs Online MCP Server implements the Model Context Protocol (MCP) to enable seamless integration between Pine Labs’ online payment APIs and AI tools.

It allows AI assistants to perform Pine Labs Online API operations, empowering developers to build intelligent, AI-driven payment applications with ease.

<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="mcp-server/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="mcp-server/available-tools">Explore Tools →</a>
  </div>
</div>

> ### 📘 Security Guidelines for Using Pine Labs Online MCP Server:
>
> * **Disable All Other Instances**: Ensure all other local MCP servers and related developer tools are turned off before connecting to the Pine Labs Online MCP Server to avoid environment conflicts or unintentional data exposure.
> * **Secure Access & Communication**: Use TLS for all API communications, store API keys and credentials securely (e.g., using environment variables or secret managers), and enable role-based access control (RBAC) for development and production environments.
> * **Monitor & Rotate Credentials**: Implement periodic credential rotation, enable logging of API usage and access attempts, and regularly audit logs for any unauthorized activity.
> * **Important: Integration Liability Guidelines**
>   * The consumers must ensure that all the APIs integrated using Pine Labs Online MCP server must be called from backend of the integrating party. No API must be integrated directly on Frontend files. APIs that need special care on this → createOrder , refund etc.
>   * The Integrating party must review the code written by LLM agents using Pine Labs Online MCP server for any rogue or unwanted lines which could be caused due to AI hallucination.
>   * The mentioned items are Security guidelines, failure in adherence to that could result in server compromise, financial loss etc. Integrating party will be liable for any damages caused due to non-adherence.

> ### ⚠️ Disclaimer:
>
> * The MCP server is provided to you solely to support your operations. By using the MCP server, you acknowledge and agree that it is your sole responsibility to ensure that your personnel access and utilize the server ethically and in strict accordance with the security guidelines provided by Pine Labs Online.
> * Pine Labs Online shall not be held liable for any misuse of the MCP server by your personnel. In the event the server is used in breach of the provided security guidelines, you accept full responsibility for any resulting consequences, including but not limited to data breaches, service disruptions, unauthorized access, and/or any associated losses or damages.
> * For the Model Context Protocol (MCP), disable the model improvement data controls in ChatGPT and deactivate the 'Help improve Claude' option in Claude.
> * Disabling these settings ensures that such data is not used to further improve or train the model.
> * For any other LLMs, look for similar settings that disable the use of your data for training.

> ### 👍 With the Pine Labs Online MCP server, developers can:
>
> * `Query`, `test`, and `execute` payment APIs through natural language.
> * Build AI-driven tools and assistants that can automate or assist in payment operations.
> * Accelerate development cycles without the need for manual API exploration or infrastructure setup.

## Key Benefits

Streamline payment integration with Pine Labs' Online MCP server, eliminating local setup and maintenance. Accelerate development with AI-powered code execution for rapid application deployment and real-time API access.

<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"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/><path d="M5 3v4"/><path d="M19 17v4"/><path d="M3 5h4"/><path d="M17 19h4"/></svg>
    </div>
    <h3>AI-Native Payments</h3>
    <p>Run Pine Labs payment workflows with natural language.</p>
  </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="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="M12 15l-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"/><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/></svg>
    </div>
    <h3>Faster Integration</h3>
    <p>Create payment links and checkout orders without custom wrappers.</p>
  </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="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"/></svg>
    </div>
    <h3>Real-Time Visibility</h3>
    <p>Access live order, refund, payment link, and transaction data.</p>
  </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="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
    </div>
    <h3>Secure by Design</h3>
    <p>Use per-request credentials, PII masking, and default security headers.</p>
  </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="2" y="2" width="20" height="8" rx="2" ry="2"/><rect x="2" y="14" width="20" height="8" rx="2" ry="2"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/></svg>
    </div>
    <h3>MCP-Native</h3>
    <p>Deploy as a streamable HTTP MCP server for compatible AI tools.</p>
  </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="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
    </div>
    <h3>Zero Infrastructure</h3>
    <p>No local setup needed — fully hosted, always up-to-date.</p>
  </div>
</div>

## Key Features

Build end-to-end payment and order management systems with AI-generated code for cards, UPI, wallets, and more.

<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"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/><path d="M5 3v4"/><path d="M19 17v4"/><path d="M3 5h4"/><path d="M17 19h4"/></svg>
    </div>
    <h3>Simplify Payment Development</h3>
    <p>Use AI to accelerate Pine Labs payment operations and integration tasks.</p>
  </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="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"/></svg>
    </div>
    <h3>Accelerate Integration</h3>
    <p>Create payment links, checkout orders, and refund flows with less manual API orchestration.</p>
  </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>Simplify Checkout Setup</h3>
    <p>Speed up Pine Labs hosted checkout integrations with AI-guided order creation and payment flow support.</p>
  </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="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/></svg>
    </div>
    <h3>Improve Operational Visibility</h3>
    <p>Access live order, refund, payment link, and transaction data for faster support, reconciliation, and issue resolution.</p>
  </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="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
    </div>
    <h3>Strengthen Production Readiness</h3>
    <p>Run payment workflows on a secure, observable MCP layer with PII masking, health checks, metrics, and tracing.</p>
  </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="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
    </div>
    <h3>Multi-Platform Support</h3>
    <p>Works with Claude, Cursor, VS Code Copilot, and any MCP-compatible AI client.</p>
  </div>
</div>


