Bitrefill

Bitrefill

A Model Context Protocol Server connector for Bitrefill public API, to enable AI agents to search and shop on Bitrefill.

2.2K

12 Tools

Packaged by
Requires Configuration
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

Bitrefill MCP Server

A Model Context Protocol Server connector for Bitrefill public API, to enable AI agents to search and shop on Bitrefill.

What is an MCP Server?

Characteristics

AttributeDetails
Docker Imagemcp/bitrefill
Authorbitrefill
Repositoryhttps://github.com/bitrefill/bitrefill-mcp-server
Dockerfilehttps://github.com/bitrefill/bitrefill-mcp-server/blob/master/Dockerfile
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/bitrefill --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceMIT License

Available Tools (12)

Tools provided by this ServerShort Description
categoriesGet the full product type/categories map.
create_invoiceCreate a new invoice for purchasing products with various payment methods
detailGet detailed information about a product
get_account_balanceRetrieve your account balance
get_invoiceRetrieve details for a specific invoice by ID
get_invoicesRetrieve a list of invoices with optional filtering
get_orderRetrieve details for a specific order by ID
get_ordersRetrieve a list of orders with optional filtering
pay_invoicePay an unpaid invoice (only works with 'balance' payment method)
pingCheck if the Bitrefill API is available
searchSearch for gift cards, esims, mobile topups and more.
unseal_orderReveal codes and PINs for a specific order by ID

Tools Details

Tool: categories

Get the full product type/categories map. It's suggested to use this tool to get the categories and then use the search tool to search for products in a specific category.

Tool: create_invoice

Create a new invoice for purchasing products with various payment methods

ParametersTypeDescription
payment_methodstringRequired payment method. Available methods: balance, lightning, bitcoin, eth_base, usdc_base
productsarrayArray of products to include in the invoice
auto_paybooleanoptionalOptional: Automatically pay with balance
webhook_urlstringoptionalOptional: URL for webhook notifications

Tool: detail

Get detailed information about a product

ParametersTypeDescription
idstringUnique identifier of the product

Tool: get_account_balance

Retrieve your account balance

Tool: get_invoice

Retrieve details for a specific invoice by ID

ParametersTypeDescription
idstringUnique invoice identifier

Tool: get_invoices

Retrieve a list of invoices with optional filtering

ParametersTypeDescription
afterstringoptionalStart date for limiting results (Inclusive). Format: YYYY-MM-DD HH:MM:SS
beforestringoptionalEnd date for limiting results (Non-Inclusive). Format: YYYY-MM-DD HH:MM:SS
limitintegeroptionalMaximum number of records. Maximum/Default: 50
startintegeroptionalStart index. Default: 0

Tool: get_order

Retrieve details for a specific order by ID

ParametersTypeDescription
idstringUnique order identifier

Tool: get_orders

Retrieve a list of orders with optional filtering

ParametersTypeDescription
afterstringoptionalStart date for limiting results (Inclusive). Format: YYYY-MM-DD HH:MM:SS
beforestringoptionalEnd date for limiting results (Non-Inclusive). Format: YYYY-MM-DD HH:MM:SS
limitintegeroptionalMaximum number of records. Maximum/Default: 50
startintegeroptionalStart index. Default: 0

Tool: pay_invoice

Pay an unpaid invoice (only works with 'balance' payment method)

ParametersTypeDescription
idstringUnique invoice identifier

Tool: ping

Check if the Bitrefill API is available

Tool: search

Search for gift cards, esims, mobile topups and more. It's suggested to use the categories tool before searching for products, to have a better understanding of what's available.

ParametersTypeDescription
querystringSearch query (e.g., 'Amazon', 'Netflix', 'AT&T' or '*' for all the available products)
beta_flagsstringoptionalBeta feature flags
cartstringoptionalCart identifier
categorystringoptionalFilter by category (e.g., 'gaming', 'entertainment')
colnumberoptionalColumn layout parameter
countrystringoptionalCountry code (e.g., 'US', 'IT', 'GB')
do_recommendnumberoptionalEnable recommendations
languagestringoptionalLanguage code for results (e.g., 'en')
limitnumberoptionalMaximum number of results to return
prefccnumberoptionalPreferred country code parameter
recnumberoptionalRecommendation parameter
secnumberoptionalSecurity parameter
skipnumberoptionalNumber of results to skip (for pagination)
srcstringoptionalSource of the request

Tool: unseal_order

Reveal codes and PINs for a specific order by ID

ParametersTypeDescription
idstringUnique order identifier

Use this MCP Server

{
  "mcpServers": {
    "bitrefill": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BITREFILL_API_ID",
        "-e",
        "BITREFILL_API_SECRET",
        "mcp/bitrefill"
      ],
      "env": {
        "BITREFILL_API_ID": "your_api_id_here",
        "BITREFILL_API_SECRET": "your_api_key_here"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Manual installation

You can install the MCP server using:

Installation for

Related servers