MULTI-APP TOOLKIT
Build with DealMachine + ScrapeGraphAI
- Multi-app
- One MCP session
- 8 actions
- 1 triggers
- Managed auth
MCP
One MCP session, both toolsets
One session gives your product or agent every DealMachine and ScrapeGraphAI tool at once — connect once, list tools, and call them like any single-app session.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "dealmachine,scrapegraphai",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// One list, both toolsets: DealMachine and ScrapeGraphAI tools arrive
// together, each keyed by its own app's slug.
// e.g. run Add Lead:
const result = await mcp.callTool({
name: "dealmachine-add-lead",
arguments: {
addressType: 10,
},
})import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const externalUserId = "{external_user_id}" // any stable ID for this user in your system
const [dealmachineTools, scrapegraphaiTools] =
await Promise.all([
pd.components.list({ app: "dealmachine" }),
pd.components.list({ app: "scrapegraphai" }),
])
// One external user owns both connected accounts, so either app's tools
// run on their behalf with the same externalUserId.curl "https://api.pipedream.com/v1/connect/{project_id}/components?app=dealmachine" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}"
curl "https://api.pipedream.com/v1/connect/{project_id}/components?app=scrapegraphai" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}"
# Connect both accounts to the same external_user_id, then
# configure and invoke either app's tools on that user's behalf.ARCHITECTURE
One user, two connected accounts
Your user connects each account once, under whatever ID they already have in your product. The two stay independent — either can be revoked on its own — and your code reaches both through that one user.
Your product
external_user_id
{external_user_id}Pipedream Connect
Managed identity
Auth · tools · routing
DealMachine
Connected account
ScrapeGraphAI
Connected account
TOOLS
DealMachine tools
The DealMachine tools this pairing puts in reach, each one running on your user's own connected account.
Actions
-
Add Lead
actionAdd a lead to your team's account. See the documentationWritev0.0.2 -
Add Tags to Lead
actionAdd tags(s) to the lead. See the documentationWritev0.0.2 -
Create Note
actionCreate a note for the lead. See the documentationWritev0.0.2 -
List Lead Id Options
actionRetrieves available options for the Lead Id field.Read-onlyv0.0.1 -
List Tag IDs Options
actionRetrieves available options for the Tag IDs field.Read-onlyv0.0.1
TOOLS
ScrapeGraphAI tools
The ScrapeGraphAI tools this pairing puts in reach, each one running on your user's own connected account.
Actions
-
Start Local Scraper
actionExtract content from HTML content using AI by providing a natural language prompt and the HTML content. See the documentationWritev0.0.2 -
Start Markdownify
actionConvert any webpage into clean, readable Markdown format. See the documentationRead-onlyv0.0.2 -
Start Smart Scraper
actionExtract content from a webpage using AI by providing a natural language prompt and a URL. See the documentation.Writev0.0.2
Triggers
No ScrapeGraphAI triggers are available yet.
MULTI-APP
Works with more apps
The combinations customers connect alongside these two — nothing here is limited to a pair.
REFERENCE
Toolkit details
- x-pd-app-slug
- dealmachine,scrapegraphai
- Primary app
- DealMachine (dealmachine)
- Second app
- ScrapeGraphAI (scrapegraphai)
- Authentication
- API key + API key
- Available actions
- 8
- Available triggers
- 1