TypeScript MCP server enabling AI access to Bitrefill gift cards mobile topups and invoice services
Bitrefill MCP Server is a TypeScript-based server that serves as an adapter, facilitating integration between AI applications and the Bitrefill platform. This server implements the Model Context Protocol (MCP) to expose a wide range of functionalities such as searching for gift cards, mobile topups, and more, directly within AI assistants like Claude Desktop, Continue, Cursor, and others.
The Bitrefill MCP Server leverages the MCP protocol to provide structured and standardized interactions between AI applications and backend services. Key features include:
bitrefill://product-types
and bitrefill://categories/{type}
.The following Mermaid diagram illustrates the flow of data within the Bitrefill MCP Server:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Bitrefill API]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
The Bitrefill MCP Server is compatible with a variety of AI applications, specifically:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
The Bitrefill MCP Server architecture is designed to follow the Model Context Protocol, enabling seamless communication between AI applications and backend services. The server structure includes:
import { handler as handleSearch } from '../handlers/resources';
export const searchTool = {
name: 'search',
handler: async (request) => {
return await handleSearch(request.body.query, request.body);
},
};
To integrate the Bitrefill MCP Server into your AI application environment, you can use Smithery to automate the installation process. Below are detailed steps for different platforms:
npx -y @smithery/cli install @bitrefill/bitrefill-mcp-server --client claude
Add the server config in 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"
}
}
}
}
{
"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"
}
}
}
}
npx
-y bitrefill-mcp-server
First, build the Docker image:
docker build -t bitrefill-mcp-server .
Run the container with env vars:
docker run -e BITREFILL_API_SECRET=your_api_key_here -e BITREFILL_API_ID=your_api_id_here bitrefill-mcp-server
For development, mount your source code as a volume:
docker run -v $(pwd):/app --env-file .env bitrefill-mcp-server
The Bitrefill MCP Server can significantly enhance AI workflows by enabling seamless access to various financial and gift card services. Two key use cases are:
For instance, a user interacting with an AI through Cursor could issue commands like "Buy me a Netflix gift card" or "Top up my phone number," which the server will handle efficiently.
The Bitrefill MCP Server supports integration with the following MCP clients:
The performance of the Bitrefill MCP Server has been tested with multiple AI clients. The compatibility matrix below summarizes its current status:
Client | Resources (✅/❌) | Tools (✅/❌) | Prompts (✅/❌) |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
For advanced users and developers, the Bitrefill MCP Server offers detailed configuration options. You can customize the server by modifying environment variables to fit specific needs.
Ensure security measures are in place with proper API key management and HTTPS configurations.
{
"bitrefill": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-bitrefill"],
"env": {
"API_KEY": "your-api-key",
"SECURITY_SECRET": "your-secret-code"
}
}
}
The server encrypts all communication and stores data securely using industry-standard protocols.
Currently, the Bitrefill MCP Server is compatible with Claude Desktop and Continue but has limited support for Cursor. Full integration requires checking the compatibility matrix.
The server includes comprehensive tools such as product search, invoice creation, order tracking, and more.
Refer to the documentation or reach out to the support team for troubleshooting steps related to connection issues.
Yes, you can modify handler functions and configuration settings to tailor the server’s behavior to your needs.
Contributing to the Bitrefill MCP Server is open to developers who wish to improve or extend its functionality. Developers should refer to the contributing guidelines found in the repository.
feat: Add support for creating custom invoices with additional fields.
The Bitrefill MCP Server is part of the broader Model Context Protocol ecosystem, which includes various other servers and tools aimed at enabling seamless interactions between AI applications and backend services.
Explore more resources such as documentation, community forums, and relevant repositories to get deeper insights into MCP development.
By leveraging the Bitrefill MCP Server, developers can significantly enhance the capabilities of their AI applications, making them more versatile and user-friendly.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration