Skip to main content

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 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 that handles payment processing for MCP tools. Arguments Returns
router
Express Router
Express middleware router function that can be used with app.use().
Example usage