Build with AI. Pay with Pine Labs.
Connect AI assistants and automation tools directly to Pine Labs payment APIs. Use MCP Server for natural language, Agent Toolkit for code, or n8n for no-code workflows.
MCP Server
Connect Claude Desktop, Cursor, VS Code, and other AI assistants directly to Pine Labs APIs. Talk to your payments stack in natural language.
- Hosted Streamable HTTP endpoint
- Works with Claude, Cursor, VS Code, Windsurf
- 30+ tools across Payments, Orders, Refunds
- Credentials stay on your side
Agent Enablement Toolkit
Build AI-powered payment agents with OpenAI Agents, OpenAI Chat, LangChain, or Vercel AI SDK. Auto-handles auth and token refresh.
- OpenAI Agents, Chat, LangChain, Vercel AI
- Automatic token caching & refresh
- Type-safe tool wrappers
- UAT and Production environments
n8n Node
Pre-built n8n nodes for Pine Labs. Create payment links, track orders, and trigger automations — all without writing code.
- Drag-and-drop n8n workflows
- Payment Link & Order resources
- Built-in OAuth2 credential type
- Self-host or n8n Cloud
mcp_pinelabs_create_payment_link$ npm install @plural_pinelabs/agent-toolkit @openai/agentsimport { Agent, run } from "@openai/agents";
import {
PinelabsAgentToolkit,
pinelabsEnvironment,
} from "@plural_pinelabs/agent-toolkit/openai";
const pinelabs = new PinelabsAgentToolkit(
pinelabsEnvironment.UAT, // or pinelabsEnvironment.PRODUCTION
process.env.PINE_CLIENT_ID!,
process.env.PINE_CLIENT_SECRET!,
);
const agent = new Agent({
name: "Payment Agent",
instructions: "You are a helpful payment assistant.",
model: "gpt-4o",
tools: pinelabs.getAgentTools(),
});
const result = await run(
agent,
"Create an order for Rs. 500 for customer john@example.com",
);
console.log(result.finalOutput);Everything you need to ship MCP
From a 3-step setup to the full 30-tool reference — jump straight to the section you need.
Overview
What MCP is, security model, and key benefits.
Use Cases
Real prompts and the tools they call behind the scenes.
Available Tools
Full reference for 30+ tools across Payments, Orders, and Refunds.
Setup Guide
Pick between hosted (API Execution) and local (CLI) flows.
API Execution
Hosted setup for Claude Desktop and VS Code in 3 steps.
CLI Setup
Run pinelabs-mcp locally with auto-config for 7 AI clients.
FAQs
Credentials, environments, payment methods, and limits.
Code-first and no-code paths
Pick the integration style that matches your stack — TypeScript SDKs, n8n nodes, or a curated comparison.
Why AI + Pine Labs?
Faster integrations
Tell the AI what you want — it picks the right tool, handles auth, and makes the API call.
Secure by design
Credentials travel only in headers, never persist on the server. Per-request isolation.
Works everywhere
Claude Desktop, Cursor, VS Code, Windsurf, OpenCode, GitHub Copilot, n8n, LangChain.
Production ready
Used in real merchant flows. UAT for testing, Production endpoints when you go live.
Ready to build with AI?
Set up MCP, install the Agent Toolkit, or drop in the n8n node — you'll be moving real money in minutes.
