Skip to main content

MCP server for Nexi XPay Back Office APIs

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexi_xpay_mcp_server-1.2.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexi_xpay_mcp_server-1.2.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file nexi_xpay_mcp_server-1.2.0.tar.gz.

File metadata

  • Download URL: nexi_xpay_mcp_server-1.2.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for nexi_xpay_mcp_server-1.2.0.tar.gz
Algorithm Hash digest
SHA256 bc248cea8448980ca7ae9ff2541861c770232024cae5e6a6c5ef40520ca6781b
MD5 93c034097888507660db7c51e0a44d58
BLAKE2b-256 a52eaa3f167153624a14cc592a1fd98724aba3c5f59be4079a46ee10f6ef8ce3

See more details on using hashes here.

File details

Details for the file nexi_xpay_mcp_server-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nexi_xpay_mcp_server-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17d5933dc23fcd33c9b665631051cd68e7df3a20ad396423846cb9353fc3d4f2
MD5 fddd87cdee4b6dd4f85a6c0458c0aebd
BLAKE2b-256 8a810d3ca38cd29721a098616e6dea59614054ffaced763614eb925584c9e1a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page