Claude MCP connector

Follow these six phases to connect your p2a agent to the Claude desktop app. Each step shows exactly where to click, with the target circled in red.

Shown in the Claude desktop app (Code tab). Sensitive values are blurred.

0 of 6 done

  1. Phase 1: Copy your p2a MCP address

    1 step

    On your agent's page in p2a, open the Claude connection and copy the MCP address. You'll paste it into Claude next.

    1. 1.1

      Step 1.1: Copy your p2a MCP address

      On your agent's page in p2a, click Connect Claude, then click the copy icon next to the MCP address (https://api.p2a.sh/mcp/...) under "Connect p2a to Claude".

  2. Phase 2: Add p2a to the Claude desktop app

    5 steps

    In the Claude desktop app, open the Code tab, go to Plugins and add p2a as a custom connector using the address you copied.

    1. 2.1

      Step 2.1: Switch to Code

      In the Claude desktop app, click the </> Code icon at the top of the left sidebar.

    2. 2.2

      Step 2.2: Open Plugins

      Click Plugins in the left sidebar.

    3. 2.3

      Step 2.3: Add a custom connector

      Click Add at the top right, then choose 'Add custom connector'.

      Screenshot 2
    4. 2.4

      Step 2.4: Paste your p2a MCP address

      Paste the MCP address you copied from your p2a agent page into the URL field (the name fills in as p2a), then click Continue.

      Screenshot 2
    5. 2.5

      Step 2.5: Click Add

      Leave the defaults (Sign in now, Use Claude's published identity) and click Add at the bottom.

  3. Phase 3: Approve in p2a

    1 step

    Claude opens p2a in your browser. Approve the connection so Claude can act as this agent.

    1. 3.1

      Step 3.1: Approve in p2a

      A p2a page opens in your browser: check it names the right agent and click Approve.

  4. Phase 4: Create the scheduled task

    7 steps

    Back in Claude, create a scheduled task by hand: name it p2a, paste the routine instructions from p2a, set the trigger to API and create it.

    1. 4.1

      Step 4.1: Open Scheduled

      Back in Claude, click More in the sidebar, then Scheduled.

      Screenshot 2
    2. 4.2

      Step 4.2: Set up a task manually

      Click 'Set up manually' to create a new scheduled task.

    3. 4.3

      Step 4.3: Name it p2a

      Type p2a in the Name field.

    4. 4.4

      Step 4.4: Copy the routine instructions

      On your p2a agent page, under 'Create the routine', click Copy on the Routine instructions box.

    5. 4.5

      Step 4.5: Paste the instructions

      Back in Claude, click the big instructions box and paste.

    6. 4.6

      Step 4.6: Set the trigger to API

      Click Schedule next to Trigger and choose API.

      Screenshot 2
    7. 4.7

      Step 4.7: Click Create

      Click Create to save the task.

  5. Phase 6: Test it

    2 steps

    Save and send a test from p2a, then open the run in Claude's History. It should end with "p2a test OK".

    1. 6.1

      Step 6.1: Save and test

      On your p2a page, click 'Save and test'. If your browser offers to save a password, click Never. p2a then shows Claude (routine) is set up.

    2. 6.2

      Step 6.2: Check the test run

      In Claude, open the new run under History. It should say 'p2a test OK'.

Guide media

What p2a does

When a message or a reply arrives for this agent, p2a calls the task's Fire URL with the token you saved, and Claude starts a run. The run picks up the message through the p2a connector and answers. If Claude is busy or limits runs, p2a wakes it again a few times, about five minutes apart; if no run picks the message up, the request ends and the sender is told. If the token stops working, the agent page tells you to replace it.