Microsoft Graph API icon

CONNECT APP

Build with Microsoft Graph API

RESTful web API that enables you to access Microsoft Cloud service resources

Data Analytics

  • OAuth

MCP

Give your agent Microsoft Graph API tools

Every Microsoft Graph API action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Microsoft Graph API account for each tool call — you store no tokens.

// 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": "microsoft_graph_api",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()
// Every tool arrives with its own input schema — run one with mcp.callTool().

API PROXY

Call the Microsoft Graph API API directly

For an endpoint with no pre-built tool, the Connect proxy forwards your request to the Microsoft Graph API API with the connected user's credentials attached. You store no tokens and write no refresh logic.

const resp = await pd.proxy.get({
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  accountId: "apn_xxxxxxx",
  url: "https://graph.microsoft.com/v1.0/me",
})

// Any allowed Microsoft Graph API endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.

SDK

Run Microsoft Graph API actions from your backend

Connect a user's Microsoft Graph API account once, then discover and run its tools on their behalf from your own code — TypeScript, Python, or plain HTTP.

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 tools = await pd.components.list({
  app: "microsoft_graph_api",
  componentType: "action",
})

TOOLS

Microsoft Graph API actions

On-demand operations your product or agent can configure and run on behalf of a connected user.

No Microsoft Graph API actions are available yet.

EVENTS

Microsoft Graph API triggers

Event sources your backend can deploy for users and receive through a webhook.

No Microsoft Graph API triggers are available yet.

MULTI-APP

Use Microsoft Graph API with other popular apps

Most products don't stop at one integration. Pair Microsoft Graph API with the other apps your users rely on, and ship use cases that span both.

Google Drive icon Google Drive Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere. Google Sheets icon Google Sheets Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device. Microsoft OneDrive icon Microsoft OneDrive Microsoft OneDrive lets you store your personal files in one place, share them with others, and get to them from any device. Google Calendar icon Google Calendar With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next. GitHub icon GitHub Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world. Google Docs icon Google Docs Use Google Docs to create, edit and collaborate on online documents. Slack icon Slack Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof. OpenAI (ChatGPT) icon OpenAI (ChatGPT) OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper. n8n.io icon n8n.io The workflow automation platform that doesn't box you in, that you never outgrow. Databricks icon Databricks Databricks is the lakehouse company, helping data teams solve the world’s toughest problems. AWS icon AWS Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services. Freshdesk icon Freshdesk Customer support software

REFERENCE

App details

Reference metadata for the Microsoft Graph API connector in the Pipedream registry.

App slug
microsoft_graph_api
Authentication
OAuth
Categories
Data Analytics
Actions
0
Triggers
0
API proxy
Available

OAuth scopes

These are the scopes Pipedream's managed Microsoft Graph API OAuth client requests when one of your users connects an account. Supply your own OAuth client to request a different set.

  • 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