> ## Documentation Index
> Fetch the complete documentation index at: https://docs.atxp.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Proxy

> Use paid MCP servers from clients that don't support payments

Use a paid MCP server from applications or clients that don't natively support payments by using your ATXP connection string as an MCP server that makes payments directly from your ATXP account.

<Note>
  For security, only ATXP-provided MCP servers are currently supported in the MCP Proxy. If you have a use-case for other MCP servers, come talk to us!
</Note>

## How it Works

The client calling an MCP server that requires payment with ATXP needs to be able to pay for that tool. Usually that means the client is using the [@atxp/client SDK](https://www.npmjs.com/package/@atxp/client) to make payments automatically, or an application like Goose is directing the user to a payment URL.

Using your ATXP connection string, you can use ATXP's MCP Proxy to proxy MCP calls to the paid server, and ATXP will automatically make payments to that server from your ATXP account. The client using the proxy never sees any payment requests, because they are paid automatically by the proxy.

## Why use ATXP MCP Proxy?

MCP Proxy is useful if you want to work in a client like Goose using paid MCP servers like [https://image.mcp.atxp.ai](https://image.mcp.atxp.ai) without being prompted for payment links.

<Warning>
  The MCP Proxy is not for publishing your paid MCP server for others to use and pay you. Each end user must use their own ATXP connection string (their own proxy URL), because payments are charged to the account tied to that connection string.

  Never share an MCP Proxy URL or your ATXP connection string.
</Warning>

## Get started with the ATXP MCP Proxy

<Steps>
  <Step title="Set up your account">
    <a href="/developers/monetize/create-account" target="_blank">Create an ATXP account</a> and copy your connection string.

    ```
    https://accounts.atxp.ai?connection_token=<secret>&account_id=<id>
    ```
  </Step>

  <Step title="Construct the MCP Proxy URL">
    Add the URL of the paid server you want to use to the end of the connection string as a `server` parameter (eg `&server=image.mcp.atxp.ai`). The `https://` portion is not required - it will be assumed.

    ```
    https://accounts.atxp.ai?connection_token=<secret>&account_id=<id>&server=image.mcp.atxp.ai
    ```

    <Tip>
      Anyone with your proxy URL can use the configured paid MCP server, with costs paid from *your* ATXP account. Keep your proxy URLs secure, just as you would with your regular ATXP connection string.
    </Tip>
  </Step>

  <Step title="Use the proxy URL from your client">
    * In Goose, select Extensions, then click "+ Add custom extension"
    * Select 'Streamable HTTP\` from the Type dropdown
    * Enter a name and description
    * Enter the MCP Proxy URL as the Endpoint
    * Click 'Add extension'

    Now you can use your tool from your Goose chat sessions.
  </Step>
</Steps>
