BTCPayServer Model Context Protocol Server (Beta)

BTCPayServer Model Context Protocol Server (Beta)

btcpayserver•byabhijay007

A Model Context Protocol server for BTCPayServer integration that provides tools for payment processing, store management, user administration, and webhook handling.

License: MIT License•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Exposes discovery, parameter-information, and API-execution tools named get_service_info, get_method_info, and btcpay_request.
  • •Provides access to Bitcoin invoice, payment-request, and Lightning-related services.
  • •Supports store creation and configuration plus store email, payment methods, payout processors, payouts, rates, users, and wallet management.
  • •Covers user accounts, API keys, authorization, webhooks, notifications, apps, and pull payments.

BEST FOR

  • •Creating, managing, and tracking BTCPayServer invoices and payment requests.
  • •Configuring BTCPayServer stores, including email, payment methods, payout processing, rates, users, and wallets.
  • •Managing BTCPayServer webhooks and notifications for event-driven integrations.

ABOUT BTCPAYSERVER

BTCPayServer Model Context Protocol Server (Beta) is cataloged as an MCP server attributed to abhijay007. A Model Context Protocol server for BTCPayServer integration that provides tools for payment processing, store management, user administration, and webhook handling. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for BTCPayServer Model Context Protocol Server (Beta) are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does the server provide for BTCPayServer API work?

The server exposes get_service_info for service discovery, get_method_info for parameter requirements, and btcpay_request for executing BTCPayServer API calls.

How are BTCPayServer API methods discovered and executed through the server?

The workflow is to use get_service_info to explore available methods, get_method_info to learn parameter requirements, and btcpay_request to perform the operation.

Upstream README

View this exact version on GitHub

README.md · 0bca02dbd0cb · Fetched 2026-11-13 08:18:47 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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.

btcpayserver-mcp MCP server

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 Account → Manage Account → API 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.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for BTCPayServer Model Context Protocol Server (Beta) from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/btcpayserver)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics