Bitrefill MCP Server

MCP server for the Bitrefill API v2 (Bearer API key) — products, invoices, orders, and eSIMs

Remote serverstreamable-http

What is the Bitrefill MCP server?

Bitrefill MCP server exists for a simple reason — assistants are far more useful when they can act on Bitrefill directly instead of describing what you should do. MCP server for the Bitrefill API v2 (Bearer API key) — products, invoices, orders, and eSIMs.

What you get

This server wraps the Bitrefill API v2 (https://api.bitrefill.com/v2) using Authorization: Bearer ${BITREFILL_API_KEY}. Only request parameters are validated with Zod; API responses are returned as JSON text unchanged.

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

What the assistant can call

Once Bitrefill is connected, these are the calls the assistant has available:

  • search-products — GET /products/search (with q) or GET /products (browse)
  • product-details — GET /products/{id}
  • buy-products — POST /invoices
  • get-invoice-by-id — GET /invoices/{id}
  • get-order-by-id — GET /orders/{id}
  • list-invoices — GET /invoices
  • list-orders — GET /orders
  • pay-invoice — POST /invoices/{id}/pay
  • get-account-balance — GET /accounts/balance
  • check-phone-number — GET /check_phone_number
  • ping — GET /ping
  • list-esim-products — GET /products/esims

Configuration and credentials

You will need 2 environment variables: BITREFILL_API_KEY, YOUR_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Bitrefill.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the bitrefill mcp server does with a few real requests.

Choosing this one

This sits in the payments and commerce group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Bitrefill's toolset — search-products, product-details, buy-products and 11 more — is a fair guide to whether it matches your workflow. It is maintained by bitrefill; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Bitrefill's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
search-productsGET /products/search (with q) or GET /products (browse)
product-detailsGET /products/{id}
buy-productsPOST /invoices
get-invoice-by-idGET /invoices/{id}
get-order-by-idGET /orders/{id}
list-invoicesGET /invoices
list-ordersGET /orders
pay-invoicePOST /invoices/{id}/pay
get-account-balanceGET /accounts/balance
check-phone-numberGET /check_phone_number
pingGET /ping
list-esim-productsGET /products/esims
get-esim-productGET /products/esims/{id}
create-esim-invoicePOST /esims

How to install the Bitrefill MCP server

{
  "mcpServers": {
    "bitrefill": {
      "command": "npx",
      "args": ["-y", "bitrefill-mcp-server"],
      "env": {
        "BITREFILL_API_KEY": "your_api_key_here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
BITREFILL_API_KEYCredential the server authenticates with.Yes
YOUR_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Bitrefill to search-products.
  • Use Bitrefill to product-details.
  • Use Bitrefill to buy-products.

Frequently asked questions

It connects Bitrefill to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (search-products, product-details, buy-products, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Bitrefill directly.