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.
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
Get Your API Credentials
Pine Labs authenticates MCP requests using a Client ID and Client Secret pair. To obtain yours:
- 1 Log in to the Pine Labs Dashboard .
- 2 Navigate to your merchant account settings.
-
3
Locate your
X-Client-IdandX-Client-Secretvalues. - 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/
|
Connect Your AI Client
Pick the application you use and apply the matching configuration.
-
1
Open Claude Desktop and navigate to
Settings → Developer → Edit Config. - 2 Add the JSON configuration below, then save the file.
-
3
Replace
<your-client-id>and<your-client-secret>with the credentials from Step 1.
{
"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 Open Visual Studio Code.
-
2
Launch the Command Palette for macOS:
Cmd + Shift + Pand for Windows / Linux:Ctrl + Shift + P -
3
Search for
MCP: Open User Configurationand select. - 4 Merge the configuration block below into your settings file.
- 5 VS Code will prompt you for both credential values when the MCP server starts.
{
"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}"
}
}
}
}
}
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”
Updated about 9 hours ago
