financedeveloper-tools

BTCPayServer

by abhijay007

Power your e-commerce with BTCPayServer—secure Bitcoin payments, Lightning Network, and store management via 23 integrat

Integrates with BTCPayServer's API to provide complete Bitcoin payment processing, store management, and Lightning Network operations through 23 modular services covering invoices, payment requests, wallets, webhooks, and system administration for e-commerce and Bitcoin-native business applications.

github stars

2

23+ modular servicesComplete BTCPayServer API coverageLightning Network support

best for

  • / E-commerce businesses accepting Bitcoin payments
  • / Developers building Bitcoin-native applications
  • / Merchants needing Lightning Network integration
  • / Bitcoin payment automation workflows

capabilities

  • / Create and manage Bitcoin invoices
  • / Process Lightning Network payments
  • / Handle payment requests and billing
  • / Manage BTCPayServer stores and settings
  • / Configure webhooks for payment notifications
  • / Administer users and permissions

what it does

Connects to BTCPayServer's API to handle Bitcoin payments, manage stores, and process Lightning Network transactions. Provides access to 23+ services for Bitcoin payment processing and e-commerce integration.

about

BTCPayServer is a community-built MCP server published by abhijay007 that provides AI assistants with tools and capabilities via the Model Context Protocol. Power your e-commerce with BTCPayServer—secure Bitcoin payments, Lightning Network, and store management via 23 integrat It is categorized under finance, developer tools.

how to install

You can install BTCPayServer 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

BTCPayServer is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

BTCPayServer Model Context Protocol Server (Beta)

A comprehensive Model Context Protocol (MCP) server for BTCPayServer integration, providing tools for payment processing, store management, user administration, webhook handling and more with full API coverage.

<a href="https://glama.ai/mcp/servers/@Abhijay007/btcpayserver-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@Abhijay007/btcpayserver-mcp/badge" alt="btcpayserver-mcp MCP server" /> </a>

Tool Reference

The BTCPayServer MCP Server provides a streamlined set of tools for interacting with BTCPayServer APIs:

ToolDescriptionPrimary Use
get_service_infoDiscover methods available for a serviceExploration and discovery
get_method_infoGet detailed parameter requirementsRequest preparation
btcpay_requestExecute API calls to BTCPayServerPerforming operations

Integration with AI Assistants

Claude Desktop Integration

For Claude Desktop integration, add this configuration to your claude_desktop_config.json:

{
  "mcpServers": {
    "btcpayserver-mcp": {
      "command": "node",
      "args": ["path/to/btcpayserver-mcp/dist/index.js"],
      "env": {
        "BTCPAY_BASE_URL": "https://your-btcpay-instance.com",
        "BTCPAY_API_KEY": "your_api_key_here",
        "BTCPAY_STORE_ID": "your_default_store_id"
      }
    }
  }
}

Service Catalog

BTCPayServer MCP provides access to BTCPayServer's complete API ecosystem. Check out the BTCPayServer API Documentation for detailed information about each service:

Payment Services

ServiceDescription
invoicesCreate, manage, and track Bitcoin invoices for payments
payment-requestsCreate payment requests for donations or recurring billing
lightning-internalManage internal Lightning Network operations
lightning-storeStore-level Lightning Network configurations
lightning-addressLightning Address management and setup

Store Management

ServiceDescription
storesStore creation, configuration, and management
stores-emailConfigure and manage store email settings and SMTP
stores-payment-methodsManage available payment methods for stores
stores-payout-processorsConfigure automated payout processing
stores-payoutsManage and process store payouts
stores-ratesExchange rate configuration and management
stores-usersStore user access and permissions management
stores-walletStore wallet management and operations

User & Access Management

ServiceDescription
usersUser account management and administration
api-keysAPI key creation and permission management
authorizationOAuth and authorization flow management

Integration & Automation

ServiceDescription
webhooksReal-time event notifications and webhook management
notificationsSystem notifications and alerts
appsBTCPayServer app integrations and plugins
pull-paymentsPull payment requests and refund management

System

ServiceDescription
server-infoServer status, version, and configuration information

Usage Pattern

For optimal interaction with the BTCPayServer API through MCP:

1. Discover: Use get_service_info to explore available methods

get_service_info(serviceName: "invoices")

2. Understand: Use get_method_info to learn parameter requirements

get_method_info(serviceName: "invoices", methodName: "create")

3. Execute: Use btcpay_request to perform the operation

btcpay_request(serviceName: "invoices", methodName: "create", parameters: {storeId: "your-store-id", amount: "10.00", currency: "USD"})

Installation

  1. Clone this repository:
git clone <repository-url>
cd btcpayserver-mcp
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

The MCP server requires the following environment variables:

  • BTCPAY_BASE_URL - Your BTCPayServer instance URL (e.g., https://btcpay.example.com)
  • BTCPAY_API_KEY - Your BTCPayServer API key
  • BTCPAY_STORE_ID - (Optional) Default store ID for operations

Setting up BTCPayServer API Key

  1. Log into your BTCPayServer instance
  2. Go to AccountManage AccountAPI Keys
  3. Click Generate Key
  4. Select the required permissions for your use case:
    • Store management: btcpay.store.canmodifystoresettings
    • Payment requests: btcpay.store.cancreateinvoice
    • User management: btcpay.user.canmodifyprofile
    • Webhooks: btcpay.store.webhooks.canmodifywebhooks
    • etc..
  5. Copy the generated API key

Environment Setup

Create a .env file in your project root:

BTCPAY_BASE_URL=https://your-btcpay-instance.com
BTCPAY_API_KEY=your_api_key_here
BTCPAY_STORE_ID=your_default_store_id

Or set environment variables directly:

export BTCPAY_BASE_URL=https://your-btcpay-instance.com
export BTCPAY_API_KEY=your_api_key_here
export BTCPAY_STORE_ID=your_default_store_id

Usage

Running the MCP Server

npm start

For development:

npm run dev

Development and Debugging

Using MCP Inspector: The MCP Inspector provides a visual interface for testing:

# Build the project
npm run build

# Start the inspector with the BTCPayServer MCP Server
npx @modelcontextprotocol/inspector node dist/index.js

Development Workflow:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Start development mode: npm run build
  4. Run the server: node dist/index.js
  5. Test your changes using the MCP Inspector

The MCP server provides comprehensive error handling:

  • Configuration Errors: Missing environment variables
  • API Errors: BTCPayServer API communication issues
  • Validation Errors: Invalid input parameters
  • Authentication Errors: Invalid or expired API keys

All errors are properly formatted and returned with descriptive messages.

Development

Project Structure

src/
├── index.ts              # Main MCP server implementation
├── services/             # BTCPayServer service implementations
│   ├── base-service.ts   # Base service class
│   ├── invoices.ts       # Invoice management
│   ├── payment-requests.ts # Payment request handling
│   ├── stores.ts         # Store management
│   ├── webhooks.ts       # Webhook management
│   └── ...               # Other service modules
├── utils/
│   └── btcpay-client.ts  # BTCPayServer API client
└── types.ts              # TypeScript type definitions

Building

npm run build

Running in Development

npm run dev

Security Considerations

  1. API Key Security: Never commit API keys to version control
  2. Environment Variables: Use secure environment variable management
  3. Webhook Secrets: Always use webhook secrets for verification
  4. HTTPS: Ensure BTCPayServer instance uses HTTPS
  5. Permissions: Use principle of least privilege for API key permissions

BTCPayServer Compatibility

This MCP server is compatible with BTCPayServer v1.7.0 and later. It uses the official BTCPayServer REST API v1.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

MIT License - see LICENSE file for details.

Support

For issues and questions:

  1. Check the BTCPayServer documentation
  2. Review the API reference
  3. Open an issue in this repository

Help us improve this MCP

Note: Some methods might not be working properly. Please help us by reporting requirements and making pull requests to improve them. Also, to keep it up with the latest API version, we need to continue updating it.

FAQ

What is the BTCPayServer MCP server?
BTCPayServer 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 BTCPayServer?
This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    BTCPayServer is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Piyush G· Sep 9, 2024

    We evaluated BTCPayServer against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Aug 8, 2024

    Useful MCP listing: BTCPayServer is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Sakshi Patil· Jul 7, 2024

    BTCPayServer reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ganesh Mohane· Jun 6, 2024

    I recommend BTCPayServer for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Oshnikdeep· May 5, 2024

    Strong directory entry: BTCPayServer surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Dhruvi Jain· Apr 4, 2024

    BTCPayServer has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Rahul Santra· Mar 3, 2024

    According to our notes, BTCPayServer benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Pratham Ware· Feb 2, 2024

    We wired BTCPayServer into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yash Thakker· Jan 1, 2024

    BTCPayServer is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.