> ## Documentation Index
> Fetch the complete documentation index at: https://paylink-c15dc1ba.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Prerequisites

> Set up your environment and account before implementing Agent to Agent payments

<Steps>
  <Step title="Install PayLink">
    Make sure PayLink is installed in your environment. Follow the [Installation](/get-started/install) guide if you still need to set it up.
  </Step>

  <Step title="Create a PayLink account">
    Ensure you have a PayLink account created. Follow the [Create an account](/get-started/create-an-account) guide if you haven't already.
  </Step>

  <Step title="Create two separate projects">
    This walkthrough showcases an example of how to monetize an MCP server and how to use that MCP in an agent, allowing the agent to pay for tool invocations.

    You'll need to create two separate projects on PayLink. Each project will automatically create wallets attached to those projects. Create one project called **MCP** and another called **AGENT**. In real-world applications, these should live on two different accounts, but for testing purposes, you can have them on the same account.

    If you want to learn more about how PayLink organizes **projects** and **wallets**, see the [Project](/resources/project) and [Wallet](/resources/wallet) guides.

    <Frame>
      <img src="https://mintcdn.com/paylink-c15dc1ba/WawOKL5Zn1aR3NcW/images/install/create_project.png?fit=max&auto=format&n=WawOKL5Zn1aR3NcW&q=85&s=1d0f5c21412e916acca5e9bc9409573d" alt="Create project screen in PayLink dashboard" width="2880" height="1800" data-path="images/install/create_project.png" />
    </Frame>
  </Step>

  <Step title="Set up wallet connection strings">
    Navigate to each project's **Wallets** tab in the PayLink dashboard and copy the connection token for each wallet.

    <Frame>
      <img src="https://mintcdn.com/paylink-c15dc1ba/6uARyJRyZJo1VjlB/images/wallet/wallet.png?fit=max&auto=format&n=6uARyJRyZJo1VjlB&q=85&s=2dea8e40b73c3be3347d4f675c64aac1" alt="Wallet dashboard showing connection tokens" width="2880" height="1800" data-path="images/wallet/wallet.png" />
    </Frame>

    **In your MCP project**, create an `.env` file with the following:

    ```bash theme={null}
    MCP_WALLET_CONNECTION_STRING="your_mcp_wallet_connection_string"
    ```

    **In your agent project**, create an `.env` file with the following:

    ```bash theme={null}
    WALLET_CONNECTION_STRING="your_agent_connection_string"
    ```

    Replace the placeholder values with the actual connection tokens from your PayLink projects.
  </Step>
</Steps>

### Next Steps

Now that you have your environment configured and wallet connection token ready, you can:

* Build a basic [MCP server without payment](/agent-to-agent/mcp-agent-unmonetized) to understand the fundamentals
* Add [monetization to your MCP server](/agent-to-agent/mcp-agent-monetized) to require payment from agents
