Overview
The @atxp/express package is used to create MCP servers in Express with per-tool call payment processing via ATXP. You can see a complete example of how to use this package to build a monetized MCP server in the MCP server quickstart.This package depends on types and utilities from @atxp/server. All shared types like
ATXPPaymentDestination
and payment utilities are documented in the server package. Commonly used functions and types like ATXPArgs
and requirePayment
are re-exported from @atxp/express for convenience.Installation
Functions
atxpExpress
Express middleware router function that can be used with
app.use()
.