Skip to main content
Use this guide when you want to monetize an MCP server but keep implementation control in your own codebase.

Who this is for

  • Teams building custom MCP server behavior
  • Teams that need custom auth and entitlement logic
  • Teams that want SDK-level control instead of hosted MCP Pay

What you will achieve

By the end, your MCP server uses the SolvaPay SDK to enforce purchases and manage monetized tool access.

Prerequisites

  • A SolvaPay account
  • A product and at least one plan in the SolvaPay Console
  • A TypeScript MCP server project

Steps

  1. Complete SDK quick start to set up the base paywall flow.
  2. Follow the MCP integration guide.
  3. Configure identity with custom auth if your server uses external auth.
  4. Add usage billing with usage events where needed.

Verify

  • Protected MCP tools require an eligible purchase
  • Valid purchases allow tool execution
  • Usage events are recorded for billable calls