MCP Server API Execution - Integration Steps

Learn how to set up the Pine Labs Online MCP Server — for code execution.

Pine Labs Online · Model Context Protocol

The Pine Labs Online MCP Server enables AI assistants to interact with Pine Labs Online payment APIs through the Model Context Protocol (MCP). Once configured, you can create payment links, look up orders, cancel transactions, and more — all using conversational prompts in your editor or chat interface.

Fully hosted by Pine Labs — nothing to deploy or maintain

Prerequisites

Make sure the following are in place before you begin:

MCP-compatible AI client

Claude Desktop, or VS Code (with Copilot in agent mode)

Pine Labs merchant account

A Pine Labs Online Merchant account with API access enabled

API credentials

Your X-Client-Id and X-Client-Secret from the Pine Labs Dashboard


1

Get Your API Credentials

Pine Labs authenticates MCP requests using a Client ID and Client Secret pair. To obtain yours:

  1. 1 Log in to the Pine Labs Dashboard .
  2. 2 Navigate to your merchant account settings.
  3. 3 Locate your X-Client-Id and X-Client-Secret values.
  4. 4 Copy both — you’ll need them in the next step.

MCP Server Endpoints

Environment MCP Server URL
UAT (Sandbox) sandbox
https://pinelabs-online-mcp-server-uat.v2.pinepg.in/mcp/

2

Connect Your AI Client

Pick the application you use and apply the matching configuration.

  1. 1 Open Claude Desktop and navigate to Settings → Developer → Edit Config.
  2. 2 Add the JSON configuration below, then save the file.
  3. 3 Replace <your-client-id> and <your-client-secret> with the credentials from Step 1.
json
{
  "mcpServers": {
    "pinelabs": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://pinelabs-online-mcp-server-uat.v2.pinepg.in/mcp/",
        "--header",
        "X-Client-Id:<your-client-id>",
        "--header",
        "X-Client-Secret:<your-client-secret>"
      ]
    }
  }
}
  1. 1 Open Visual Studio Code.
  2. 2 Launch the Command Palette for macOS: Cmd + Shift + P and for Windows / Linux: Ctrl + Shift + P
  3. 3 Search for MCP: Open User Configuration and select.
  4. 4 Merge the configuration block below into your settings file.
  5. 5 VS Code will prompt you for both credential values when the MCP server starts.
json
{
  "mcp": {
    "inputs": [],
    "servers": {
      "pinelabs": {
        "type": "http",
        "url": "https://pinelabs-online-mcp-server-uat.v2.pinepg.in/mcp/",
        "headers": {
          "X-Client-Id": "${input:pinelabs_client_id}",
          "X-Client-Secret": "${input:pinelabs_client_secret}"
        }
      }
    }
  }
}
Tip: For more details on MCP server support in VS Code, visit the VS Code MCP documentation .

3

Verify the Connection

After saving the configuration, restart your AI client. Then try this quick test prompt in your assistant:

“List all available Pine Labs tools”
Note: If everything is configured correctly, the assistant will respond with the full set of available Pine Labs tools. A successful response confirms your MCP connection is live.

Ask AI
Assistant
Order Lifecycle
Refunds
Settlements
Checkout
Dashboard
International Payments
How do I implement webhook notifications for payment status updates, and what's the recommended way to verify webhook authenticity?
How do I integrate Pine Labs payment gateway with my React Native mobile app and what are the required API credentials?
Can I customize the payment UI for card transactions, and what parameters can I pass to modify the checkout experience for my customers?
Assistant