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

# Connect the PayPal MCP server

> Connect PayPal's remote MCP server to Spojit for invoices, orders, and transaction insights, with separate production and sandbox endpoints.

PayPal hosts a remote MCP server for merchant tasks such as creating and listing invoices, generating reports, and looking up transaction details. Connect it to Spojit to raise invoices from an order workflow or reconcile payments on a schedule.

<Note>
  Spojit connects to this server through a [custom MCP server](/connectors/remote-mcp-servers/custom) connection, so you add it with **Add custom server** rather than from the connector catalog. PayPal maintains it and decides which tools it offers; see [PayPal's MCP server quickstart](https://developer.paypal.com/ai-tools/mcp-server) for the current list.
</Note>

## Before you start

* A PayPal account for production, or a [PayPal sandbox](https://developer.paypal.com/tools/sandbox/) account for testing.

## Server URL

| Environment | URL                                  |
| ----------- | ------------------------------------ |
| Production  | `https://mcp.paypal.com/mcp`         |
| Sandbox     | `https://mcp.sandbox.paypal.com/mcp` |

Build and test against the sandbox first, then add a second connection for production.

## Connect in Spojit

<Steps>
  <Step title="Add a custom server">
    Go to **Connections** and click **Add custom server**. Enter a **Name** such as `PayPal Sandbox` and paste the **Server URL**.
  </Step>

  <Step title="Keep Auto authentication">
    Leave **Authentication** on **Auto**, choose a visibility, and click **Save & connect**.
  </Step>

  <Step title="Log in to PayPal">
    PayPal opens its login page. Log in with the account for that environment and authorize access. Spojit marks the connection **Connected** and refreshes the token automatically.
  </Step>
</Steps>

## Use it in a workflow

Add a **Connector** node, pick your PayPal server under **Custom Servers**, and choose **Agent Mode** or **Direct Mode**. See [Use a custom server in a workflow](/connectors/remote-mcp-servers/custom#use-a-custom-server-in-a-workflow).

## Troubleshooting

<AccordionGroup>
  <Accordion title="Sign-in fails on the sandbox URL">
    Sandbox connections need sandbox credentials. Log in with a sandbox account from the PayPal Developer Dashboard, not your live account.
  </Accordion>
</AccordionGroup>

## Learn more

* [PayPal MCP server quickstart](https://developer.paypal.com/ai-tools/mcp-server)

<Snippet file="start-free.mdx" />
