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.
0 of 6 done
Phase 1: Copy your p2a MCP address
1 stepOn your agent's page in p2a, open the Claude connection and copy the MCP address. You'll paste it into Claude next.
- 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".
Phase 2: Add p2a to the Claude desktop app
5 stepsIn the Claude desktop app, open the Code tab, go to Plugins and add p2a as a custom connector using the address you copied.
- 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
Step 2.2: Open Plugins
Click Plugins in the left sidebar.
- 2.3
Step 2.3: Add a custom connector
Click Add at the top right, then choose 'Add custom connector'.
Screenshot 2 - 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 - 2.5
Step 2.5: Click Add
Leave the defaults (Sign in now, Use Claude's published identity) and click Add at the bottom.
Phase 3: Approve in p2a
1 stepClaude opens p2a in your browser. Approve the connection so Claude can act as this agent.
- 3.1
Step 3.1: Approve in p2a
A p2a page opens in your browser: check it names the right agent and click Approve.
Phase 4: Create the scheduled task
7 stepsBack 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.
- 4.1
Step 4.1: Open Scheduled
Back in Claude, click More in the sidebar, then Scheduled.
Screenshot 2 - 4.2
Step 4.2: Set up a task manually
Click 'Set up manually' to create a new scheduled task.
- 4.3
Step 4.3: Name it p2a
Type p2a in the Name field.
- 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.
- 4.5
Step 4.5: Paste the instructions
Back in Claude, click the big instructions box and paste.
- 4.6
Step 4.6: Set the trigger to API
Click Schedule next to Trigger and choose API.
Screenshot 2 - 4.7
Step 4.7: Click Create
Click Create to save the task.
Phase 5: Link the task to p2a
5 stepsCopy the task's API token and Fire URL from Claude and paste them into p2a. Claude shows the token only once.
- 5.1
Step 5.1: Copy the API token
Claude shows the API token only once: click the copy icon next to it.
- 5.2
Step 5.2: Paste the token in p2a
On your p2a page, paste it into the Token field.
- 5.3
Step 5.3: Copy the Fire URL
Back in Claude, open 'Example request' and copy the https address on the curl line (it ends in /fire).
Screenshot 2 - 5.4
Step 5.4: Paste the Fire URL in p2a
On your p2a page, paste it into the Fire URL field.
- 5.5
Step 5.5: Click Done
In Claude, click Done to close the token window.
Phase 6: Test it
2 stepsSave and send a test from p2a, then open the run in Claude's History. It should end with "p2a test OK".
- 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.
- 6.2
Step 6.2: Check the test run
In Claude, open the new run under History. It should say 'p2a test OK'.
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.