Bitrefill Search and Shop
OfficialBitrefill MCP サーバー
TypeScriptベースのMCPサーバー。Bitrefillサービスへのアクセスを提供し、ギフトカードやモバイルチャージなどの検索を可能にします。このサーバーは、モデルコンテキストプロトコルを実装し、Bitrefill機能をAIアシスタントに公開します。
仕組み
サーバーは、モデルコンテキストプロトコル(MCP)を使用して、ClaudeなどのAIアシスタントと通信します。MCPは以下の機能を提供します。
通信にstdioを使用してスタンドアロンプロセスとして実行されます
Bitrefill サービスにアクセスするためのリソースとツールを登録します
Bitrefill APIとのインターフェースで製品検索と詳細を提供します
AIアシスタントが処理できる構造化されたJSONレスポンスを返します
建築
アプリ サーバーは次のアーキテクチャに従います。
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 clientRelated MCP server: agentstorefront-mcp
特徴
リソース
bitrefill://product-types- Bitrefillで利用可能な製品タイプのリストbitrefill://categories/{type}- 特定の製品タイプで利用可能なカテゴリのリスト(例:bitrefill://categories/gift-cards)
ツール
search- ギフトカード、eSIM、モバイルトップアップなどを検索必須:
query(例: 「Amazon」、「Netflix」、「AT&T」、またはすべてを表す「*」)オプション:
country、language、limit、skip、category
detail- 製品の詳細情報を取得する必須:
id(製品識別子)
categories- 完全な製品タイプ/カテゴリマップを取得します必須パラメータはありません
create_invoice- 製品を購入するための新しい請求書を作成します(API キーが必要です)必須:
products(請求書に含める製品の配列)各製品には次のものが必要です:
product_idオプションの製品フィールド:
quantity、value、package_id、phone_number、email、send_email、send_sms
必須:
payment_method(「balance」、「bitcoin」、「lightning」のいずれか)オプション:
webhook_url、auto_pay
get_invoices- オプションのフィルタリングを使用して請求書のリストを取得しますオプション:
start、limit、after、before
get_invoice- IDで特定の請求書の詳細を取得する必須:
id(請求書識別子)
pay_invoice- 未払いの請求書を支払う(「残高」支払い方法でのみ機能します)必須:
id(請求書識別子)
get_orders- オプションのフィルタリングを使用して注文のリストを取得しますオプション:
start、limit、after、before
get_order- IDで特定の注文の詳細を取得する必須:
id(注文識別子)
unseal_order- IDで特定の注文のコードとPINを表示する必須:
id(注文識別子)
get_account_balance- アカウント残高を取得する必須パラメータはありません
ping- Bitrefill APIが利用可能かどうかを確認する必須パラメータはありません
構成
APIキーの設定
search 、 categories 、 detailを除く Bitrefill API に依存するすべてのツールを使用するには、Bitrefill API 資格情報を設定する必要があります。
Bitrefillアカウントを作成する
このフォームにリクエストを送信して開発者APIキーを申請してください
ルートディレクトリに
.envファイルを作成します(.env.exampleからコピーできます)。Bitrefill API 資格情報を追加します。
BITREFILL_API_SECRET=your_api_key_here BITREFILL_API_ID=your_api_id_here
create_invoiceツールは、API 認証情報が設定されている場合にのみ使用できます。API 認証情報が設定されていない場合、ツールは登録されず、利用可能なツールのリストにも表示されません。
発達
依存関係をインストールします:
npm installサーバーを構築します。
npm run build自動リビルドを使用した開発の場合:
npm run watchデバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
npm run inspectorインスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の Bitrefill を自動的にインストールするには:
npx -y @smithery/cli install @bitrefill/bitrefill-mcp-server --client claudeクロードデスクトップ
次の場所にサーバー設定を追加します:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%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拡張機能の設定を開く
「MCPサーバー」タブを開く
「MCPサーバーの構成」をクリックします
サーバー設定を追加します:
{
"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"
}
}
}
}追加のCline構成オプション:
disabled: サーバーを有効にするにはfalseに設定しますautoApprove: 使用ごとに明示的な承認を必要としないツールのリスト
カーソル
カーソル設定を開く
「機能」設定を開く
「MCPサーバー」セクションで、「新しいMCPサーバーを追加」をクリックします。
名前を選択し、「タイプ」として「コマンド」を選択します
「コマンド」フィールドに次のように入力します。
npx -y bitrefill-mcp-server(オプション)
create_invoiceツールを使用している場合は、環境変数を追加します。BITREFILL_API_SECRET: APIキーを入力してください
BITREFILL_API_ID: API IDを入力してください
ドッカー
Dockerを使ってサーバーを実行することもできます。まずはイメージをビルドします。
docker build -t bitrefill-mcp-server .次にコンテナを実行します。
docker run -e BITREFILL_API_SECRET=your_api_key_here -e BITREFILL_API_ID=your_api_id_here bitrefill-mcp-server開発の場合、ソース コードをボリュームとしてマウントする必要がある場合があります。
docker run -v $(pwd):/app --env-file .env bitrefill-mcp-serverTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
- Removed
categories - Removed
detail - Removed
ping - Removed
search
2 tool updates
v1.0.0- Changed
categories1 field changed- removed
Input schema / additionalPropertiesRemoved value: -false
- Changed
ping1 field changed- removed
Input schema / additionalPropertiesRemoved value: -false
4 tool updates
- First observed
categories - First observed
detail - First observed
ping - First observed
search
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose with no ambiguity: 'categories' retrieves product categories, 'detail' gets product information, 'ping' checks API availability, and 'search' finds products. The descriptions explicitly differentiate their roles, such as suggesting to use 'categories' before 'search' for better context, ensuring an agent can easily tell them apart.
All tool names follow a consistent, simple noun-based pattern (e.g., 'categories', 'detail', 'ping', 'search') without mixing conventions like camelCase or snake_case. This predictability makes the set easy to navigate and understand at a glance.
With 4 tools, the server is well-scoped for its purpose of searching and shopping on Bitrefill. Each tool earns its place by covering essential functions: API health check, category mapping, product search, and detailed product viewing, avoiding bloat or thin coverage.
The tool surface is nearly complete for a search and shop domain, covering discovery (categories, search), inspection (detail), and availability (ping). A minor gap exists in lacking purchase or checkout tools, but agents can work around this by using the provided tools to gather information before external actions.
Maintenance
Related MCP Connectors
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Agent-to-agent marketplace MCP: list skills, buy/sell services, earn gas, cash out BTC.
MCP Server for agents to onboard, pay, and provision services autonomously with InFlow
Search multi-merchant supply, checkout, and track orders via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to search for and purchase gift cards, mobile topups, and digital products via Bitrefill, with tools for managing invoices, orders, and account balance.1212 npm2MIT
- AlicenseAqualityDmaintenanceEnables AI agents to discover, subscribe to, and call paid agent services from the AgentStorefront marketplace directly within MCP-aware clients like Claude or Cursor.422 npmMIT
- AlicenseAqualityDmaintenanceEnables AI agents to browse the giftcardshop catalog and purchase gift cards using Lightning payments, with no account or signup required.525 npmMIT
- AlicenseNot gradedqualityAmaintenanceRemote MCP server for the BlinkCodes store: search a catalog of ~1000 gift cards, service top-ups and travel eSIMs, read a product's denominations and order requirements, and buy using USDC on Base over x402, no account and no browser. Hosted at https://blinkcodes.com/mcp this repository holds the schemas, docs and a stdio bridge image for clients that cannot open a remote connection.MIT