MCP Server Studio
Payment infrastructure for AI agents: wallet, passport, owner-enabled Polygon and Base payments.
Registry name: io.github.daochild/aifinpay
Add to claude_desktop_config.json:
{
"mcpServers": {
"aifinpay": {
"command": "npx",
"args": [
"-y",
"@aifinpay/[email protected]"
],
"env": {
"SEED_HASH": "<SEED_HASH>",
"AIFINPAY_AGENT_SECRET": "<AIFINPAY_AGENT_SECRET>",
"AIFINPAY_WALLET_PASSPHRASE": "<AIFINPAY_WALLET_PASSPHRASE>",
"AIFINPAY_PAYMENTS_ENABLED": "<AIFINPAY_PAYMENTS_ENABLED>",
"AIFINPAY_MAX_USD": "<AIFINPAY_MAX_USD>",
"AIFINPAY_DAILY_USD": "<AIFINPAY_DAILY_USD>",
"AIFINPAY_GATEWAY_ORIGINS": "<AIFINPAY_GATEWAY_ORIGINS>",
"AIFINPAY_PAY_CHAIN": "<AIFINPAY_PAY_CHAIN>",
"AIFINPAY_MAX_GAS": "<AIFINPAY_MAX_GAS>",
"AIFINPAY_RPC_URL": "<AIFINPAY_RPC_URL>",
"AIFINPAY_MAX_GAS_POL": "<AIFINPAY_MAX_GAS_POL>",
"AIFINPAY_BASE_URL": "<AIFINPAY_BASE_URL>"
}
}
}
}Run in your terminal:
claude mcp add aifinpay -e SEED_HASH='<SEED_HASH>' -e AIFINPAY_AGENT_SECRET='<AIFINPAY_AGENT_SECRET>' -e AIFINPAY_WALLET_PASSPHRASE='<AIFINPAY_WALLET_PASSPHRASE>' -e AIFINPAY_PAYMENTS_ENABLED='<AIFINPAY_PAYMENTS_ENABLED>' -e AIFINPAY_MAX_USD='<AIFINPAY_MAX_USD>' -e AIFINPAY_DAILY_USD='<AIFINPAY_DAILY_USD>' -e AIFINPAY_GATEWAY_ORIGINS='<AIFINPAY_GATEWAY_ORIGINS>' -e AIFINPAY_PAY_CHAIN='<AIFINPAY_PAY_CHAIN>' -e AIFINPAY_MAX_GAS='<AIFINPAY_MAX_GAS>' -e AIFINPAY_RPC_URL='<AIFINPAY_RPC_URL>' -e AIFINPAY_MAX_GAS_POL='<AIFINPAY_MAX_GAS_POL>' -e AIFINPAY_BASE_URL='<AIFINPAY_BASE_URL>' -- npx -y @aifinpay/[email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"aifinpay": {
"command": "npx",
"args": [
"-y",
"@aifinpay/[email protected]"
],
"env": {
"SEED_HASH": "<SEED_HASH>",
"AIFINPAY_AGENT_SECRET": "<AIFINPAY_AGENT_SECRET>",
"AIFINPAY_WALLET_PASSPHRASE": "<AIFINPAY_WALLET_PASSPHRASE>",
"AIFINPAY_PAYMENTS_ENABLED": "<AIFINPAY_PAYMENTS_ENABLED>",
"AIFINPAY_MAX_USD": "<AIFINPAY_MAX_USD>",
"AIFINPAY_DAILY_USD": "<AIFINPAY_DAILY_USD>",
"AIFINPAY_GATEWAY_ORIGINS": "<AIFINPAY_GATEWAY_ORIGINS>",
"AIFINPAY_PAY_CHAIN": "<AIFINPAY_PAY_CHAIN>",
"AIFINPAY_MAX_GAS": "<AIFINPAY_MAX_GAS>",
"AIFINPAY_RPC_URL": "<AIFINPAY_RPC_URL>",
"AIFINPAY_MAX_GAS_POL": "<AIFINPAY_MAX_GAS_POL>",
"AIFINPAY_BASE_URL": "<AIFINPAY_BASE_URL>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"aifinpay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@aifinpay/[email protected]"
],
"env": {
"SEED_HASH": "<SEED_HASH>",
"AIFINPAY_AGENT_SECRET": "<AIFINPAY_AGENT_SECRET>",
"AIFINPAY_WALLET_PASSPHRASE": "<AIFINPAY_WALLET_PASSPHRASE>",
"AIFINPAY_PAYMENTS_ENABLED": "<AIFINPAY_PAYMENTS_ENABLED>",
"AIFINPAY_MAX_USD": "<AIFINPAY_MAX_USD>",
"AIFINPAY_DAILY_USD": "<AIFINPAY_DAILY_USD>",
"AIFINPAY_GATEWAY_ORIGINS": "<AIFINPAY_GATEWAY_ORIGINS>",
"AIFINPAY_PAY_CHAIN": "<AIFINPAY_PAY_CHAIN>",
"AIFINPAY_MAX_GAS": "<AIFINPAY_MAX_GAS>",
"AIFINPAY_RPC_URL": "<AIFINPAY_RPC_URL>",
"AIFINPAY_MAX_GAS_POL": "<AIFINPAY_MAX_GAS_POL>",
"AIFINPAY_BASE_URL": "<AIFINPAY_BASE_URL>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"aifinpay": {
"command": "npx",
"args": [
"-y",
"@aifinpay/[email protected]"
],
"env": {
"SEED_HASH": "<SEED_HASH>",
"AIFINPAY_AGENT_SECRET": "<AIFINPAY_AGENT_SECRET>",
"AIFINPAY_WALLET_PASSPHRASE": "<AIFINPAY_WALLET_PASSPHRASE>",
"AIFINPAY_PAYMENTS_ENABLED": "<AIFINPAY_PAYMENTS_ENABLED>",
"AIFINPAY_MAX_USD": "<AIFINPAY_MAX_USD>",
"AIFINPAY_DAILY_USD": "<AIFINPAY_DAILY_USD>",
"AIFINPAY_GATEWAY_ORIGINS": "<AIFINPAY_GATEWAY_ORIGINS>",
"AIFINPAY_PAY_CHAIN": "<AIFINPAY_PAY_CHAIN>",
"AIFINPAY_MAX_GAS": "<AIFINPAY_MAX_GAS>",
"AIFINPAY_RPC_URL": "<AIFINPAY_RPC_URL>",
"AIFINPAY_MAX_GAS_POL": "<AIFINPAY_MAX_GAS_POL>",
"AIFINPAY_BASE_URL": "<AIFINPAY_BASE_URL>"
}
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"aifinpay": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.aifinpay.io/mcp"
]
}
}
}Run in your terminal:
claude mcp add --transport http aifinpay https://mcp.aifinpay.io/mcpAdd to .cursor/mcp.json:
{
"mcpServers": {
"aifinpay": {
"url": "https://mcp.aifinpay.io/mcp"
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"aifinpay": {
"type": "http",
"url": "https://mcp.aifinpay.io/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"aifinpay": {
"serverUrl": "https://mcp.aifinpay.io/mcp"
}
}
}| Name | Required | What it is |
|---|---|---|
SEED_HASH | No | 32-byte hex seed (64 hex characters), the highest-priority wallet source. Solana, EVM and Casper addresses derive from it. |
AIFINPAY_AGENT_SECRET | No | Legacy base58 Ed25519 secret for a persistent agent identity; Solana, EVM and Casper addresses derive from it. Without any wallet source the server uses an unfunded ephemeral identity. |
AIFINPAY_WALLET_PASSPHRASE | No | Passphrase for an encrypted ~/.aifinpay/agent.json keystore created by `npx @aifinpay/mcp init`. |
AIFINPAY_PAYMENTS_ENABLED | No | Payments (payable_fetch, AIFP-1 v1.4 on the owner's pay chain) are on unless this is 0. Only a persistent wallet signs, within the built-in ceiling of $5 per payment and $20 per 24 hours; an… |
AIFINPAY_MAX_USD | No | Lowers the built-in $5 per-payment ceiling of payable_fetch (default 5; a higher value is refused). The working limits are the dashboard Controls. A tool argument can lower it for one call, never… |
AIFINPAY_DAILY_USD | No | Lowers the built-in $20 rolling 24-hour ceiling (default 20; a higher value is refused). |
AIFINPAY_GATEWAY_ORIGINS | No | Optional allowlist: comma-separated exact HTTPS origins the agent may pay. Unset, any https site; who is paid is decided by the AiFinPay-signed quote, never by the 402. |
AIFINPAY_PAY_CHAIN | No | Payment chain, polygon by default. Other supported networks only by explicit owner selection; a quote for any other chain is refused. |
AIFINPAY_MAX_GAS | No | Gas cap per payment in the pay chain's native currency. Required with payments unless AIFINPAY_MAX_GAS_POL is set on Polygon. |
AIFINPAY_RPC_URL | No | Optional HTTPS RPC for the payment chain. |
AIFINPAY_MAX_GAS_POL | No | Gas cap per payment in POL, e.g. 0.3. Polygon only; on other chains use AIFINPAY_MAX_GAS. |
AIFINPAY_BASE_URL | No | Override the AiFinPay backend. Unset, read-only tools use https://aifinpay.io and payable_fetch quotes and receipts use https://api.aifinpay.io. |