Skip to main content
Glama
Payment-UZ MCP Server

Payment-UZ MCP Server

by DilmurodMak

Payment-UZ MCP Server πŸ‡ΊπŸ‡ΏπŸ’³

A FastMCP server that exposes Uzbekistan's payment systems (Payme, Click, Octo) as AI-accessible tools. Built for developers to easily integrate payment providers through AI assistants like Claude, ChatGPT, and Cursor.

MCP Python FastMCP License: MIT

🎯 What is This?

Payment-UZ MCP is a Model Context Protocol server that turns complex payment integrations into simple AI conversations. Instead of reading documentation and writing code manually, just ask your AI assistant:

"Generate a Payme payment link for UZS"

"How do I verify a Click webhook signature?"

"Compare Payme, Click, and Octo integration for my e-commerce site"

The AI uses this MCP server to provide accurate, production-ready payment integration guidance and code.

Related MCP server: Payme MCP Server

✨ Features

πŸ”§ Payment Provider Tools

Payme Integration

  • βœ… Generate checkout URLs

  • βœ… Verify webhook authentication

  • βœ… Complete integration guide with JSON-RPC 2.0

  • βœ… Transaction state management

  • βœ… Error code reference

Click Integration

  • βœ… Generate invoice URLs

  • βœ… Verify MD5 webhook signatures

  • βœ… Two-phase payment flow (prepare + complete)

  • βœ… Merchant API documentation

  • βœ… Error handling guide

Octo Integration

  • βœ… Create payment transactions

  • βœ… Verify SHA-256 webhook signatures

  • βœ… Modern REST API integration

  • βœ… Card tokenization support

  • βœ… Refund handling

πŸ“Š Comparison & Analysis

  • Compare all three providers side-by-side

  • Security best practices

  • Market share and recommendations

  • Integration complexity analysis

πŸš€ Quick Start

Prerequisites

  • Python 3.10 or higher

  • pip or uv package manager

  • An MCP-compatible AI client (Claude Desktop, Cursor, etc.)

Installation

# Clone or download this server
cd mcp-servers/payment-uz

# Install dependencies
pip install -r requirements.txt

# Or use uv for faster installation
uv pip install -r requirements.txt

Usage with Claude Desktop

  1. Open Claude Desktop configuration:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

  2. Add the server configuration:

{
  "mcpServers": {
    "payment-uz": {
      "command": "python",
      "args": [
        "/FULL/PATH/TO/mcp-servers/payment-uz/server.py"
      ]
    }
  }
}
  1. Restart Claude Desktop

  2. Start asking payment integration questions!

Usage with Cursor / VS Code

Add to your MCP configuration:

{
  "mcpServers": {
    "payment-uz": {
      "command": "python",
      "args": ["./mcp-servers/payment-uz/server.py"]
    }
  }
}

πŸ“– Available Tools

Payme Tools

  • payme_generate_checkout_url - Generate payment URLs

  • payme_verify_webhook_auth - Verify Basic Auth headers

  • payme_get_integration_guide - Complete integration documentation

Click Tools

  • click_generate_invoice_url - Create payment invoices

  • click_verify_webhook_signature - Verify MD5 signatures

  • click_get_integration_guide - Two-phase payment guide

Octo Tools

  • octo_create_payment - Initialize payment transactions

  • octo_verify_webhook_signature - Verify SHA-256 signatures

  • octo_get_integration_guide - Modern REST API guide

General Tools

  • compare_payment_providers - Provider comparison matrix

  • payment_security_best_practices - Security guidelines

Resources

  • payment-uz://status - Real-time provider status

Prompts

  • generate_payment_integration - Generate integration code

πŸ’‘ Example Conversations

You: Generate a Payme checkout URL for a booking worth 150,000 UZS

AI (using MCP):

{
  "success": true,
  "payment_url": "https://checkout.test.paycom.uz/...",
  "amount_uzs": 150000,
  "amount_tiyin": 15000000,
  "environment": "test"
}

Compare Payment Providers

You: Which payment provider should I integrate first for my booking platform?

AI (using MCP): Based on the comparison, I recommend:

  1. Payme - Essential for enterprise/B2B bookings (highest trust)

  2. Click - Easy integration, covers most consumer payments

  3. Octo - For modern features like recurring payments, and existing internation al cards as of June 2025.

Verify Webhook Security

You: How do I verify a Click webhook signature?

AI (using MCP): Use the click_verify_webhook_signature tool with MD5 hash verification...

πŸ—οΈ Architecture

Payment-UZ MCP Server
β”œβ”€β”€ FastMCP Framework
β”œβ”€β”€ Tools (15+ payment tools)
β”œβ”€β”€ Prompts (Code generation)
└── Security (Signature verification)

Why This Matters

Uzbekistan has a unique payment landscape with these three dominant providers and its growing with new players. Unlike global markets where Stripe/PayPal dominate, Uzbek developers must integrate local providers and the documentation always varies. This MCP server makes that integration easier.

πŸ› οΈ Development

Project Structure

payment-uz/
β”œβ”€β”€ server.py              # Main MCP server
β”œβ”€β”€ requirements.txt       # Python dependencies
β”œβ”€β”€ pyproject.toml        # Package configuration
β”œβ”€β”€ README.md             # This file
└── examples/             # Usage examples (coming soon)

Running Tests

# Test the server locally
python server.py

# In another terminal, test with MCP Inspector
npx @modelcontextprotocol/inspector python server.py

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“ License

MIT License - feel free to use in your projects!

πŸ™ Acknowledgments

πŸ“§ Contact


Stop reading payment docs. Start asking AI. πŸ€–

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI agents to interact with multiple payment providers (Stripe, Paystack) through a unified API. Supports payment initialization, verification, refunds, customer management, and invoicing without requiring knowledge of specific provider implementations.
      2
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Payme β€” the leading payment system in Uzbekistan. Enables AI agents to process payments, manage cards, and generate checkout links through the Model Context Protocol.
      10
      4 npm
      MIT