TgPay Merchant API MCP
This MCP server enables AI agents to integrate with the TgPay Merchant API, allowing for the creation of merchant apps, generation of crypto invoices, management of subscriptions, and handling of payouts and webhooks directly through Telegram.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://app.tgpaycrypto.com/mcpWhat its tools do
32 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (19)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Official MCP Registry namespace is tied to tgpaybot.com ·
- Passed Endpoint and vendor documentation share a domain
- Warning Advertises resources/templates/list but does not implement it
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
What you can do with it
- Create merchant apps and generate API tokens
- Issue crypto invoices to Telegram users
- Set up recurring subscription billing plans
- Configure webhooks for payment events
Source and maintenance
Protocol and capabilities
- Server
- tgpay 8e35d981
- MCP protocol negotiated in check
- 2025-06-18
- Tools
- 32 advertised
- Resources
- 6 advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {},
"resources": {}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
32 advertised
get_docs
Read a TgPay Crypto Merchant API integration doc. START HERE before integrating: topics quickstart, invoices, subscriptions, transfers-checks, webhooks, errors.
{
"type": "object",
"required": [
"topic"
],
"properties": {
"topic": {
"type": "string",
"description": "quickstart | invoices | subscriptions | transfers-checks | webhooks | errors"
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}connect
Start 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 @tgpaycryptobot bot — then call connect_status with the poll_secret. Use only when no API token is configured yet.
{
"type": "object",
"required": [
"app_name"
],
"properties": {
"app_name": {
"type": "string",
"description": "Merchant app name shown to the approving human, 1-64 chars (e.g. the project/bot name)."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}connect_status
Poll 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, subscriptions, webhooks) — it cannot move money out of the app; transfers/refunds/checks need the primary token the human holds in the Mini App. Poll every 3-5 seconds while pending.
{
"type": "object",
"required": [
"poll_secret"
],
"properties": {
"poll_secret": {
"type": "string",
"description": "The poll_secret from the connect tool."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}getMe
Verify the token: app id, name, webhook config, token scopes.
{
"type": "object",
"properties": {}
}{
"readOnlyHint": true,
"destructiveHint": false
}getBalance
Merchant app balance per asset (available + onhold).
{
"type": "object",
"properties": {}
}{
"readOnlyHint": true,
"destructiveHint": false
}getCurrencies
Supported crypto assets (code/name/decimals) and fiats.
{
"type": "object",
"properties": {}
}{
"readOnlyHint": true,
"destructiveHint": false
}getExchangeRates
Current asset↔fiat display rates.
{
"type": "object",
"properties": {}
}{
"readOnlyHint": true,
"destructiveHint": false
}getStats
App volume/count stats for a period.
{
"type": "object",
"properties": {
"end_at": {
"type": "string",
"description": "ISO 8601 period end."
},
"start_at": {
"type": "string",
"description": "ISO 8601 period start."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getInvoices
List invoices (newest first).
{
"type": "object",
"properties": {
"fiat": {
"type": "string",
"description": "Filter by fiat code."
},
"asset": {
"type": "string",
"description": "Filter by asset code."
},
"count": {
"type": "integer",
"description": "Page size (default 100)."
},
"offset": {
"type": "integer",
"description": "Skip this many."
},
"status": {
"type": "string",
"description": "active | paid | expired."
},
"invoice_ids": {
"type": "string",
"description": "Comma-separated ids."
},
"client_invoice_id": {
"type": "string",
"description": "Your own id given at createInvoice."
},
"parent_invoice_id": {
"type": "integer",
"description": "The payments of this multi-payment invoice."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getChecks
List checks.
{
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "Filter by asset code."
},
"count": {
"type": "integer",
"description": "Page size (default 100)."
},
"offset": {
"type": "integer",
"description": "Skip this many."
},
"status": {
"type": "string",
"description": "active | activated | expired."
},
"check_ids": {
"type": "string",
"description": "Comma-separated ids."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getTransfers
List app→user transfers.
{
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "Filter by asset code."
},
"count": {
"type": "integer",
"description": "Page size (default 100)."
},
"offset": {
"type": "integer",
"description": "Skip this many."
},
"status": {
"type": "string",
"description": "pending (parked until the recipient opens the bot) | completed | returned."
},
"spend_id": {
"type": "string",
"description": "Filter by idempotency key."
},
"transfer_ids": {
"type": "string",
"description": "Comma-separated ids."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getInvoicePayments
List 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.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"invoice_id": {
"type": "integer",
"description": "The invoice id."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getWithdrawals
List the app's on-chain withdrawals and their status.
{
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "Filter by asset code."
},
"count": {
"type": "integer",
"description": "Page size (default 100)."
},
"offset": {
"type": "integer",
"description": "Skip this many."
},
"status": {
"type": "string",
"description": "processing | completed | failed."
},
"spend_id": {
"type": "string",
"description": "Filter by idempotency key."
},
"withdrawal_ids": {
"type": "string",
"description": "Comma-separated withdrawal ids (uuid)."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getWithdrawAddresses
List the app's saved withdrawal addresses (address_id, network, address, memo, when each becomes usable).
{
"type": "object",
"properties": {}
}{
"readOnlyHint": true,
"destructiveHint": false
}getWithdrawFees
What 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.
{
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "Only this asset."
},
"network": {
"type": "string",
"description": "Only this network code."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getWithdrawalLinks
List the app's withdrawal links (status active | expired | deleted), newest first.
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Page size (default 100)."
},
"offset": {
"type": "integer",
"description": "Skip this many."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getExchangePairs
Assets the app balance can be exchanged between (any two differing ones are a pair) and the USD limits.
{
"type": "object",
"properties": {}
}{
"readOnlyHint": true,
"destructiveHint": false
}getExchangeEstimate
Preview an exchange of the app balance at the current rate; moves nothing.
{
"type": "object",
"required": [
"asset_from",
"asset_to"
],
"properties": {
"amount": {
"type": "string",
"description": "Amount of asset_from to spend (or pass amount_to)."
},
"asset_to": {
"type": "string",
"description": "Asset to buy."
},
"amount_to": {
"type": "string",
"description": "Exact amount of asset_to to receive (instead of amount); amount_from in the answer is what it costs."
},
"asset_from": {
"type": "string",
"description": "Asset to sell."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getExchanges
List the app's balance exchanges.
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Page size (default 100)."
},
"offset": {
"type": "integer",
"description": "Skip this many."
},
"spend_id": {
"type": "string",
"description": "Filter by idempotency key."
},
"exchange_ids": {
"type": "string",
"description": "Comma-separated exchange ids (uuid)."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}getSubscriptionPlans
List subscription plans.
{
"type": "object",
"properties": {}
}{
"readOnlyHint": true,
"destructiveHint": false
}getSubscriptions
List subscriptions (subscribers).
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Page size (default 100, max 500)."
},
"offset": {
"type": "integer",
"description": "Skip this many."
},
"status": {
"type": "string",
"description": "active | grace | cancelled | expired."
},
"plan_id": {
"type": "integer",
"description": "Filter by plan."
},
"user_id": {
"type": "integer",
"description": "Filter by Telegram user id."
}
}
}{
"readOnlyHint": true,
"destructiveHint": false
}createInvoice
Create a one-off payment invoice; the payer opens result.mini_app_invoice_url. See the invoices doc.
{
"type": "object",
"properties": {
"fiat": {
"type": "string",
"description": "Fiat code (fiat mode)."
},
"asset": {
"type": "string",
"description": "Asset code (crypto mode)."
},
"amount": {
"type": "string",
"description": "Decimal string in MAJOR units, e.g. \"5\" = 5 USDT. Never a float. Required unless open_amount is true."
},
"payload": {
"type": "string",
"description": "Opaque data echoed back in the webhook (≤4096)."
},
"swap_to": {
"type": "string",
"description": "Auto-convert the received amount to this asset."
},
"customer": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The buyer's id in your system."
},
"email": {
"type": "string",
"description": "The buyer's email."
},
"telegram_id": {
"type": "string",
"description": "The buyer's Telegram id."
},
"telegram_username": {
"type": "string",
"description": "Without @."
}
}
},
"cancel_url": {
"type": "string",
"description": "A «Return» link shown while the invoice is unpaid."
},
"expires_in": {
"type": "integer",
"description": "Invoice TTL in seconds."
},
"description": {
"type": "string",
"description": "Shown to the payer (≤1024)."
},
"open_amount": {
"type": "boolean",
"description": "Crypto mode only: the payer chooses the amount (donation) — pass true and NO amount."
},
"success_url": {
"type": "string",
"description": "Short form of the paid button: a «Return» button to this link after the payment (not together with paid_btn_*)."
},
"webhook_url": {
"type": "string",
"description": "This operation's own https webhook address — its updates go there instead of the app's `webhook_url`."
},
"max_payments": {
"type": "integer",
"description": "Multi-payment invoice (2..1000000): the link takes this many payments, each one its own invoice with `parent_invoice_id`; wallet payments only."
},
"paid_btn_url": {
"type": "string",
"description": "URL for the paid button."
},
"currency_type": {
"type": "string",
"description": "crypto (default) | fiat."
},
"paid_btn_name": {
"type": "string",
"description": "viewItem | openChannel | openBot | callback."
},
"allow_comments": {
"type": "boolean",
"description": "Default true."
},
"hidden_message": {
"type": "string",
"description": "Revealed to the payer ONLY after payment (≤2048)."
},
"accepted_assets": {
"type": "string",
"description": "Fiat mode: comma-separated assets the payer may pay in."
},
"allow_anonymous": {
"type": "boolean",
"description": "Default true."
},
"client_invoice_id": {
"type": "string",
"description": "Your own id of the invoice (≤64, unique per app): a create that repeats it returns the existing invoice; `getInvoices {client_invoice_id}` finds it."
},
"rate_lock_seconds": {
"type": "integer",
"description": "Fiat mode: freeze crypto quotes for this long."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}deleteInvoice
Delete an unpaid invoice.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"invoice_id": {
"type": "integer",
"description": "The invoice to delete."
}
}
}{
"readOnlyHint": false,
"destructiveHint": true
}getInvoiceAddress
The 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 and never extends the window. Show the amount, the network and the deadline from the answer UNCHANGED. Money comes IN only. 409 `checkout_disabled` while the app's address payment method is off.
{
"type": "object",
"required": [
"invoice_id",
"asset",
"network"
],
"properties": {
"asset": {
"type": "string",
"description": "Asset the payer sends, e.g. USDT."
},
"network": {
"type": "string",
"description": "Network code, e.g. TRON."
},
"invoice_id": {
"type": "integer",
"description": "The unpaid invoice."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}editCheck
Set or clear the description an active check's page shows. No money moves.
{
"type": "object",
"required": [
"check_id"
],
"properties": {
"check_id": {
"type": "integer",
"description": "The check to edit."
},
"description": {
"type": "string",
"description": "The new text (≤1024); empty clears it."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}createWithdrawalLink
A 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_unavailable` while the feature is off.
{
"type": "object",
"required": [
"asset",
"address"
],
"properties": {
"memo": {
"type": "string",
"description": "Memo / tag, on networks that have one."
},
"asset": {
"type": "string",
"description": "Asset code."
},
"amount": {
"type": "string",
"description": "Decimal string in MAJOR units, e.g. \"5\" = 5 USDT. Never a float. Optional."
},
"address": {
"type": "string",
"description": "The address to receive at."
},
"network": {
"type": "string",
"description": "Network code; needed only when the address fits several."
},
"expires_in": {
"type": "integer",
"description": "Seconds the link works (60..2592000, default 86400)."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}deleteWithdrawalLink
Switch a withdrawal link off before its term — it stops opening the form at once.
{
"type": "object",
"required": [
"link_id"
],
"properties": {
"link_id": {
"type": "string",
"description": "The link to switch off."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}deleteCheck
Delete an unclaimed check (refunds the hold).
{
"type": "object",
"required": [
"check_id"
],
"properties": {
"check_id": {
"type": "integer",
"description": "The check to delete."
}
}
}{
"readOnlyHint": false,
"destructiveHint": true
}createSubscriptionPlan
Create an IMMUTABLE recurring-billing plan; send payers to result.mini_app_subscribe_url. See the subscriptions doc.
{
"type": "object",
"required": [
"name",
"asset",
"amount",
"period_days"
],
"properties": {
"name": {
"type": "string",
"description": "Plan name shown to payers (≤64)."
},
"asset": {
"type": "string",
"description": "Asset code, e.g. USDT."
},
"amount": {
"type": "string",
"description": "Decimal string in MAJOR units, e.g. \"5\" = 5 USDT. Never a float. Charged per period."
},
"period_days": {
"type": "integer",
"description": "Billing period in days."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}archiveSubscriptionPlan
Stop new signups for a plan (live subscriptions keep renewing).
{
"type": "object",
"required": [
"plan_id"
],
"properties": {
"plan_id": {
"type": "integer",
"description": "The plan to archive."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}cancelSubscription
Stop future charges for one subscription (paid time runs out).
{
"type": "object",
"required": [
"subscription_id"
],
"properties": {
"subscription_id": {
"type": "integer",
"description": "The subscription."
}
}
}{
"readOnlyHint": false,
"destructiveHint": true
}updateApp
Update app name / webhook_url (https) / webhook_events opt-in list. Needs the 'webhooks' scope (the connect-issued token has it) or the primary token. See the webhooks doc for the event types and signature verification.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "New app name (1-64)."
},
"webhook_url": {
"type": "string",
"description": "https URL for webhook delivery; \"\" clears it."
},
"webhook_events": {
"type": "array",
"items": {
"type": "string",
"description": "Event type."
},
"description": "Extended event types to opt into (invoice_paid is always delivered); [] = invoice_paid-only."
}
}
}{
"readOnlyHint": false,
"destructiveHint": false
}Prompts
Not advertised
Resources
6 advertised
quickstart — Merchant API quickstart
tgpay://docs/quickstartinvoices — Invoices
tgpay://docs/invoicessubscriptions — Merchant subscriptions
tgpay://docs/subscriptionstransfers-checks — Transfers and checks
tgpay://docs/transfers-checkswebhooks — Webhooks and signature verification
tgpay://docs/webhookserrors — Errors, limits, idempotency
tgpay://docs/errors90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 3283 ms
- 95th percentile latency
- 4306 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 4420 ms · metadata changed · 32 tool(s), 6 resource(s); warnings: Advertises resources/templates/list but does not implement it
- · probe · passed · 2146 ms · metadata changed · 32 tool(s), 6 resource(s); warnings: Advertises resources/templates/list but does not implement it
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http tgpay-merchant-api-mcp https://app.tgpaycrypto.com/mcpCodex
codex mcp add tgpay-merchant-api-mcp --url https://app.tgpaycrypto.com/mcpCursor
{
"mcpServers": {
"tgpay-merchant-api-mcp": {
"url": "https://app.tgpaycrypto.com/mcp"
}
}
}Cline
{
"mcpServers": {
"tgpay-merchant-api-mcp": {
"type": "streamableHttp",
"url": "https://app.tgpaycrypto.com/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"tgpay-merchant-api-mcp": {
"type": "http",
"url": "https://app.tgpaycrypto.com/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http tgpay-merchant-api-mcp https://app.tgpaycrypto.com/mcpClaude Desktop
https://app.tgpaycrypto.com/mcpWindsurf
{
"mcpServers": {
"tgpay-merchant-api-mcp": {
"serverUrl": "https://app.tgpaycrypto.com/mcp"
}
}
}Let your agent find its tools
Find servers like TgPay Merchant API MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other payments servers
Do you run TgPay Merchant API MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.