Bitrefill▌

by bitrefill
Explore Bitrefill to buy gift cards, mobile refills, eSIMs, and digital services instantly with cryptocurrency.
Integrates with Bitrefill's platform to search and retrieve information about gift cards, mobile refills, eSIMs, and digital services available for cryptocurrency purchases.
best for
- / Cryptocurrency holders looking to spend their coins
- / Travelers needing mobile data or eSIMs
- / Gift card shoppers preferring crypto payments
- / Developers building crypto commerce applications
capabilities
- / Search for gift cards and digital services
- / Retrieve mobile refill options by country
- / Browse eSIM plans and providers
- / Get product details and pricing
- / Check cryptocurrency payment options
- / Access country-specific service availability
what it does
Connects to Bitrefill's platform to search and retrieve information about gift cards, mobile refills, eSIMs, and digital services that can be purchased with cryptocurrency.
about
Bitrefill is an official MCP server published by bitrefill that provides AI assistants with tools and capabilities via the Model Context Protocol. Explore Bitrefill to buy gift cards, mobile refills, eSIMs, and digital services instantly with cryptocurrency. It is categorized under finance.
how to install
You can install Bitrefill in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Bitrefill is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Bitrefill MCP Server
A TypeScript-based MCP server that provides access to Bitrefill services, allowing you to search for gift cards, mobile topups, and more. This server implements the Model Context Protocol to expose Bitrefill functionality to AI assistants.
How It Works
The server operates using the Model Context Protocol (MCP) to communicate with Claude and similar AI assistants. It:
- Runs as a standalone process using stdio for communication
- Registers resources and tools for accessing Bitrefill services
- Interfaces with the Bitrefill API to provide product search and details
- Returns structured JSON responses that can be processed by AI assistants
Architecture
The app server follows this architecture:
src/
├── index.ts # Main entry point
├── constants/ # Static data
│ ├── categories.ts # Product categories
│ └── payment_methods.ts # Payment methods
├── handlers/ # MCP request handlers
│ ├── resources.ts # Resource endpoints
│ └── tools.ts # Tool implementations
├── schemas/ # Data validation schemas
│ ├── detail.ts # Product detail response types
│ ├── invoice.ts # Invoice schemas
│ ├── misc.ts # Miscellaneous schemas
│ ├── order.ts # Order schemas
│ └── search.ts # Search parameters and response types
├── services/ # API services
│ ├── invoices.ts # Invoice service
│ ├── misc.ts # Miscellaneous services
│ ├── orders.ts # Order services
│ ├── products.ts # Product details service
│ └── search.ts # Search functionality
└── utils/ # Utility functions
├── index.ts # Error logging, etc.
└── api/ # API clients
├── authenticated.ts # Authenticated API client
├── base.ts # Base API client
└── public.ts # Public API client
Features
Resources
bitrefill://product-types- List of available product types on Bitrefillbitrefill://categories/{type}- List of available categories for a specific product type (e.g.,bitrefill://categories/gift-cards)
Tools
-
search- Search for gift cards, esims, mobile topups and more- Required:
query(e.g., 'Amazon', 'Netflix', 'AT&T' or '*' for all) - Optional:
country,language,limit,skip,category
- Required:
-
detail- Get detailed information about a product- Required:
id(product identifier)
- Required:
-
categories- Get the full product type/categories map- No required parameters
-
create_invoice- Create a new invoice for purchasing products (requires API key)- Required:
products(array of products to include in the invoice)- Each product requires:
product_id - Optional product fields:
quantity,value,package_id,phone_number,email,send_email,send_sms
- Each product requires:
- Required:
payment_method(one of: "balance", "bitcoin", "lightning") - Optional:
webhook_url,auto_pay
- Required:
-
get_invoices- Retrieve a list of invoices with optional filtering- Optional:
start,limit,after,before
- Optional:
-
get_invoice- Retrieve details for a specific invoice by ID- Required:
id(invoice identifier)
- Required:
-
pay_invoice- Pay an unpaid invoice (only works with 'balance' payment method)- Required:
id(invoice identifier)
- Required:
-
get_orders- Retrieve a list of orders with optional filtering- Optional:
start,limit,after,before
- Optional:
-
get_order- Retrieve details for a specific order by ID- Required:
id(order identifier)
- Required:
-
unseal_order- Reveal codes and PINs for a specific order by ID- Required:
id(order identifier)
- Required:
-
get_account_balance- Retrieve your account balance- No required parameters
-
ping- Check if the Bitrefill API is available- No required parameters
Configuration
API Key Setup
To use the all the tools that rely on the Bitrefill API except for search, categories and detail, you need to set up Bitrefill API credentials:
- Create a Bitrefill account
- Ask for a developer API key by filing a request on this form
- Create a
.envfile in the root directory (you can copy from.env.example) - Add your Bitrefill API credentials:
BITREFILL_API_SECRET=your_api_key_here BITREFILL_API_ID=your_api_id_here
The create_invoice tool will only be available if the API credentials are set. If the API credentials are not set, the tool will not be registered and won't appear in the list of available tools.
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
Installation
Installing via Smithery
To install Bitrefill for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @bitrefill/bitrefill-mcp-server --client claude
Claude Desktop
Add the server config at:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"bitrefill": {
"command": "npx",
"args": ["-y", "bitrefill-mcp-server"],
"env": {
"BITREFILL_API_SECRET": "your_api_key_here",
"BITREFILL_API_ID": "your_api_id_here"
}
}
}
}
Cline
- Open the Cline extension settings
- Open "MCP Servers" tab
- Click on "Configure MCP Servers"
- Add the server config:
{
"mcpServers": {
"github.com/bitrefill/bitrefill-mcp-server": {
"command": "npx",
"args": ["-y", "bitrefill-mcp-server"],
"disabled": false,
"autoApprove": ["search", "detail", "categories"],
"env": {
"BITREFILL_API_ID": "your_api_id_here",
"BITREFILL_API_SECRET": "your_api_key_here"
}
}
}
}
Additional Cline configuration options:
disabled: Set tofalseto enable the serverautoApprove: List of tools that don't require explicit approval for each use
Cursor
- Open the Cursor settings
- Open "Features" settings
- In the "MCP Servers" section, click on "Add new MCP Server"
- Choose a name, and select "command" as "Type"
- In the "Command" field, enter the following:
npx -y bitrefill-mcp-server
- (Optional) If you're using the
create_invoicetool, add environment variables:- BITREFILL_API_SECRET: your_api_key_here
- BITREFILL_API_ID: your_api_id_here
Docker
You can also run the server using Docker. First, build the image:
docker build -t bitrefill-mcp-server .
Then run the container:
docker run -e BITREFILL_API_SECRET=your_api_key_here -e BITREFILL_API_ID=your_api_id_here bitrefill-mcp-server
For development, you might want to mount your source code as a volume:
docker run -v $(pwd):/app --env-file .env bitrefill-mcp-server
FAQ
- What is the Bitrefill MCP server?
- Bitrefill is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Bitrefill?
- This profile displays 64 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.7 out of 5—verify behavior in your own environment before production use.
Ratings
4.7★★★★★64 reviews- ★★★★★Lucas Martin· Dec 28, 2024
According to our notes, Bitrefill benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Dhruvi Jain· Dec 12, 2024
Useful MCP listing: Bitrefill is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakura Kim· Dec 4, 2024
We wired Bitrefill into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Sakura Diallo· Dec 4, 2024
Bitrefill is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
- ★★★★★Rahul Santra· Nov 23, 2024
Bitrefill reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Sofia Farah· Nov 23, 2024
Bitrefill is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Mateo Mehta· Nov 19, 2024
Bitrefill has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Oshnikdeep· Nov 3, 2024
We evaluated Bitrefill against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Ganesh Mohane· Oct 22, 2024
I recommend Bitrefill for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Pratham Ware· Oct 14, 2024
We wired Bitrefill into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
showing 1-10 of 64