Guidesshiba-bank.com · For developers
Contents · 5What the server does · How to connect · How the agent buys Stars · Limits and security · Where the machine descriptions are

Updated November 20, 2026 · 4 min read

For developers

An MCP server for AI agents to buy Telegram Stars

The Shiba Bank MCP server is the address https://shiba-bank.com/api/mcp, through which an AI agent buys Telegram Stars and Telegram Premium for any public @username. The agent pays with USDT or GRAM on TON from its own wallet, or with Stars from its wallet in the bot. The margin through the API is lower than in the bot: 3 % over what the Stars cost at Fragment.

An MCP server for AI agents to buy Telegram Stars

What the server does

The server has seven tools, the same actions as the HTTP API:

ToolWhat it does
get_pricesThe price of Stars or Premium now, in USDT, GRAM and wallet Stars
check_recipientWhether an account can receive Stars or Premium: not a channel, no paid-message fee above the amount, no Premium already
create_orderAn order: an invoice in USDT or GRAM, or payment with wallet Stars
get_orderAn order's status; with wait_seconds it waits up to 25 seconds for a change
list_ordersThe key's orders, newest first
send_starsStars from your wallet in the bot to another person's wallet in the bot
get_accountThe balance, the key's limits and whether orders are on

How to connect

  1. Open the bot @shiba_bank_app and send /api.
  2. Create a key. The bot shows it once: save it right away.
  3. Turn orders on on the same screen: a new key has them off.
  4. Add the server to your agent: the address https://shiba-bank.com/api/mcp, the header Authorization: Bearer <key>.

For Claude Code it is one command:

claude mcp add --transport http shiba-bank https://shiba-bank.com/api/mcp --header "Authorization: Bearer $SHIBA_API_KEY"

In Cursor and VS Code the server goes into the MCP settings file: type HTTP, the same address and the same header. Any MCP client that speaks Streamable HTTP and sends the Authorization header will do.

Important

The key can spend your money within its limits. Do not put it in a web page's code or in a repository: keep it in an environment variable.

How the agent buys Stars

  1. get_prices — the price of the amount it needs.
  2. check_recipient — check the recipient before paying.
  3. create_order with pay: "usdt" or pay: "gram" — an invoice: the project's address, the exact amount and a comment, and for GRAM a ready TON Connect transaction too.
  4. Pay the invoice with exactly that amount and that comment.
  5. get_order with wait_seconds — wait until the status is delivered.

With pay: "wallet" steps 3–5 are shorter: the Stars leave the wallet in the bot and reach the recipient at once, with no transfer on chain.

Tip

Pass an idempotency_key with every create_order and send_stars, and repeat the same key when you retry. A dropped connection then never becomes a second order.

Limits and security

  • Orders are off until the key's owner turns them on in /api.
  • Invoice limits: by default $50 for one invoice and $200 a day; they can be raised to $1,000 and $5,000.
  • Wallet Stars: by default up to 500 Stars a transfer and 2,000 a day, one limit for transfers and for orders paid with Stars.
  • Addresses: a key can be limited to a list of IP addresses or subnets.
  • Recipient checks go through Fragment, so they are rationed: about one every 5 seconds.
  • Without a key only initialize, tools/list and ping answer. A page on another site cannot call the server from a browser: a request with a foreign Origin header is refused.

Where the machine descriptions are

  • The server card: https://shiba-bank.com/.well-known/mcp/server-card.json — the address, the transport, the authorization and every tool with its schema.
  • The API in OpenAPI: https://shiba-bank.com/api/v1/openapi.json.
  • Prices as JSON without a key: https://shiba-bank.com/api/v1/public/prices.
  • Documentation: the Stars API and every request described.

Does the agent need a Telegram account?

No. A person creates the key in the bot, and the agent works with the key alone. Stars and Premium reach the @username the agent names in the order.

How much do Stars cost through the MCP server?

The same as through the HTTP API: 3 % over the Fragment price of the Stars. get_prices returns the exact price in USDT, GRAM and wallet Stars, and max_price in the order refuses anything above your ceiling.

What if the connection drops after an order?

Repeat create_order with the same idempotency_key. The server returns the order it already created instead of making a second one.

Can the agent buy Premium through MCP?

Yes: create_order with product: "premium" and 3, 6 or 12 months. Premium is given to the @username in the order. check_recipient tells in advance if the account already has Premium.

QR code of the link to Telegram

Open in Telegram

Point your phone's camera at the code

Open in Telegram Desktop

The Shiba Bank window opens in Telegram.A chat with the bot @shiba_bank_app opens.Telegram will ask you to pick a group and give the bot admin rights.