Once you have registered your MCP Server on the AgentPay Hub and obtained your Service Token, the next step is to install the AgentPay Python SDK into your server’s environment.
Currently there is only a Python SDK available, but a Node.js version of the SDK, installable via npm, is coming soon.

Installation Using pip

The AgentPay Python SDK is available on PyPI and can be installed using pip. Open your terminal or command prompt, activate your project’s virtual environment (recommended), and run the following command:
pip install agentpay-sdk
This will download and install the latest version of the agentpay-sdk and its dependencies.
The agentpay-sdk package currently on PyPI is a placeholder to reserve the name during Early Access. To get the actual SDK now, join the Waitlist.

Verifying Installation (Optional)

You can verify that the SDK has been installed correctly by trying to import it in a Python interpreter or script:
try:
    import agentpay_sdk
    print("AgentPay SDK imported successfully!")
    print(f"SDK Version: {agentpay.__version__}")
except ImportError:
    print("Failed to import AgentPay SDK. Please check your installation.")

Requirements

  • Python 3.8+ (which also takes care of the dataclasses dependency)
  • pip (Python package installer)
    • Note: Using pip will handle installing the only other package dependency, requests

Next Steps

With the AgentPay SDK installed, you are now ready to initialize the AgentPayClient in your server application.