SuperAPIAI Directory

solinkify-mcp

github.com · AI developer platforms

Agentic payments on Solana: discover x402-priced endpoints, pay HTTP 402 paywalls in USDC, manage balances and subscriptions, with spending caps and escrow.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

Solinkify MCP is an MCP (Model Context Protocol) server for implementing agentic payments on Solana. It enables any AI agent—including Claude Desktop, Claude Code, Cursor, or a user-built MCP host—to pay for various resources on Solana through Solinkify, subject to hard spending limits. Its payments follow the x402 standard and are provided as a set of agent-callable tools.

Main Capabilities

The server provides the following toolset:

  • Gate (x402 paywall): Look up priced endpoints in a public registry, preview prices, automatically pay for HTTP 402 content, manage prepaid balances, and purchase subscriptions.
  • DataHub: Search the dataset marketplace and purchase datasets (99% goes to the seller, with a download link returned).
  • Pay: Check and settle store checkout sessions (supports WooCommerce, OpenCart, PrestaShop, and hosted checkout).
  • Social Commerce: Check and purchase products circulating on X as Blink links (supports share links, Actions URLs, or raw ids).

Usage

Add the server to your MCP host configuration, for example Claude Desktop's claude_desktop_config.json. The wallet uses a standard Solana JSON keypair (generated via solana-keygen new -o agent-keypair.json ), requires a small amount of SOL for transaction fees, and stablecoins (USDC/USDT) for planned spending.

The wallet is optional at startup: the server can connect and list tools without a configured wallet, and read-only tools (price previews, dataset searches, checkout quotes) can be used directly. Only tools that involve spending require a keypair, and those tools state this in the tool result rather than failing at startup.

Running the command requires -i: stdin and stdout carry the MCP protocol.

Authorization Model

The agent never holds the user's main wallet: it runs on a dedicated keypair funded only with the amount allowed for spending (the external boundary). Before any funds move, the server enforces two hard limits on every tool:

  • SOLINKIFY_MAX_PAYMENT_USD—per-payment limit (default 1)
  • SOLINKIFY_DAILY_CAP_USD—total limit per UTC day (default 10, persisted in ~/.solinkify/mcp-spend.json, fail-closed)

For the Gate paywall, there is also an on-chain scoped budget: the prepaid balance is deposited once into a program-owned account and deducted per request at the on-chain price;withdraw_prepaid can retrieve the remaining funds at any time—that is, the kill switch.

Owner Mode (on-chain SpendAuthority)

After setting SOLINKIFY_OWNER_WALLET to the base58 address of the funds owner,pay_checkout no longer spends from the agent keypair: it settles through pay_spl_delegated , deducting from the owner's token account according to the SpendAuthority created by the owner on-chain—the per-payment limit, daily limit, and revocation kill switch are all enforced by the Solana program, not by this server. The agent wallet only signs and pays the transaction fee; it never holds the owner's funds or keys. You can use spend_authority_status to view the authorized allowance.

The owner grants (and can instantly revoke) an allowance keyed by the agent public key through the contract's create_spend_authority / update_spend_authority / revoke_spend_authority instruction. One SpendAuthority corresponds to one stablecoin mint. The local SOLINKIFY_MAX_PAYMENT_USD / SOLINKIFY_DAILY_CAP_USD limit still applies on top (defense in depth). Other paid tools (gate, DataHub, Blinks) still spend from the agent wallet.

Rejections are returned as readable messages, which the agent can relay to the user. The server also self-identifies as an AI agent via User-Agent (available SOLINKIFY_USER_AGENT coverage), causing sites protected by Gate to return a clean 402 instead of being scraped.

Use Cases

Suitable for scenarios where AI agents need to automatically pay for x402 paywalled content on Solana, purchase datasets, settle store checkouts, and buy products from Blink links on X, and is especially suitable for users who want to control an agent's payment permissions through hard spending caps and on-chain authorization mechanisms.

Limitations

The materials do not provide more information about fees or pricing. A wallet is optional at startup, but tools involving spending require a keypair. The authorization model involves local environment variables and on-chain programs, and configuration has a certain degree of complexity.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools