mcp-server-fat-zebra

seansoreilly/mcp-server-fat-zebra

3.2

If you are the rightful owner of mcp-server-fat-zebra and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project provides a Mission Control Protocol (MCP) integration for Fat Zebra payment processing, implemented as a TypeScript/Node.js service.

Tools
  1. payment

    Payment processing tools

  2. customer

    Customer management tools

  3. transaction

    Transaction tools

  4. webhook

    Webhook handlers

  5. batch

    Batch operation tools

MCP Fat Zebra Integration

This project provides a Mission Control Protocol (MCP) integration for Fat Zebra payment processing, implemented as a TypeScript/Node.js service.

Project Overview

  • TypeScript-based MCP server implementation with Fat Zebra API integration
  • Comprehensive API tools for Fat Zebra payment processing

Prerequisites

  • Node.js >= 22.0.0
  • npm >= 11.3.0
  • Fat Zebra API credentials

Installation

Node.js Dependencies

npm install

Project Structure

.
ā”œā”€ā”€ src/                     # TypeScript source code
│   ā”œā”€ā”€ index.ts             # Main entry point
│   ā”œā”€ā”€ tools/               # MCP tool implementations for Fat Zebra API
│   │   ā”œā”€ā”€ payment/         # Payment processing tools
│   │   ā”œā”€ā”€ customer/        # Customer management tools
│   │   ā”œā”€ā”€ transaction/     # Transaction tools
│   │   ā”œā”€ā”€ webhook/         # Webhook handlers
│   │   └── batch/           # Batch operation tools
│   ā”œā”€ā”€ utils/               # Utility functions
│   ā”œā”€ā”€ types/               # TypeScript type definitions
│   └── resources/           # MCP resources (e.g., documentation)
ā”œā”€ā”€ docs/                    # Markdown documentation
ā”œā”€ā”€ dist/                    # Compiled TypeScript output
ā”œā”€ā”€ tests/                   # Test files
ā”œā”€ā”€ logs/                    # Application logs
ā”œā”€ā”€ fixes/                   # Hotfixes and patches
└── testing/                 # Additional test resources

Development

Building the Project

npm run build   # Build TypeScript code
npm run watch   # Watch mode for development

Running Locally

npm start       # Standard start
npm run start:win  # Windows-specific start script

Testing

The project includes Jest tests for the TypeScript components:

npm test

Fat Zebra Integration Features

The MCP server provides tools for various Fat Zebra API operations:

  • Payment processing
  • Card tokenization and storage
  • Customer management
  • Transaction reporting
  • Webhook handling
  • Batch operations
  • Direct debit processing
  • 3D Secure integration

Environment Configuration

Create a .env file with the following variables:

FAT_ZEBRA_API_URL=https://gateway.pmnts-sandbox.io/v1.0
FAT_ZEBRA_API_KEY=your_api_key_here
FAT_ZEBRA_MERCHANT_ID=your_merchant_id
FAT_ZEBRA_USERNAME=your_username
FAT_ZEBRA_TOKEN=your_token
NODE_ENV=development

Troubleshooting

If you encounter issues:

  1. Check the logs in the logs directory
  2. Verify your Fat Zebra API credentials
  3. Ensure ports are not in use by other applications

Windows Path Issues

If you encounter path resolution issues on Windows, use the Windows-specific start script:

npm run start:win

Documentation

See the docs directory for detailed documentation on:

  • API endpoints
  • Testing procedures
  • Security considerations
  • Payment workflows
  • Webhooks configuration

License

See the LICENSE file for details.