This is a Model Context Protocol (MCP) server implementation for demonstrating payment transactions. It provides tools and capabilities for handling merchant transactions through a standardized protocol interface.
- MCP-compliant server implementation
- Support for payment transactions
- Tool-based interaction model
- Secure authorization handling
- Configurable via environment variables
Create a .env file in the root directory with the following variables:
GOOGLE_API_KEY=your_google_api_key
GP_ACCESS_TOKEN=your_global_payments_access_token
GP_ENVIRONMENT=sandbox # or live- Create a Python virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate- Install the package:
pip install -e .- Run the server:
python -m src.mainInstall development dependencies:
pip install -e ".[dev]"Apache 2.0