# AWS + Microsoft Graph API — Pipedream Connect

> Connect a user's AWS and Microsoft Graph API accounts and expose tools for both apps directly in your product or your agent.

- Apps: AWS (`aws`) + Microsoft Graph API (`microsoft_graph_api`)
- This page (HTML): https://pipedream.com/apps/aws/integrations/microsoft-graph-api
- One `external_user_id` owns both connected accounts, and each account stays independently revocable.

## One session, both toolsets (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: aws,microsoft_graph_api`
- `x-pd-app-slug` takes a comma-separated list, so `aws,microsoft_graph_api` is one session on one transport. Both toolsets arrive from a single `listTools()`, and a tool is called exactly as it would be in a single-app session.

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_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": "aws,microsoft_graph_api",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// One list, both toolsets: AWS and Microsoft Graph API tools arrive
// together, each keyed by its own app's slug.

// e.g. run CloudWatch Logs - Put Log Event:
const result = await mcp.callTool({
  name: "aws-cloudwatch-logs-put-log-event",
  arguments: {
    region: "AWS Region",
    logGroupName: "CloudWatch Log Groups",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## Both apps from your backend

```ts
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 [awsTools, microsoftGraphApiTools] =
  await Promise.all([
    pd.components.list({ app: "aws" }),
    pd.components.list({ app: "microsoft_graph_api" }),
  ])

// One external user owns both connected accounts, so either app's tools
// run on their behalf with the same externalUserId.
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## AWS

- API slug: `aws` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Infrastructure & Cloud
- Website: https://aws.amazon.com/
- App page (HTML): https://pipedream.com/apps/aws
- Tools: 23 actions · 11 triggers

Full tool list, API proxy, and SDK quickstart: https://pipedream.com/apps/aws.md

### Actions (top 8 of 23)

- [CloudWatch Logs - Put Log Event](https://pipedream.com/apps/aws/actions/cloudwatch-logs-put-log-event.md) — `aws-cloudwatch-logs-put-log-event`
- [DynamoDB - Create Table](https://pipedream.com/apps/aws/actions/dynamodb-create-table.md) — `aws-dynamodb-create-table`
- [DynamoDB - Execute Statement](https://pipedream.com/apps/aws/actions/dynamodb-execute-statement.md) — `aws-dynamodb-execute-statement`
- [DynamoDB - Get Item](https://pipedream.com/apps/aws/actions/dynamodb-get-item.md) — `aws-dynamodb-get-item`
- [DynamoDB - Put Item](https://pipedream.com/apps/aws/actions/dynamodb-put-item.md) — `aws-dynamodb-put-item`
- [DynamoDB - Query](https://pipedream.com/apps/aws/actions/dynamodb-query.md) — `aws-dynamodb-query`
- [DynamoDB - Scan](https://pipedream.com/apps/aws/actions/dynamodb-scan.md) — `aws-dynamodb-scan`
- [DynamoDB - Update Item](https://pipedream.com/apps/aws/actions/dynamodb-update-item.md) — `aws-dynamodb-update-item`

### Triggers (top 4 of 11)

- [New SNS Messages](https://pipedream.com/apps/aws/triggers/new-sns-messages.md) — `aws-new-sns-messages`
- [New Inbound SES Emails](https://pipedream.com/apps/aws/triggers/new-emails-sent-to-ses-catch-all-domain.md) — `aws-new-emails-sent-to-ses-catch-all-domain`
- [New Deleted S3 File](https://pipedream.com/apps/aws/triggers/s3-deleted-file.md) — `aws-s3-deleted-file`
- [New DynamoDB Stream Event](https://pipedream.com/apps/aws/triggers/new-dynamodb-stream-event.md) — `aws-new-dynamodb-stream-event`

## Microsoft Graph API

- API slug: `microsoft_graph_api` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Data Analytics
- Website: https://developer.microsoft.com/en-us/graph
- Managed OAuth scopes: `User.Read` · `email` · `offline_access` · `openid` · `profile` · `User.ReadWrite.All` · `Files.Read` · `Files.Read.All` · `Files.ReadWrite` · `Calendars.Read` · `Calendars.Read.Shared` · `Calendars.ReadWrite` · `Calendars.ReadWrite.Shared` · `Directory.ReadWrite.All` · `Notes.ReadWrite.All` · `Tasks.Read` · `Tasks.ReadWrite` · `Tasks.Read.Shared` · `Tasks.ReadWrite.Shared` · `Team.ReadBasic.All` · `Mail.Send` · `Sites.ReadWrite.All` · `People.Read`
- App page (HTML): https://pipedream.com/apps/microsoft-graph-api
- Tools: 0 actions · 0 triggers

Full tool list, API proxy, and SDK quickstart: https://pipedream.com/apps/microsoft-graph-api.md

---

- AWS: https://pipedream.com/apps/aws.md · Microsoft Graph API: https://pipedream.com/apps/microsoft-graph-api.md
- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
