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.

What the server does
The server has seven tools, the same actions as the HTTP API:
| Tool | What it does |
|---|---|
get_prices | The price of Stars or Premium now, in USDT, GRAM and wallet Stars |
check_recipient | Whether an account can receive Stars or Premium: not a channel, no paid-message fee above the amount, no Premium already |
create_order | An order: an invoice in USDT or GRAM, or payment with wallet Stars |
get_order | An order's status; with wait_seconds it waits up to 25 seconds for a change |
list_orders | The key's orders, newest first |
send_stars | Stars from your wallet in the bot to another person's wallet in the bot |
get_account | The balance, the key's limits and whether orders are on |
How to connect
- Open the bot @shiba_bank_app and send
/api. - Create a key. The bot shows it once: save it right away.
- Turn orders on on the same screen: a new key has them off.
- Add the server to your agent: the address
https://shiba-bank.com/api/mcp, the headerAuthorization: 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.
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
get_prices— the price of the amount it needs.check_recipient— check the recipient before paying.create_orderwithpay: "usdt"orpay: "gram"— an invoice: the project's address, the exact amount and a comment, and for GRAM a ready TON Connect transaction too.- Pay the invoice with exactly that amount and that comment.
get_orderwithwait_seconds— wait until the status isdelivered.
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.
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/listandpinganswer. A page on another site cannot call the server from a browser: a request with a foreignOriginheader 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.
Was this guide helpful?
