P-Link

x402 client implementation (x402-fetch), HTTP 402 server implementation and Model Context Protocol (MCP) for P-Link.io : pay, send and receive money with agents
  • typescript

1

GitHub Stars

typescript

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs

You can connect your Solana wallet to ChatGPT, Claude, or other MCP-compatible clients to manage payments, send money, create payment links, and view wallet activity through natural language interactions. This MCP server exposes the p-link.io API as MCP tools over HTTP and STDIO, enabling seamless payment capabilities and automation workflows.

How to use

You will interact with the MCP server using compatible clients such as ChatGPT, Claude, or n8n. Use natural language prompts to check your wallet balance, view transaction history, send funds to a Solana wallet, email, or phone number, and create payment links that can be paid with Solana tokens or by card. You can also fund your wallet via Solana transfers or credit card payments through Stripe.

How to install

Prerequisites: ensure Node.js and npm are installed on your system.

# Install dependencies and start via STDIO using npx
npx plink-mcp-server --apikey=YOUR_API_KEY

# Or, install via npm and run build/start if a local workflow is shown
git clone https://github.com/paracetamol951/P-Link-MCP.git
cd P-Link-MCP
npm install
npm run build
npm run start

HTTP (Docker) installation starts the MCP server in HTTP mode. Use the following command to run with Docker Compose.

docker compose up

Claude desktop users can configure a local MCP connection by editing the Claude desktop configuration and adding an MCP server entry as shown.

{
  "mcpServers": {
    "plink": {
      "command": "npx",
      "args": [
        "plink-mcp-server",
        "--apikey=[replaceWithYourAPIKEY]"
      ]
    }
  }
}

Additional configuration and endpoints

The MCP manifest for compatible clients is available at the following endpoint to discover all tools exposed by this server: /mcp/.well-known/mcp/manifest.json.

Common client configuration steps include wiring a remote MCP URL for ChatGPT or Claude, and optionally setting up local STDIO configurations using npx. Remember to replace placeholders like YOUR_API_KEY with your actual credentials.

Security and credentials

Always protect your API key. Use environment variables or secret management in your orchestration layer. Do not expose keys in client prompts or logs.

Troubleshooting and tips

If you encounter connectivity issues, verify that the MCP URL is reachable and that the API key used by the client matches the one configured on the server. For HTTP mode, ensure Docker services are running and ports are accessible. For STDIO mode, confirm the command and arguments are copied exactly from the configuration examples.

Example usage scenarios

Check wallet balance in a chat: “What is the balance of my wallet?”.

Create a payment link for 10 EUR: “Create a payment link of 10 euros.”

Send funds to an email: “Send 0.2$ to s.smith@mail.com.”

MCP manifest and tools

The MCP server exposes a set of tools you can call from your MCP-compatible client, including payment, wallet management, and authentication actions.

Available tools

send_money

Send a specified amount to a Solana wallet, email, or phone number. Creates a P-Link account if needed and reuses existing accounts when possible.

request_payment_link

Generate a 402-compliant payment link for a specified amount, with optional webhook or email notifications. Supports Solana token payments and card payments.

get_wallet_info

Retrieve wallet balance, public address, and related information.

get_wallet_history

Fetch the list of transactions associated with your Solana wallet.

pay_and_get_402_protected_url

Pay for a HTTP 402 protected resource and receive the protected result.

get_wallet_and_otp

Create a wallet for an email and obtain a one-time password (OTP).

login_with_otp

Authenticate using a one-time password.

fund_my_wallet

Provide methods to fund your wallet via Solana transfer or credit card funding through Stripe.

get_private_key_of_wallet

Retrieve the private key for your wallet after an OTP-based request.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational