Skip to main content
Glama
stripe

stripe

Official
by stripe

Контекстный протокол модели Stripe

Сервер протокола контекста модели Stripe позволяет интегрироваться с API Stripe через вызов функций. Этот протокол поддерживает различные инструменты для взаимодействия с различными службами Stripe.

Настраивать

Чтобы запустить сервер Stripe MCP с помощью npx, используйте следующую команду:

# To set up all available tools
npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEY

# To set up specific tools
npx -y @stripe/mcp --tools=customers.create,customers.read,products.create --api-key=YOUR_STRIPE_SECRET_KEY

# To configure a Stripe connected account
npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEY --stripe-account=CONNECTED_ACCOUNT_ID

Обязательно замените YOUR_STRIPE_SECRET_KEY на ваш фактический секретный ключ Stripe. В качестве альтернативы вы можете установить STRIPE_SECRET_KEY в переменных среды.

Использование с Claude Desktop

Добавьте следующее в ваш claude_desktop_config.json . Подробнее см. здесь .

{
  "mcpServers": {
    "stripe": {
      "command": "npx",
      "args": [
          "-y",
          "@stripe/mcp",
          "--tools=all",
          "--api-key=STRIPE_SECRET_KEY"
      ]
    }
  }
}

если вы используете Docker

{
    “mcpServers”: {
        “stripe”: {
            “command”: “docker",
            “args”: [
                “run”,
                "--rm",
                "-i",
                “mcp/stripe”,
                “--tools=all”,
                “--api-key=STRIPE_SECRET_KEY”
            ]
        }
    }
}

Related MCP server: MCP Web Tools Server

Доступные инструменты

Инструмент

Описание

customers.create

Создать нового клиента

customers.read

Прочитать информацию для клиентов

products.create

Создать новый продукт

products.read

Прочитать информацию о продукте

prices.create

Создать новую цену

prices.read

Прочитать информацию о ценах

paymentLinks.create

Создать новую ссылку для оплаты

invoices.create

Создать новый счет

invoices.update

Обновить существующий счет

invoiceItems.create

Создать новый элемент счета

balance.read

Получить информацию о балансе

refunds.create

Создать новый возврат

paymentIntents.read

Прочитать информацию о намерении платежа

subscriptions.read

Прочитать информацию о подписке

subscriptions.update

Обновить информацию о подписке

coupons.create

Создать новый купон

coupons.read

Прочитать информацию о купонах

disputes.update

Обновить существующий спор

disputes.read

Прочитать информацию о спорах

documentation.read

Поиск документации Stripe

Отладка сервера

Для отладки сервера вы можете использовать MCP Inspector .

Сначала постройте сервер

npm run build

Выполните следующую команду в терминале:

# Start MCP Inspector and server with all tools
npx @modelcontextprotocol/inspector node dist/index.js --tools=all --api-key=YOUR_STRIPE_SECRET_KEY

Сборка с использованием Docker

Сначала постройте сервер

docker build -t mcp/stripe .

Выполните следующую команду в терминале:

docker run -p 3000:3000 -p 5173:5173 -v /var/run/docker.sock:/var/run/docker.sock mcp/inspector docker run --rm -i mcp/stripe --tools=all --api-key=YOUR_STRIPE_SECRET_KEY

Инструкции

  1. Замените YOUR_STRIPE_SECRET_KEY на ваш фактический секретный ключ API Stripe.

  2. Выполните команду для запуска MCP Inspector.

  3. Откройте пользовательский интерфейс MCP Inspector в браузере и нажмите «Подключиться», чтобы запустить сервер MCP.

  4. Вы можете просмотреть список выбранных вами инструментов и протестировать каждый инструмент по отдельности.

Related MCP Connectors

  • The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.

  • Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server

  • A Model Context Protocol server for Wix AI tools

  • The Telnyx MCP server is an official implementation of the Model Context Protocol that enables AI clients (like Claude Desktop, Cursor, and OpenAI Agents) to interact with Telnyx's telephony, messaging, and AI assistant APIs. It provides comprehensive capabilities including making and managing phone calls, sending SMS/MMS messages, purchasing and configuring phone numbers, creating AI assistants with custom instructions, managing cloud storage buckets, scraping and embedding website content, and handling integration secrets. The server exists as both a local implementation and a remotely hosted version, allowing developers to integrate real-world communication infrastructure directly into AI applications.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A server that integrates with Stripe for handling payments, customers, and refunds through the Model Context Protocol, providing a secure API to manage financial transactions.
    44
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    The PayPal Model Context Protocol server allows you to integrate with PayPal APIs through function calling. This protocol supports various tools to interact with different PayPal services.
    661 npm
    196
    -