Skip to main content

nexi-xpay-mcp-server

MCP PyPI License: MIT

MCP server for the Nexi XPay Back Office APIs. Enables AI assistants (Claude, Cursor, etc.) to query orders, transaction details, warnings/anomalies, and payment methods from your Nexi XPay merchant account.

Tools

Tool Description
list_orders List orders with filters (date range, channel, status, transaction code)
order_details Full details of a specific transaction
warnings Retrieve warnings/anomalies (default: last 7 days)
payment_methods List active payment methods for the merchant

Prerequisites

  • Python >= 3.10
  • A Nexi XPay merchant account with Back Office API access
  • API credentials: Alias, API Key and Secret Key (from Nexi Back Office)

Installation

uvx nexi-xpay-mcp-server

Usage in .mcp.json

Add to your MCP configuration file (.mcp.json for Claude Code, claude_desktop_config.json for Claude Desktop):

{
  "mcpServers": {
    "nexi": {
      "command": "uvx",
      "args": ["nexi-xpay-mcp-server"],
      "env": {
        "NEXI_ALIAS": "your_alias",
        "NEXI_SECRET_KEY": "your_secret_key"
      }
    }
  }
}

Multiple merchants

Use different keys to run one instance per merchant:

{
  "mcpServers": {
    "nexi-acme": {
      "command": "uvx",
      "args": ["nexi-xpay-mcp-server"],
      "env": {
        "NEXI_ALIAS": "acme_merchant",
        "NEXI_SECRET_KEY": "acme_secret_key"
      }
    },
    "nexi-globex": {
      "command": "uvx",
      "args": ["nexi-xpay-mcp-server"],
      "env": {
        "NEXI_ALIAS": "globex_merchant",
        "NEXI_SECRET_KEY": "globex_secret_key"
      }
    }
  }
}

Environment variables

Variable Required Default Description
NEXI_ALIAS Yes — Merchant alias (also used as API key)
NEXI_SECRET_KEY Yes — Secret key for MAC calculation
NEXI_TEST No false Set to true to use the test environment

Development

git clone https://github.com/stucchi/nexi-xpay-mcp-server.git
cd nexi-xpay-mcp-server
uv sync

Local run:

NEXI_ALIAS=your_alias NEXI_SECRET_KEY=your_secret uv run nexi-xpay-mcp-server

License

MIT

Metadata

Release files for nexi-xpay-mcp-server 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nexi-xpay-mcp-server 1.2.1
File Size Uploaded Provenance Actions
nexi_xpay_mcp_server-1.2.1.tar.gz 9.6 kB Without provenance Details for nexi_xpay_mcp_server-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nexi-xpay-mcp-server 1.2.1
File Interpreter ABI Platform Actions
nexi_xpay_mcp_server-1.2.1-py3-none-any.whl Python 3 none any Details for nexi_xpay_mcp_server-1.2.1-py3-none-any.whl

Total release size: 21.4 kB

Release files / nexi_xpay_mcp_server-1.2.1.tar.gz

Download URL nexi_xpay_mcp_server-1.2.1.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eee81bafa0036ca50e86a8f103eba4ffb0c874277543e3585fbe11161b2d5b28
BLAKE2b-256 checksum
How to use checksums
6fa059d4e20f3c52b8fa1ee18617e5fcac91bdb992c43265cf02c2631278275f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / nexi_xpay_mcp_server-1.2.1-py3-none-any.whl

Download URL nexi_xpay_mcp_server-1.2.1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ed1c8ec593cec2f897283c50aacd7ca74309d415cb86b7ab0cbd4799c1751da
BLAKE2b-256 checksum
How to use checksums
9855a6a8d5431ee34fb1c52bbc90416f869dda8f981bd184faddc817db09536b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for nexi-xpay-mcp-server 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page