Why use ATXP for MCP servers?
- Earn per-use: Charge per tool call with flexible pricing.
- Programmatic enforcement: Require payment before execution with a single router and helper.
- No user accounts or API keys: Agents pay from their own wallets; you don’t manage users, keys, or invoices.
- Works everywhere: Compatible with major hosts (e.g., Claude, Goose), local dev, and your own infrastructure.
Build your first monetized MCP server
1
Install the library
Install the ATXP express SDK in your project:
2
Set up your wallet
Create an ATXP account and set your wallet address in an environment variable. The best way to do this is to create a
.env
file in the root of your project and add the following line:.env
Never commit wallet address to version control. It is a good idea to add your
.env
to your .gitignore
file to prevent it from being committed.3
Integrate with your MCP server
Add the ATXP Express router to your MCP server:
4
Add payment requirements to tools
In each MCP tool exposed by your server that you want to charge per-use for, require payment before tool execution:
5
Connect to your MCP server
Deploy your changes and connect to your MCP server with a host such as Goose or Claude to start paying for tool calls.
Running your MCP server locally? See on how to connect to a local MCP server.
Resources
Monetized MCP tutorial
Follow a complete tutorial to build your first paid MCP server with ATXP integration, from initial setup to live deployment.
Build an agent using paid MCP servers
Get started building an ATXP‑powered agent that pays for MCP server tool calls.
Join the community
Join the ATXP community on Discord to ask questions, share your projects, and get help from the team.