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 payments, analytics, disputes, customer operations, and free business utilities directly from MCP clients.
Installation
npx mcp-paylinks
No global install needed. npx downloads and runs the server 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://paylinks.ro) |
PAYLINKS_API_TIMEOUT_MS | No | Request timeout in ms (default: 15000) |
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"paylinks": {
"command": "npx",
"args": ["-y", "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": ["-y", "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 61 public tools across 16 modules:
PayLinks (8)
list_paylinksget_paylinkcreate_paylinkupdate_paylinkdelete_paylinkduplicate_paylinktoggle_paylinkai_draft_paylink
Transactions (1)
get_transactions
Analytics (5)
get_analytics_summaryget_revenueget_mrrget_payment_methodsreconcile_analytics
Stripe (6)
get_balanceget_payoutscreate_payoutget_stripe_accountcreate_account_linkget_account_requirements
Customers (1)
get_customers
Subscriptions (1)
list_subscriptions
Disputes (3)
list_disputesget_disputesubmit_dispute_evidence
Email (7)
list_broadcastscreate_broadcastget_broadcastsend_broadcastai_draft_broadcastlist_subscribersadd_subscriber
Purchases (3)
list_purchasespresign_downloadcancel_purchase_subscription
Profile (3)
get_meupdate_mecomplete_onboarding
Settings (2)
get_settingsupdate_settings
Auth (2)
request_magic_linkverify_magic_link
Uploads (1)
presign_upload
Crypto (3)
crypto_list_walletscrypto_get_balancecrypto_create_payment_link
Public (3)
list_public_paylinksget_public_paylinkclaim_free_paylink
Free Tools (12)
free_generate_proforma_totalsfree_convert_bank_statement_rowsfree_verify_cuifree_generate_qr_payloadfree_calculate_pfa_taxesfree_calculate_vatfree_calculate_net_incomefree_compare_payment_commissionsfree_calculate_hourly_ratefree_get_fiscal_calendar_eventsfree_quiz_pfa_vs_srlfree_split_bill
Available Resources
The MCP server also exposes 3 resources:
paylinks://dashboard/statspaylinks://activity/recentpaylinks://account/overview
Privileged Tools
Privileged MCP operations are intentionally not listed in the public catalog and are only registered when the supplied API token has elevated permissions.
Example Conversations
"Create a payment link for consulting at 500 RON, then show me this month's revenue and MRR."
The assistant can call create_paylink, get_revenue, and get_mrr.
"Draft and send an email campaign for Black Friday to all subscribers."
The assistant can call ai_draft_broadcast, create_broadcast, and send_broadcast.
"Run PFA vs SRL quiz and compare payment processor commissions for 10,000 RON/month."
The assistant can call free_quiz_pfa_vs_srl and free_compare_payment_commissions.
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 programmatic flow in Authentication.
MCP Server at a Glance
The PayLinks MCP server exposes 61 public tools across 16 modules, plus 3 resources. It supports both stdio and SSE transport and runs via npx mcp-paylinks with zero installation. Privileged operations are available only for elevated tokens.
Frequently Asked Questions
How do I install the MCP server?
No installation is needed. Run npx mcp-paylinks and it downloads and executes automatically.
Which MCP clients are supported?
The PayLinks MCP server works with any MCP-compatible client, including Claude Desktop, Cursor, Claude Code, and other Model Context Protocol clients.
Can I run the MCP server remotely?
Yes. Use npx mcp-paylinks --sse --port 3100 and connect your MCP client to http://localhost:3100/sse.