# Microsoft OneNote — Pipedream Connect

> One cross-functional notebook for all your notetaking needs.

- API slug: `onenote` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Productivity
- Website: https://www.microsoft.com/en-us/microsoft-365/onenote/digital-note-taking-app
- Managed OAuth scopes: `User.Read` · `email` · `offline_access` · `openid` · `profile` · `Notes.Create` · `Notes.ReadWrite.All`
- This page (HTML): https://pipedream.com/apps/onenote
- Tools: 11 actions · 0 triggers

## Connect via MCP (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: onenote`

```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": "onenote",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Create Notebook:
const result = await mcp.callTool({
  name: "onenote-create-notebook",
  arguments: {
    displayName: "Display name",
  },
})
```

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

## API proxy

For a Microsoft OneNote endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://graph.microsoft.com/v1.0/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9ncmFwaC5taWNyb3NvZnQuY29tL3YxLjAvbWU?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```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 result = await pd.actions.run({
  id: "onenote-create-notebook",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    onenote: { authProvisionId: "apn_xxxxxxx" },
    displayName: "Display name",
  },
})
```

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

## Actions (11)

### `onenote-create-notebook` — Create Notebook (Write)

Creates a notebook. See the documentation

Full schema: https://pipedream.com/apps/onenote/actions/create-notebook.md

### `onenote-create-page` — Create Page (Write)

Creates a page. See the documentation

Full schema: https://pipedream.com/apps/onenote/actions/create-page.md

### `onenote-create-section` — Create Section (Write)

Creates a section. See the documentation

Full schema: https://pipedream.com/apps/onenote/actions/create-section.md

### `onenote-get-page` — Get Page (Read-only)

Gets a page. See the documentation

Full schema: https://pipedream.com/apps/onenote/actions/get-page.md

### `onenote-get-page-content` — Get Page Content (Read-only)

Retrieve the body content of a OneNote page as HTML or Markdown. Use Get Page for the page's metadata (title, parent section, URLs, timestamps); use this action when you need the actual page content. Use Search Pages first to resolve a page name to a pageId. Set convertToMarkdown to true for…

Full schema: https://pipedream.com/apps/onenote/actions/get-page-content.md

### `onenote-list-notebook-id-options` — List Notebook ID Options (Read-only)

Retrieves available options for the Notebook ID field.

Full schema: https://pipedream.com/apps/onenote/actions/list-notebook-id-options.md

### `onenote-list-page-id-options` — List Page ID Options (Read-only)

Retrieves available options for the Page ID field.

Full schema: https://pipedream.com/apps/onenote/actions/list-page-id-options.md

### `onenote-list-section-id-options` — List Section ID Options (Read-only)

Retrieves available options for the Section ID field.

Full schema: https://pipedream.com/apps/onenote/actions/list-section-id-options.md

### `onenote-search-notebooks` — Search Notebooks (Read-only)

Searches for notebooks. See the documentation

Full schema: https://pipedream.com/apps/onenote/actions/search-notebooks.md

### `onenote-search-pages` — Search Pages (Read-only)

Search and list OneNote pages. Supports free-text title search, OData filtering, expansion of related resources, and pagination. Use search for natural-language queries against page titles (e.g., weekly notes, feeding schedule). Translated server-side to a case-insensitive contains filter on the…

Full schema: https://pipedream.com/apps/onenote/actions/search-pages.md

### `onenote-search-sections` — Search Sections (Read-only)

Searches for sections. See the documentation

Full schema: https://pipedream.com/apps/onenote/actions/search-sections.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
