# Pocket — Pipedream Connect

> Service for managing a reading list of articles and videos

- API slug: `pocket` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Entertainment
- Website: https://getpocket.com
- This page (HTML): https://pipedream.com/apps/pocket
- Tools: 1 action · 4 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: pocket`

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

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

const { tools } = await mcp.listTools()

// e.g. run Save To Later:
const result = await mcp.callTool({
  name: "pocket-save-to-later",
  arguments: {
    url: "URL",
    title: "Title",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.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: "pocket-save-to-later",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    pocket: { authProvisionId: "apn_xxxxxxx" },
    url: "URL",
    title: "Title",
  },
})
```

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

## Actions (1)

### `pocket-save-to-later` — Save To Later (Write)

Save articles, videos, images and URLs to your Pocket list. See docs here

Full schema: https://pipedream.com/apps/pocket/actions/save-to-later.md

## Triggers (4)

### `pocket-new-archived-item` — New Archived item (Polling)

Emit new event for each archived item.

Full schema: https://pipedream.com/apps/pocket/triggers/new-archived-item.md

### `pocket-new-favorited-item` — New Favorited item (Polling)

Emit new event for each favorited item.

Full schema: https://pipedream.com/apps/pocket/triggers/new-favorited-item.md

### `pocket-new-item` — New Item (Polling)

Emit new event for each added item.

Full schema: https://pipedream.com/apps/pocket/triggers/new-item.md

### `pocket-new-tagged-item` — New Tagged item (Polling)

Emit new event for each tagged item.

Full schema: https://pipedream.com/apps/pocket/triggers/new-tagged-item.md

---

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