Pine Labs Payment Gateway MCP Server (Official)
MCP client for Pine Labs payment gateway -- connect Claude Desktop, Cursor, VS Code, and other AI assistants to Pine Labs payment APIs using your client credentials.
Full Documentation | Available Tools | Use Cases | FAQs
Table of Contents
- Prerequisites
- Quick Start
- CLI Commands
- Supported AI Clients
- Manual Configuration
- Available Tools
- Tools
- Standalone Tool Inventory
- Use Cases
- Remote MCP Server
- Authentication
- Local MCP Server
- Configuration
- Debugging
- FAQ
- Keywords
- License
Prerequisites
- Node.js 20.18.1+ (for the prepared
pinelabs-mcp@1.0.7client) -- Download or install npm i pinelabs-mcp - Pine Labs Client Credentials -- Get your Client ID and Client Secret from the Pine Labs developer portal
Quick Start
Getting Your Credentials
- Sign up or log in to the Pine Labs merchant dashboard provided with your account.
- Navigate to your account settings to locate your Client ID and Client Secret.
- Use these credentials in the MCP server configuration as shown in the setup instructions above.
Configure and Connect
# 1. Configure your credentials
npx pinelabs-mcp configure
# 2. Check the MCP connection and discover available tools
npx pinelabs-mcp test
# 3. Auto-configure your AI client
npx pinelabs-mcp setup cursor # or: claude-desktop, vscode, windsurf, opencode, copilot, codex
Then restart your AI client and start using Pine Labs tools. In the prepared 1.0.7 client, test initializes MCP and reports the number of discovered tools. Discovery does not verify individual payment API permissions or call payment tools.
CLI Commands
If you followed the npx setup above, prefix these commands with npx, for example npx pinelabs-mcp test. Bare pinelabs-mcp commands require the executable to be installed on your PATH (for example, with npm install -g pinelabs-mcp).
pinelabs-mcp start Start MCP server (stdio mode)
pinelabs-mcp configure Interactive credential setup
pinelabs-mcp test Check MCP connection and discover tools
pinelabs-mcp setup <client> Auto-configure an AI client
pinelabs-mcp setup <client> --local Use local path (dev mode)
pinelabs-mcp setup <client> --print Preview config without writing
pinelabs-mcp status Show current configuration
pinelabs-mcp help Show help message
pinelabs-mcp --version Show version
Supported AI Clients
| Client | Command | Config Path |
|---|---|---|
| Claude Desktop | setup claude-desktop | Platform-specific Claude config |
| Cursor | setup cursor | ~/.cursor/mcp.json |
| VS Code | setup vscode | .vscode/mcp.json (project) |
| Windsurf | setup windsurf | ~/.codeium/windsurf/mcp_config.json |
| OpenCode | setup opencode | .opencode/config.json (project) |
| GitHub Copilot | setup copilot | ~/.copilot/mcp-config.json |
| OpenAI Codex | setup codex | .codex/config.toml |
Manual Configuration
If you prefer to configure manually instead of using npx pinelabs-mcp setup, add the following to your AI client's MCP config:
{
"mcpServers": {
"pinelabs": {
"command": "npx",
"args": ["-y", "pinelabs-mcp"],
"env": {
"PINELABS_CLIENT_ID": "your_client_id",
"PINELABS_CLIENT_SECRET": "your_client_secret"
}
}
}
}
Note: VS Code uses
"servers"instead of"mcpServers"as the top-level key. For production environment, add"PINELABS_ENV": "prod"to theenvblock.
For 55 hosted developer tools, also add "PINELABS_TOOL_ACCESS": "developer" to env, using valid credentials for the selected environment. For the 13 standard Production tools, omit that variable or set it to standard. OAuth connections remain at 13 tools.
The npm developer flag requires the prepared pinelabs-mcp@1.0.7 release to be published, plus the matching hosted-server deployment. Version 1.0.6 does not forward this flag. The npm client defaults to UAT; choose Production explicitly with PINELABS_ENV=prod. Keep real credentials out of source control and use client-managed secret inputs where supported.
Available Tools
The hosted Pine Labs MCP Server provides 13 standard read-only tools in Production and 55 tools with explicit developer access. Availability depends on the connection:
| Connection | Production | UAT |
|---|---|---|
| ChatGPT / Claude using OAuth | 13 read-only tools | 13 read-only tools |
| Direct merchant credentials, standard profile | 13 read-only tools | Server-configured; 55 when legacy read aliases are enabled |
| Direct merchant credentials, developer profile | 55 tools | 55 tools |
The 55-tool profile includes compatibility aliases. Server filters can reduce the inventory, and underlying API permissions still apply. Use credentials issued for the selected environment. Claude Desktop connected through merchant credentials follows the direct-credentials profile.
The npm package proxies the selected hosted endpoint; that server's tools/list response supplies the actual tool names and schemas. Hosted developer access requires the matching server deployment and either the X-PineLabs-Tool-Access: developer header or the updated npm client's PINELABS_TOOL_ACCESS=developer setting.
Tools
These are the 13 default Production tools, also available to OAuth connections in UAT. The hosted server's tools/list response is authoritative.
| Tool | Description |
|---|---|
get_payment_link | Retrieve payment-link details by a supported identifier or query. |
get_order_details | Retrieve order, payment, or refund details using the supported lookup or report options. |
search_transaction | Look up a transaction. |
get_bin_details | Retrieve BIN information. |
get_settlement | Retrieve settlement details or search settlements. |
get_plans | Retrieve subscription plans. |
get_subscriptions | Retrieve subscriptions. |
get_presentation | Retrieve subscription presentation details. |
get_merchant_success_rate | Retrieve merchant payment success-rate analytics. |
get_api_documentation | Retrieve documentation for a Pine Labs API. |
list_plural_apis | List supported Pine Labs APIs and descriptions. |
detect_stack | Identify a project's technology stack for integration guidance. |
integrate_pinelabs_checkout | Generate checkout integration guidance and code examples. |
Standalone Tool Inventory
The existing category tables below describe the standalone Python server in this repository. Published packages can have different tool inventories and entry points. These local tool names and registration rules are separate from the hosted 13/55 profiles above. The hosted developer profile excludes sensitive card-payment, OTP-submission, password-reset, payout-creation, and payout-read tools.
Tool Type Legend
Each tool below is tagged with a Type indicating its access pattern and operational risk. This helps you reason about which tools are safe in read-only deployments and which require explicit user confirmation in autonomous (agentic) flows.
| Type | Meaning | Examples |
|---|---|---|
| Read | Fetches or queries data only. | get_order_by_order_id, get_all_settlements, list_plural_apis |
| Write | Creates or modifies resources and mutates server state. | create_payment_link, create_order, update_plan |
| Destructive | Cancels, deletes, refunds, or moves money. Irreversible or financially impactful. Should require explicit user confirmation in agent flows. | cancel_order, create_refund, create_payout, delete_plan |
Read-only mode: The hosted standard Production and OAuth profiles enforce the 13-tool read-only inventory above. The standalone Python
--read-onlyoption only skips write-only toolsets; mixed toolsets can still contain writes, so it must not be used as an authorization boundary.
Payment Links
| Tool | Type | Description | API Reference |
|---|---|---|---|
create_payment_link | Write | Create a new payment link for collecting payments | Payment Link - Create |
get_payment_link_by_id | Read | Fetch a payment link by its payment link ID | Payment Link - Get by ID |
get_payment_link_by_merchant_reference | Read | Fetch a payment link by its merchant payment link reference | Payment Link - Get by Reference |
cancel_payment_link | Destructive | Cancel an active payment link | Payment Link - Cancel |
resend_payment_link_notification | Write | Resend a payment link notification to the customer | Payment Link - Resend |
Orders
| Tool | Type | Description | API Reference |
|---|---|---|---|
get_order_by_order_id | Read | Retrieve order details by order ID | Order - Get by ID |
get_order_by_merchant_order_reference | Read | Retrieve order details by merchant order reference | Order - Get by Merchant Reference |
capture_order | Write | Capture a previously authorized payment against an order | Order - Capture |
cancel_order | Destructive | Cancel a pre-authorized payment against an order | Order - Cancel |
fetch_order_payments | Read | Fetch all payment attempts associated with an order | Order - Get Payments |
Checkout Orders
| Tool | Type | Description | API Reference |
|---|---|---|---|
create_order | Write | Create a new checkout order and generate a checkout link | Order - Create |
Card Payments
| Tool | Type | Description | API Reference |
|---|---|---|---|
create_card_payment | Write | Create a server-to-server card payment against an order | Card Payment - Create |
get_card_details | Read | Retrieve card details (BIN, network, type) for a card number | Card Details - Get |
OTP
| Tool | Type | Description | API Reference |
|---|---|---|---|
generate_otp | Write | Generate an OTP for a card payment authentication flow | OTP - Generate |
submit_otp | Write | Submit an OTP to complete a card payment authentication | OTP - Submit |
resend_otp | Write | Resend an OTP for a card payment authentication | OTP - Resend |
Refunds
| Tool | Type | Description | API Reference |
|---|---|---|---|
create_refund | Destructive | Initiate a full or partial refund against a captured payment | Refund - Create |
Settlements
| Tool | Type | Description | API Reference |
|---|---|---|---|
get_all_settlements | Read | Retrieve all settlements for the merchant within a date range | Settlements - Get All |
get_settlement_by_utr | Read | Retrieve a specific settlement by its UTR (Unique Transaction Reference) | Settlement - Get by UTR |
Payouts
| Tool | Type | Description | API Reference |
|---|---|---|---|
create_payout | Destructive | Create a payout to disburse funds to a beneficiary (moves money) | Payout - Create |
get_payout_details | Read | Retrieve details of a payout by payout ID | Payout - Get |
get_payout_payments | Read | List payments associated with a payout | Payout - Get Payments |
get_payout_balance | Read | Retrieve the available payout balance for the merchant | Payout - Get Balance |
update_payout | Write | Update an existing payout request | Payout - Update |
cancel_payout | Destructive | Cancel a pending payout request | Payout - Cancel |
Subscriptions
| Tool | Type | Description | API Reference |
|---|---|---|---|
create_plan | Write | Create a new subscription plan | Plan - Create |
get_plans | Read | Retrieve subscription plans | Plan - Get All |
get_plan_by_id | Read | Retrieve a subscription plan by plan ID | Plan - Get Specific |
get_plan_by_merchant_reference | Read | Retrieve a plan by merchant plan reference | Plan - Get Specific |
update_plan | Write | Update an existing subscription plan | Plan - Update |
delete_plan | Destructive | Delete a subscription plan | Plan - Delete |
create_subscription | Write | Create a new subscription against a plan | Subscription - Create |
get_subscriptions | Read | Retrieve subscriptions | Subscription - Get All |
get_subscription_by_id | Read | Retrieve a subscription by subscription ID | Subscription - Get Specific |
get_subscription_by_merchant_reference | Read | Retrieve a subscription by merchant reference | Subscription - Get Specific |
pause_subscription | Write | Pause an active subscription | Subscription - Pause |
resume_subscription | Write | Resume a paused subscription | Subscription - Resume |
cancel_subscription | Destructive | Cancel an active subscription | Subscription - Cancel |
update_subscription | Write | Update an existing subscription | Subscription - Update |
create_presentation | Write | Create a presentation (payment request) for a subscription | Presentation - Create |
get_presentation | Read | Retrieve a presentation by presentation ID | Presentation - Get |
delete_presentation | Destructive | Delete a presentation | Presentation - Delete |
get_presentations_by_subscription_id | Read | Retrieve all presentations for a subscription | Presentation - Get by Subscription |
get_presentation_by_merchant_reference | Read | Retrieve a presentation by merchant reference | Presentation - Get |
send_subscription_notification | Write | Send a pre-debit notification for a subscription | Presentation - Create |
create_debit | Destructive | Execute a debit (payment collection) against a subscription | Presentation - Create |
create_merchant_retry | Write | Retry mandate execution for a failed debit (max 3 retries) | Merchant Retry |
UPI Payments
| Tool | Type | Description | API Reference |
|---|---|---|---|
create_upi_intent_payment_with_qr | Write | Create a UPI intent payment with QR code for instant collection | UPI Intent QR |
Reports and Transaction Search
| Tool | Type | Description | API Reference |
|---|---|---|---|
get_payment_link_details | Read | Fetch payment link details within a date range | API Docs |
get_order_details | Read | Fetch order details within a date range | API Docs |
get_refund_order_details | Read | Fetch refund order details within a date range | API Docs |
search_transaction | Read | Search for a transaction by transaction ID | API Docs |
Developer Tools
| Tool | Type | Description |
|---|---|---|
get_api_documentation | Read | Fetch Pine Labs API documentation for a specific API |
list_plural_apis | Read | List all available Pine Labs (Plural) APIs with descriptions |
detect_stack | Read | Detect the technology stack of the current project to tailor integration guidance |
integrate_pinelabs_checkout | Read | Generate stack-aware code snippets and integration guidance for Pine Labs Checkout |
Merchant Analytics
| Tool | Type | Description |
|---|---|---|
get_merchant_success_rate | Read | Fetch transaction success rate for the merchant over a date range |
Use Cases
Hosted read-only connections support lookup, reporting, and integration guidance. The creation and modification examples below require developer access and the corresponding merchant API permissions. Obtain user confirmation before financial changes.
- Payment Gateway Integration: Connect your AI application to the Pine Labs payment gateway to create checkout orders, generate payment links, and process transactions programmatically.
- AI-Powered Checkout Flows: Build conversational checkout experiences where AI assistants create orders, generate payment links, and track payment status in real time.
- UPI Payment Automation: Generate UPI intent QR codes and process UPI payments through AI-driven interfaces for in-app or point-of-sale collection.
- Subscription Lifecycle Management: Automate recurring payment plan creation, subscription activation, pause/resume cycles, debit presentations, and pre-debit notifications.
- Agentic Payment Workflows: Build autonomous AI agents that manage end-to-end payment operations -- from order creation through reconciliation -- with explicit user confirmation for financial changes.
- Order Tracking and Reconciliation: Query order details, search transactions by ID, and reconcile payments to verify statuses and resolve disputes.
- Payment Analytics and Reporting: Retrieve payment link reports, order summaries, refund details, and merchant success rates over custom date ranges.
- Customer Support Automation: Enable support agents or chatbots to look up transactions, check payment statuses, cancel orders, and resend payment notifications.
Remote MCP Server
The Remote MCP Server is hosted and maintained by Pine Labs. Use this approach if you prefer to configure your AI client manually with the remote endpoint instead of using the npm CLI.
Production uses https://mcp.pinelabs.com/mcp; UAT uses https://pluralai.v2.pinepg.in/mcp. The examples below use Production. To request the 55-tool developer profile, add "--header", "X-PineLabs-Tool-Access:developer" to the proxy's args array, alongside valid merchant credentials. Omit that header for the standard Production profile. OAuth connections stay at 13 tools.
Benefits
- Zero Setup: No Python, Docker, or local infrastructure to manage
- Always Updated: Automatic updates with the latest payment API features and security patches
- High Availability: Hosted on Pine Labs production infrastructure
- Secure Authentication: Client credential authentication over HTTPS
If you are connecting to a self-hosted remote deployment instead of the
Pine Labs hosted service, replace the remote URL below with
<your-mcp-server-url>.
Prerequisites
npx is required for the stdio proxy examples below. Clients with native HTTP support can connect directly to the endpoint.
Install Node.js (which includes npm and npx):
macOS
brew install node
Windows
choco install nodejs
Alternatively, download from https://nodejs.org/.
Verify Installation
npx --version
Usage with Cursor
Add the following to your Cursor MCP settings:
{
"mcpServers": {
"pinelabs": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.pinelabs.com/mcp",
"--header",
"X-Client-Id:${PINELABS_CLIENT_ID}",
"--header",
"X-Client-Secret:${PINELABS_CLIENT_SECRET}"
],
"env": {
"PINELABS_CLIENT_ID": "<your-client-id>",
"PINELABS_CLIENT_SECRET": "<your-client-secret>"
}
}
}
}
Replace <your-client-id> and <your-client-secret> with your Pine Labs credentials. See Authentication for details.
Usage with Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"pinelabs": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.pinelabs.com/mcp",
"--header",
"X-Client-Id:${PINELABS_CLIENT_ID}",
"--header",
"X-Client-Secret:${PINELABS_CLIENT_SECRET}"
],
"env": {
"PINELABS_CLIENT_ID": "<your-client-id>",
"PINELABS_CLIENT_SECRET": "<your-client-secret>"
}
}
}
}
Replace <your-client-id> and <your-client-secret> with your Pine Labs credentials.
- Configure MCP servers in Claude Desktop: MCP Quickstart Guide
- Install Claude Desktop: Download
Usage with VS Code
Add the following to your VS Code settings (JSON):
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "pinelabs_client_id",
"description": "Pine Labs Client ID"
},
{
"type": "promptString",
"id": "pinelabs_client_secret",
"description": "Pine Labs Client Secret",
"password": true
}
],
"servers": {
"pinelabs": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.pinelabs.com/mcp",
"--header",
"X-Client-Id:${PINELABS_CLIENT_ID}",
"--header",
"X-Client-Secret:${PINELABS_CLIENT_SECRET}"
],
"env": {
"PINELABS_CLIENT_ID": "${input:pinelabs_client_id}",
"PINELABS_CLIENT_SECRET": "${input:pinelabs_client_secret}"
}
}
}
}
}
Learn more about MCP servers in VS Code's agent mode documentation.
Authentication
The MCP server authenticates using Client ID and Client Secret credentials issued by Pine Labs.
Note: Supply local credentials through environment variables so secrets stay out of command arguments and shell history. The remote server receives credentials as HTTP headers. The
configureandsetupcommands save credential-bearing local files; keep those files private.
Local MCP Server
Deploy the MCP server on your own infrastructure for full control over the runtime environment. This standalone Python server has its own tool inventory (see Standalone Tool Inventory); it does not inherit the hosted 13/55 profiles or use PINELABS_TOOL_ACCESS.
Prerequisites
- Python 3.12+
- Docker (optional, for containerized deployment)
- Git
Install on Windows (Chocolatey)
Compatibility: The stdio examples below require a matching standalone CLI release. PyPI
0.1.2, installed by this wrapper, runs HTTP instead; use the hosted npm client or Docker for stdio until the Python package is aligned.
The fastest way to get the MCP server on a Windows machine is via Chocolatey. The package is a thin wrapper that installs Python 3.10+ as a dependency and then installs pinelabs-mcp-server from PyPI, registering a pinelabs-mcp shim on PATH.
choco install pinelabs-mcp
Verify the install:
pinelabs-mcp --help
Run the server over stdio:
# Supply PINELABS_CLIENT_ID and PINELABS_CLIENT_SECRET through your process environment.
pinelabs-mcp stdio --env uat
MCP client configuration (Claude Desktop / Cursor / VS Code)
After choco install, point your MCP client at the pinelabs-mcp shim:
{
"mcpServers": {
"pinelabs": {
"command": "pinelabs-mcp",
"args": ["stdio", "--env", "uat"],
"env": {
"PINELABS_CLIENT_ID": "<your-client-id>",
"PINELABS_CLIENT_SECRET": "<your-client-secret>"
}
}
}
}
To uninstall:
choco uninstall pinelabs-mcp
Using Public Docker Image (Recommended)
Use the official Pine Labs Docker image directly. No build step required.
Note: To pin a specific version, replace
pinelabs/mcp:latestwithpinelabs/mcp:<version-tag>(e.g.,pinelabs/mcp:v1.0.0) in the configurations below.
Usage with Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"pinelabs": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"PINELABS_CLIENT_ID",
"-e",
"PINELABS_CLIENT_SECRET",
"-e",
"PINELABS_ENV",
"pinelabs/mcp:latest"
],
"env": {
"PINELABS_CLIENT_ID": "<your-client-id>",
"PINELABS_CLIENT_SECRET": "<your-client-secret>",
"PINELABS_ENV": "prod"
}
}
}
}
Replace <your-client-id> and <your-client-secret> with your Pine Labs credentials.
- Configure MCP servers in Claude Desktop: MCP Quickstart Guide
- Install Claude Desktop: Download
Usage with VS Code
Add the following to your VS Code settings (JSON):
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "pinelabs_client_id",
"description": "Pine Labs Client ID"
},
{
"type": "promptString",
"id": "pinelabs_client_secret",
"description": "Pine Labs Client Secret",
"password": true
}
],
"servers": {
"pinelabs": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"PINELABS_CLIENT_ID",
"-e",
"PINELABS_CLIENT_SECRET",
"-e",
"PINELABS_ENV=prod",
"pinelabs/mcp:latest"
],
"env": {
"PINELABS_CLIENT_ID": "${input:pinelabs_client_id}",
"PINELABS_CLIENT_SECRET": "${input:pinelabs_client_secret}"
}
}
}
}
}
Learn more about MCP servers in VS Code's agent mode documentation.
Usage with Cursor
{
"mcpServers": {
"pinelabs": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"PINELABS_CLIENT_ID",
"-e",
"PINELABS_CLIENT_SECRET",
"-e",
"PINELABS_ENV=prod",
"pinelabs/mcp:latest"
],
"env": {
"PINELABS_CLIENT_ID": "<your-client-id>",
"PINELABS_CLIENT_SECRET": "<your-client-secret>"
}
}
}
}
Replace <your-client-id> and <your-client-secret> with your Pine Labs credentials.
Build from Docker (Alternative)
Clone the repository and build the Docker image locally:
git clone https://github.com/plural-pinelabs/pinelabs-online-mcp.git
cd pinelabs-online-mcp
docker build -t pinelabs-mcp-server:latest .
Once built, replace pinelabs/mcp:latest with pinelabs-mcp-server:latest in the configurations above.
Build from Source
Run the server directly from source without Docker:
# Clone the repository
git clone https://github.com/plural-pinelabs/pinelabs-online-mcp.git
cd pinelabs-online-mcp
# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate # macOS/Linux
# .venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Supply PINELABS_CLIENT_ID and PINELABS_CLIENT_SECRET through your process environment.
# Run the server (stdio mode)
python -m cli.pinelabs_mcp_server.main stdio --env prod
Once running, configure your MCP client to connect to the local process. Example for VS Code:
{
"mcp": {
"servers": {
"pinelabs": {
"command": "python",
"args": [
"-m",
"cli.pinelabs_mcp_server.main",
"stdio"
],
"env": {
"PINELABS_CLIENT_ID": "<your-client-id>",
"PINELABS_CLIENT_SECRET": "<your-client-secret>",
"PINELABS_ENV": "prod"
}
}
}
}
}
Configuration
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
PINELABS_CLIENT_ID | Yes | -- | Pine Labs client ID for API authentication |
PINELABS_CLIENT_SECRET | Yes | -- | Pine Labs client secret for API authentication |
PINELABS_ENV | No | uat | Target environment: uat or prod |
LOG_LEVEL | No | INFO | Log verbosity: DEBUG, INFO, WARNING, ERROR |
LOG_FILE | No | stderr | Path to log output file |
PINELABS_TOOL_ACCESS | No | standard | npm proxy only: standard or developer; requires the updated npm release and hosted server |
LOG_LEVEL and LOG_FILE apply to the standalone Python server. Its toolset options are CLI flags; it does not read READ_ONLY or TOOLSETS environment variables.
Command Line Flags
python -m cli.pinelabs_mcp_server.main <transport> [options]
Transports:
stdio Standard I/O transport (for MCP clients)
http HTTP transport (for web-based access)
Options:
--client-id Pine Labs client ID
--client-secret Pine Labs client secret
--env Environment: uat, prod (default: uat)
--log-file Path to log file
--log-level Log level: DEBUG, INFO, WARNING, ERROR
--read-only Skip write-only toolsets (mixed toolsets can still contain writes)
--toolsets Comma-separated list of toolsets to enable
HTTP-only options:
--host Host to bind to (default: 0.0.0.0)
--port Port to listen on (default: 8000)
Debugging the Server
Use the --log-level DEBUG flag and optionally --log-file to write detailed logs for troubleshooting:
# Supply credentials through your process environment.
python -m cli.pinelabs_mcp_server.main stdio \
--log-level DEBUG --log-file ./debug.log
FAQ
Q: Do I need to provide amounts in paisa?
A: Follow each tool's schema. Fields such as amount_value use integer paise: 50000 represents INR 500. Do not assume 500 means INR 500.
Q: What environments are supported?
A: The server supports uat (default) and prod environments. Set via PINELABS_ENV or --env.
Q: Can I restrict which tools are available?
A: Hosted standard Production and OAuth connections receive 13 read-only tools; direct merchant connections can explicitly request the 55-tool developer profile. For the standalone Python server, use --toolsets to select groups (e.g., --toolsets payment_links,orders). Its --read-only flag only skips write-only groups and does not enforce the hosted profile.
Q: Where can I find the full API reference? A: Visit the Pine Labs Developer Documentation for the complete API reference.
Keywords
Pine Labs, Pine Labs Online, Plural, Plural Online, payment gateway, online payment gateway, checkout gateway, payment checkout, online checkout, hosted checkout, payment page, payments, online payments, digital payments, payment processing, accept payments, collect payments, payment integration, gateway integration, payments API, payment API, checkout API, gateway API, UPI, cards, credit card, debit card, netbanking, wallet, EMI, cardless EMI, subscriptions, recurring payments, orders, order payments, create payment, initiate payment, process payment, payment links, MCP server, Model Context Protocol, AI payment automation, agentic payments, QR code payments, payment orchestration, merchant API, transaction reporting, fintech, SDK
License
This project is licensed under the Apache 2.0 license. See LICENSE for the full terms.