P-Link MCP Server is a server compliant with the MCP (Model Context Protocol) specification, integrating the fetch-402 client from Coinbase and implementing the HTTP 402 protocol on the server side, enabling ChatGPT, Claude, and other MCP-compatible clients to connect to the payment system on Solana. The project exposes the p-link.io API as MCP tools, usable via HTTP (Streamable) and/or STDIO.
Main capabilities (tools):
- send_money: Send a specified amount to a wallet, email, or phone number. The recipient can be any email or phone number. If the other party does not have a P-Link account, the system will create an account for them and send access details via email or SMS; if they already have an account, their wallet will be reused. If the account is not claimed within 3 days, the funds will be returned to the sender.
- request_payment_link: Create a payment collection link. You can provide a webhook to be called upon successful payment, a notification email address, or customize the payment page via parameters. The resulting payment link complies with the HTTP 402 specification, meaning AI can pay for resources protected by that link. Payment can be made using any Solana token and is converted to USDC during the transaction; humans can pay with a bank card. Payment hooks can be easily integrated into automation tools (such as IFTTT, Framer, etc.).
- get_wallet_info: Get wallet information (balance, public address, etc.).
- get_wallet_history: Get the list of transactions related to my Solana wallet.
- pay_and_get_402_protected_url: Pay an HTTP 402-protected URL and return the protected result; the assistant will use the user's wallet to pay for the requested resource.
- get_wallet_and_otp: Create a wallet for this email and get an OTP.
- login_with_otp: Log in using an OTP.
- fund_my_wallet: Get ways to fund the wallet: send Solana cryptocurrency to the specified Solana public wallet address, or use the provided link to top up by credit card (provided by Stripe).
- get_private_key_of_wallet: Get the wallet private key. No OTP is required on the first call; the server will send an OTP for use in subsequent calls.
Usage examples (ChatGPT / Claude MCP):
- "Hello! What is my wallet balance?"
- "Can you help me buy my favorite shoes at https://p-link.io/@phh/0.01?PRODUCT=My_Favorite_shoes&id=888 ?"
- "Send $0.2 to @Paracetamol"
- "Send $0.2 to s.smith@mail.com"
- "Can you help me check the status of this transaction?"
- "Create a 10 EUR payment link"
- "Show my transaction history"
- "Pay for this P-Link a friend sent me:https://p-link.io/@Paracetamol/0.1”
Prerequisites: No prerequisites. When using the MCP server, you can call the get_wallet_and_otp tool to create a wallet associated with an email and log in. To send funds, you can use the fund_my_wallet tool to get instructions for funding the wallet using a Solana wallet or a credit card. If you already have a P-Link account, you can specify the API_KEY parameter; if you want to create an account through the assistant, leave this parameter empty. The APIKEY can be obtained in the software on the API, Send money page:https://p-link.io/ApiDoc/Send。
Installation:
- Claude Desktop: Edit the claude_desktop_config.json file in the configuration directory, replace SHOPID and APIKEY, then fill in the corresponding content; a workspace account is required. In Settings → Connectors → Create Connector, fill in the relevant content. After adding, the connector will be available in new sessions.
- Other MCP clients: Create an installation folder and run the corresponding command in the shell.
- Use Docker to run the MCP server in HTTP mode; create a .env file to configure environment variables.
Examples of compatible clients: ChatGPT (OpenAI, via external MCP configuration), Claude (Anthropic, via the "Tools manifest URL"), n8n / Flowise / LangChain (imported via a public URL).
MCP Manifest endpoint: The MCP API exposes a JSON manifest describing all available tools, for use by compatible clients (ChatGPT, Claude, n8n, etc.):https://mcp.p-link.io/.well-known/mcp/manifest.json
Live server:https://mcp.p-link.io/mcp。将 Connect a Solana wallet to ChatGPT, Claude, or n8n to easily manage purchases through conversation.
License: GNU GENERAL PUBLIC LICENSE. Related documentation:https://docs.p-link.io/automations 、https://p-link.io/documentation 。