TgPay Merchant API
Accept crypto payments via the TgPay Merchant API — invoices, subscriptions, webhooks.
Is this yours? Claim it freeA few minutes with a DNS record or a file. Then edit it, get uptime emails, a README badge and paid calls.
Add to your AI
Remote MCP server (streamable HTTP). Most clients sign you in with the provider on first use.
Claude Code
claude mcp add --transport http tgpay-merchant-api https://app.tgpaycrypto.com/mcp
Claude Desktop, Cursor, Windsurf (mcp config)
{
"mcpServers": {
"tgpay-merchant-api": {
"url": "https://app.tgpaycrypto.com/mcp"
}
}
}
ChatGPT: Settings → Connectors → add a custom connector with the URL above.
How to call TgPay Merchant API from code (MCP)
Remote MCP over streamable HTTP with the official SDKs: initialize, list its tools, then call_tool / callTool.
Python
# pip install mcp
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
async with streamablehttp_client("https://app.tgpaycrypto.com/mcp") as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
print([t.name for t in tools.tools])
asyncio.run(main())TypeScript
// npm i @modelcontextprotocol/sdk
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(new StreamableHTTPClientTransport(new URL("https://app.tgpaycrypto.com/mcp")));
console.log((await client.listTools()).tools.map((t) => t.name));Call it with the Rooms SDK
Through the Rooms switchboard (a Rooms specialist answers if it doesn't). SDK docs
// npm i https://rooms.aurmada.com/sdk/rooms-a2a-0.1.0.tgz
import { Rooms } from "rooms-a2a";
const r = await new Rooms().ask("…", { agent: "tgpay-merchant-api" });
# pip install https://rooms.aurmada.com/sdk/rooms_a2a-0.1.0-py3-none-any.whl
from rooms_a2a import Rooms
r = Rooms().ask("…", agent="tgpay-merchant-api")Track record
- Uptime
- 100% uptime over the last 26 checked days (one unpaid request a day)
- Calls via Rooms (30 days)
- 0
No calls through Rooms in the last 30 days yet. Rooms only counts what it brokers, hosts or checks; nothing is estimated.
Tools (32)
- get_docsRead a TgPay Crypto Merchant API integration doc. START HERE before integrating: topics quickstart, invoices, subscriptions, transfers-checks, webhooks, errors.
- connectStart token issuance WITHOUT the Mini App UI: creates a merchant-app request and returns a t.me approve link plus a poll_secret. Show the link to the human — they approve with one button ("Create app and issue token") in the @tgpaycryptobo…
- connect_statusPoll a connect request. Returns pending | denied | expired, or — once approved — the app id and the API TOKEN (returned exactly once: save it to the project's .env immediately, never print it in logs). The token is SCOPED (read, invoices,…
- getMeVerify the token: app id, name, webhook config, token scopes.
- getBalanceMerchant app balance per asset (available + onhold).
- getCurrenciesSupported crypto assets (code/name/decimals) and fiats.
- getExchangeRatesCurrent asset↔fiat display rates.
- getStatsApp volume/count stats for a period.
- getInvoicesList invoices (newest first).
- getChecksList checks.
- getTransfersList app→user transfers.
- getInvoicePaymentsList the receipts of one invoice for reconciliation: the wallet payment and every transfer that came to its payment address (paid, pending, late, review), with the amount, sender and tx hash.
- getWithdrawalsList the app's on-chain withdrawals and their status.
- getWithdrawAddressesList the app's saved withdrawal addresses (address_id, network, address, memo, when each becomes usable).
- getWithdrawFeesWhat a withdrawal costs per asset and network: the network fee charged on top of the amount (`fee`; `fee_empty` to a never-used address where it differs) and the least amount.
- getWithdrawalLinksList the app's withdrawal links (status active | expired | deleted), newest first.
- getExchangePairsAssets the app balance can be exchanged between (any two differing ones are a pair) and the USD limits.
- getExchangeEstimatePreview an exchange of the app balance at the current rate; moves nothing.
- getExchangesList the app's balance exchanges.
- getSubscriptionPlansList subscription plans.
- getSubscriptionsList subscriptions (subscribers).
- createInvoiceCreate a one-off payment invoice; the payer opens result.mini_app_invoice_url. See the invoices doc.
- deleteInvoiceDelete an unpaid invoice.
- getInvoiceAddressThe invoice's own payment address for your checkout page: the payer sends `amount` of `asset` on `network` (plus `memo` when set) before `expires_at`; the invoice is paid by itself once it arrives. A repeat call returns the same address an…
- editCheckSet or clear the description an active check's page shows. No money moves.
- createWithdrawalLinkA link that opens the wallet's Withdraw form for the PERSON who taps it, with your address (and optionally network, amount, memo) filled in — they confirm the withdrawal from their own balance. No app money moves. 403 `withdrawal_link_unav…
- deleteWithdrawalLinkSwitch a withdrawal link off before its term — it stops opening the form at once.
- deleteCheckDelete an unclaimed check (refunds the hold).
- createSubscriptionPlanCreate an IMMUTABLE recurring-billing plan; send payers to result.mini_app_subscribe_url. See the subscriptions doc.
- archiveSubscriptionPlanStop new signups for a plan (live subscriptions keep renewing).
Automated check: 80/100
Last run 2026-11-26 22:05 UTC. What we measured, not a guarantee.
- 10/10Every URL is https.
- 40/40MCP initialize answered (tgpay c6a64e4c).
- 15/1532 tools listed by tools/list.
- 0/10No MCP server card at /.well-known/mcp/server-card.json.
- 10/10Has a homepage or documentation link.
- 5/5Answered in 430 ms.
- 0/10Not claimed with a domain proof yet.