# Google Contacts — Pipedream Connect

> Google Contacts is a contact management service developed by Google. This service is backed by the Google People API.

- API slug: `google_contacts` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: CRM
- Website: https://contacts.google.com
- Managed OAuth scopes: `profile` · `email` · `https://www.googleapis.com/auth/contacts.readonly` · `https://www.googleapis.com/auth/contacts` · `https://www.googleapis.com/auth/contacts.other.readonly`
- This page (HTML): https://pipedream.com/apps/google-contacts
- Tools: 12 actions · 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: google_contacts`

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

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

const { tools } = await mcp.listTools()

// e.g. run Create Contact:
const result = await mcp.callTool({
  name: "google_contacts-create-contact",
  arguments: {
    firstName: "First Name",
    middleName: "Middle Name",
  },
})
```

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

## API proxy

For a Google Contacts 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://people.googleapis.com/v1/people/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9wZW9wbGUuZ29vZ2xlYXBpcy5jb20vdjEvcGVvcGxlL21l?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: "google_contacts-create-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_contacts: { authProvisionId: "apn_xxxxxxx" },
    firstName: "First Name",
    middleName: "Middle Name",
  },
})
```

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

## Actions (12)

### `google_contacts-create-contact` — Create Contact (Write)

Creates a contact. Provide at least one of the optional fields (name, email, phone, etc.). See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/create-contact.md

### `google_contacts-create-contact-group` — Create Contact Group (Write)

Creates a new contact group for the authenticated user. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/create-contact-group.md

### `google_contacts-delete-contact` — Delete Contact (Write)

Deletes a contact. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/delete-contact.md

### `google_contacts-delete-contact-group` — Delete Contact Group (Write)

Deletes an existing contact group. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/delete-contact-group.md

### `google_contacts-get-contact` — Get Contact (Read-only)

Get information about a contact. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/get-contact.md

### `google_contacts-list-contact-groups` — List Contact Groups (Read-only)

Lists the authenticated user's contact groups. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/list-contact-groups.md

### `google_contacts-list-contacts` — List Contacts (Read-only)

Lists all contacts of the authenticated user. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/list-contacts.md

### `google_contacts-modify-contact-group-members` — Modify Contact Group Members (Write)

Adds contacts to or removes contacts from a contact group. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/modify-contact-group-members.md

### `google_contacts-search-contacts` — Search Contacts (Read-only)

Searches the authenticated user's contacts by name, email address, phone number, organization, or other contact fields. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/search-contacts.md

### `google_contacts-search-directory-people` — Search Directory People (Read-only)

Searches for people in the authenticated user's Google Workspace directory. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/search-directory-people.md

### `google_contacts-update-contact` — Update Contact (Write)

Updates a contact. Provide at least one of the optional fields (name, email, phone, etc.) to update. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/update-contact.md

### `google_contacts-update-contact-group` — Update Contact Group (Write)

Updates the name of an existing contact group. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/actions/update-contact-group.md

## Triggers (4)

### `google_contacts-contact-group-updated` — Contact Group Updated (Polling)

Emit new event when a contact group is updated. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/triggers/contact-group-updated.md

### `google_contacts-contact-updated` — Contact Updated (Polling)

Emit new event when a contact is updated. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/triggers/contact-updated.md

### `google_contacts-contact-created` — New Contact Created (Polling)

Emit new event when a new contact is created. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/triggers/contact-created.md

### `google_contacts-contact-group-created` — New Contact Group Created (Polling)

Emit new event when a new contact group is created. See the documentation

Full schema: https://pipedream.com/apps/google-contacts/triggers/contact-group-created.md

---

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