MCP Server
Connect PayLinks to Claude Desktop, Cursor, and other MCP-compatible AI tools.
What is MCP?
The Model Context Protocol (MCP) is a standard for connecting AI assistants to external tools and data sources. The PayLinks MCP server lets you manage your payments through Claude Desktop and other MCP clients.
Installation
npx mcp-paylinks
No global install needed — npx runs it directly.
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
PAYLINKS_API_TOKEN | Yes | Your JWT bearer token |
PAYLINKS_API_BASE_URL | No | API base URL (default: https://api.paylinks.ro/api/v1) |
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"paylinks": {
"command": "npx",
"args": ["mcp-paylinks"],
"env": {
"PAYLINKS_API_TOKEN": "your-jwt-token-here"
}
}
}
}
Restart Claude Desktop after saving.
Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"paylinks": {
"command": "npx",
"args": ["mcp-paylinks"],
"env": {
"PAYLINKS_API_TOKEN": "your-jwt-token-here"
}
}
}
}
SSE Transport
For remote connections, the MCP server supports SSE (Server-Sent Events) transport:
PAYLINKS_API_TOKEN=your-token npx mcp-paylinks --sse --port 3100
Then connect your MCP client to http://localhost:3100/sse.
Available Tools
The MCP server exposes 41 tools:
Payment Links (7)
list_paylinks— List all payment linksget_paylink— Get paylink by IDcreate_paylink— Create a payment linkupdate_paylink— Update a paylinkdelete_paylink— Delete a paylinkduplicate_paylink— Duplicate a paylinkai_draft_paylink— AI-generate from prompt
Transactions (2)
list_transactions— List transactionsrefund_transaction— Refund a transaction
Customers (1)
list_customers— List customers by segment
Analytics (5)
get_analytics_summary— Dashboard summaryget_revenue_data— Revenue over timeget_mrr_data— Monthly recurring revenueget_payment_methods— Payment methods breakdowntrigger_reconciliation— Reconcile with Stripe
Stripe (6)
get_stripe_balance— Account balancelist_stripe_payouts— List payoutscreate_stripe_payout— Create a payoutget_stripe_account— Connected accountget_stripe_requirements— Verification requirementscreate_stripe_account_link— Onboarding link
Disputes (3)
list_disputes— List disputesget_dispute— Get disputesubmit_dispute_evidence— Submit evidence
Settings (2)
get_settings— Get settingsupdate_settings— Update settings
Subscriptions (1)
list_subscriptions— List subscriptions
Purchases (3)
list_purchases— List purchasesdownload_purchase— Get download URLcancel_subscription— Cancel subscription
Email (6)
list_broadcasts— List broadcastscreate_broadcast— Create broadcastsend_broadcast— Send broadcastai_draft_broadcast— AI draft broadcastlist_subscribers— List subscribersadd_subscriber— Add subscriber
Profile (2)
get_profile— Get current userupdate_profile— Update profile
Uploads (1)
presign_upload— Get presigned upload URL
Public (2)
list_public_paylinks— List public paylinksget_public_paylink— Get public paylink
Example Conversations
With Claude Desktop:
"Show me my PayLinks dashboard summary"
Claude calls get_analytics_summary and presents your revenue, transactions, and customer count.
"Create a payment link for consulting at 500 RON per hour"
Claude calls create_paylink with the right parameters.
"Draft and send an email to all subscribers about our Black Friday sale"
Claude calls ai_draft_broadcast, shows the draft, and on approval calls send_broadcast.
Getting Your Token
- Go to paylinks.ro and sign in
- Open browser DevTools (F12)
- Go to Application > Local Storage >
https://paylinks.ro - Copy the
tokenvalue
Or use the magic link flow programmatically (see Authentication).
MCP Server at a Glance
The PayLinks MCP server exposes 41 tools across 12 modules: Payment Links (7), Transactions (2), Customers (1), Analytics (5), Stripe (6), Disputes (3), Settings (2), Subscriptions (1), Purchases (3), Email (6), Profile (2), Uploads (1), and Public (2). It supports both stdio and SSE transport protocols and runs via npx mcp-paylinks with zero installation.
Frequently Asked Questions
How do I install the MCP server?
No installation is needed. Run npx mcp-paylinks and it downloads and executes automatically. For Claude Desktop, add the server to your claude_desktop_config.json. For Cursor, add it to .cursor/mcp.json.
Which MCP clients are supported?
The PayLinks MCP server works with any MCP-compatible client including Claude Desktop, Cursor, Claude Code, and other tools that support the Model Context Protocol. Both stdio (local) and SSE (remote) transport protocols are supported.
Can I run the MCP server remotely?
Yes. Use npx mcp-paylinks --sse --port 3100 to start the server with SSE transport. Then connect your MCP client to http://localhost:3100/sse. This enables remote connections and shared server instances.