# Firebase / Firestore + WordPress Integrations: Connect with Zapier MCP
> zapier.com/apps/firebase/integrations/wordpress
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Firebase / Firestore and WordPress in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · media`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "wordpress", owner: "me" });

const { data } = await zapier.runAction({
  app: "wordpress",
  actionType: "write",
  action: "media",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action wordpress write media \
  --inputs '{}'
```

## Firebase / Firestore

### Identity
Firebase Realtime Database and Google Cloud Firestore are flexible databases that give you the ability to easily store and sync app data at global scale.

- App slug: firebase
- Operations published here: 6 (2 events, 2 functions, 2 queries)

### Authentication
Zapier connects to Firebase / Firestore via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection firebase
```

### Capabilities

#### Events (2)

Events fire when something happens in Firebase / Firestore. Use them to start a run.

##### New Child Object in a Firebase Realtime Database
Triggers when a new child object is discovered within a specific path.

- Type: read · Key: `firebaseQuery`
- Requires: path
- Optional: orderBy, direction
- SDK: `runAction({ app: "firebase", actionType: "read", action: "firebaseQuery" })`
- CLI: `npx zapier-sdk run-action firebase read firebaseQuery`

##### New Document Within a Firestore Collection
Triggers when a  Structured Query 
      returns new documents within a Cloud Firestore collection.

- Type: read · Key: `firestoreQuery`
- Requires: collection
- SDK: `runAction({ app: "firebase", actionType: "read", action: "firestoreQuery" })`
- CLI: `npx zapier-sdk run-action firebase read firestoreQuery`

#### Functions (2)

Functions change something in Firebase / Firestore.

##### Create or Replace Firebase Realtime Database Record
Creates or replaces a child object within your Firebase Realtime Database.

- Type: write · Key: `firebaseRecordCreate`
- Requires: path
- Optional: convertNumbers, newId, data
- SDK: `runAction({ app: "firebase", actionType: "write", action: "firebaseRecordCreate" })`
- CLI: `npx zapier-sdk run-action firebase write firebaseRecordCreate`

##### Create Cloud Firestore Document
Creates a new document within a Cloud Firestore collection.

- Type: write · Key: `firestoreRecordCreate`
- Requires: collection
- Optional: convertNumbers, newId, data
- SDK: `runAction({ app: "firebase", actionType: "write", action: "firestoreRecordCreate" })`
- CLI: `npx zapier-sdk run-action firebase write firestoreRecordCreate`

#### Queries (2)

Queries read from Firebase / Firestore and return data. They change nothing.

##### Find Firebase Realtime Database Record
Finds a child object using a custom query that you provide.

- Type: search · Key: `firebaseQuery`
- Requires: path, orderBy, equalTo
- Optional: wrapInQuotes, direction
- SDK: `runAction({ app: "firebase", actionType: "search", action: "firebaseQuery" })`
- CLI: `npx zapier-sdk run-action firebase search firebaseQuery`

##### Find Cloud Firestore Document
Finds a document using a  Structured Query 
      within a collection.

- Type: search · Key: `firestoreQuery`
- Requires: collection, query
- SDK: `runAction({ app: "firebase", actionType: "search", action: "firestoreQuery" })`
- CLI: `npx zapier-sdk run-action firebase search firestoreQuery`

## WordPress

### Identity
WordPress is web software you can use to create a beautiful website or blog. Nearly 20% of the top 10 million websites and over 60 million people have chosen WordPress to power the place on the web they call "home".

- App slug: wordpress
- Operations published here: 17 (6 events, 6 functions, 3 queries, 2 search-or-write actions)

### Authentication
Zapier connects to WordPress via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection wordpress
```

### Capabilities

#### Events (6)

Events fire when something happens in WordPress. Use them to start a run.

##### New Comment
Triggers when a new comment is added.

- Type: read · Key: `comment`
- Requires: nothing
- Optional: status
- SDK: `runAction({ app: "wordpress", actionType: "read", action: "comment" })`
- CLI: `npx zapier-sdk run-action wordpress read comment`

##### New Media
Triggers when a new media is uploaded.

- Type: read · Key: `media`
- Requires: nothing
- SDK: `runAction({ app: "wordpress", actionType: "read", action: "media" })`
- CLI: `npx zapier-sdk run-action wordpress read media`

##### New Post
Triggers when a new post is created.

- Type: read · Key: `post`
- Requires: nothing
- Optional: post_status, post_type
- SDK: `runAction({ app: "wordpress", actionType: "read", action: "post" })`
- CLI: `npx zapier-sdk run-action wordpress read post`

##### Updated Post
Triggers when a post is updated.

- Type: read · Key: `updated_post_hook`
- Requires: nothing
- Optional: post_types, post_statuses, should_status_change
- SDK: `runAction({ app: "wordpress", actionType: "read", action: "updated_post_hook" })`
- CLI: `npx zapier-sdk run-action wordpress read updated_post_hook`

##### Updated User
Triggers when a user is updated.

- Type: read · Key: `updated_user_hook`
- Requires: nothing
- SDK: `runAction({ app: "wordpress", actionType: "read", action: "updated_user_hook" })`
- CLI: `npx zapier-sdk run-action wordpress read updated_user_hook`

##### New User
Triggers when a new user is created.

- Type: read · Key: `user`
- Requires: nothing
- SDK: `runAction({ app: "wordpress", actionType: "read", action: "user" })`
- CLI: `npx zapier-sdk run-action wordpress read user`

#### Functions (6)

Functions change something in WordPress.

##### Upload Media
Upload a new media file, which can be used as featured media.

- Type: write · Key: `media`
- Requires: file
- Optional: post, filename, title, author, caption, description, alt_text, comment_status, ping_status
- SDK: `runAction({ app: "wordpress", actionType: "write", action: "media" })`
- CLI: `npx zapier-sdk run-action wordpress write media`

##### Create Post
Creates a new post.

- Type: write · Key: `post`
- Requires: post_type
- SDK: `runAction({ app: "wordpress", actionType: "write", action: "post" })`
- CLI: `npx zapier-sdk run-action wordpress write post`

##### Create Tag
Creates a new tag.

- Type: write · Key: `tag`
- Requires: name
- Optional: description, slug
- SDK: `runAction({ app: "wordpress", actionType: "write", action: "tag" })`
- CLI: `npx zapier-sdk run-action wordpress write tag`

##### Update Post
Updates a post.

- Type: write · Key: `update_post`
- Requires: post_type
- SDK: `runAction({ app: "wordpress", actionType: "write", action: "update_post" })`
- CLI: `npx zapier-sdk run-action wordpress write update_post`

##### Create User
Creates a new user.

- Type: write · Key: `user`
- Requires: email, username, password
- Optional: first_name, last_name, name, nickname, description, url, roles
- SDK: `runAction({ app: "wordpress", actionType: "write", action: "user" })`
- CLI: `npx zapier-sdk run-action wordpress write user`

##### Update User
Updates an existing user.

- Type: write · Key: `user_update`
- Requires: id
- Optional: email, first_name, last_name, name, nickname, description, url, roles, meta
- SDK: `runAction({ app: "wordpress", actionType: "write", action: "user_update" })`
- CLI: `npx zapier-sdk run-action wordpress write user_update`

#### Queries (3)

Queries read from WordPress and return data. They change nothing.

##### Find Post
Finds a post.

- Type: search · Key: `post`
- Requires: title
- SDK: `runAction({ app: "wordpress", actionType: "search", action: "post" })`
- CLI: `npx zapier-sdk run-action wordpress search post`

##### Find User
Finds a user with a default user role. Does not search users with custom roles created by plugins.

- Type: search · Key: `search_user`
- Requires: search
- Optional: copy_search_keyword
- SDK: `runAction({ app: "wordpress", actionType: "search", action: "search_user" })`
- CLI: `npx zapier-sdk run-action wordpress search search_user`

##### Find Tag
Finds a tag.

- Type: search · Key: `tag`
- Requires: name
- SDK: `runAction({ app: "wordpress", actionType: "search", action: "tag" })`
- CLI: `npx zapier-sdk run-action wordpress search tag`

#### Search or Write Actions (2)

These operations search for a match first, and create one only if nothing is found.

##### Find or Create User
Find or Create User

- Type: search_or_write · Key: `search_user`
- Requires: search, email, username, password
- Optional: copy_search_keyword, first_name, last_name, name, nickname, description, url, roles
- SDK: `runAction({ app: "wordpress", actionType: "search_or_write", action: "search_user" })`
- CLI: `npx zapier-sdk run-action wordpress search_or_write search_user`

##### Find or Create Tag
Finds a tag by name or creates it if it does not exist.

- Type: search_or_write · Key: `tag`
- Requires: name
- Optional: description, slug
- SDK: `runAction({ app: "wordpress", actionType: "search_or_write", action: "tag" })`
- CLI: `npx zapier-sdk run-action wordpress search_or_write tag`

## Frequently asked questions about automating with Firebase / Firestore and WordPress

### How can I integrate Firebase with WordPress?

You can integrate Firebase with WordPress by using plugins or custom code to connect your WordPress site to your Firebase project. This typically involves setting up authentication, databases, and other Firebase services through a series of API keys and configuration settings in your WordPress dashboard.

### What are some common use cases for integrating Firestore with WordPress?

Common use cases include real-time data updates on WordPress sites, user authentication using Firebase Auth, and syncing content between Firestore and the WordPress database. Additionally, you might want to use Cloud Functions for Firebase to automate tasks such as sending notifications based on changes in your Firestore database.

### Can I trigger a function in Firebase when a post is published in WordPress?

Yes, you can trigger a Cloud Function when a post is published in WordPress. This typically involves setting up a webhook in WordPress that sends data to a Cloud Function endpoint whenever a post status changes or is created, allowing you to automate actions based on these triggers.

### Is it possible to sync user authentication between Firebase Auth and WordPress?

We provide ways to sync user authentication between Firebase Auth and WordPress by leveraging custom plugins or scripts. This setup allows users authenticated through Firebase Auth to access certain areas of a WordPress site seamlessly, using functions that handle token exchanges and verification processes.

### How do I handle real-time updates from Firestore in my WordPress site?

To enable real-time updates from Firestore on your WordPress site, you can either use JavaScript libraries provided by Firebase or server-side code that listens for update events from Firestore. Implementing this allows for dynamic content changes without requiring page reloads.

### What security considerations should I keep in mind when integrating Firestore with WordPress?

When integrating Firestore with WordPress, ensure that your API keys and credentials are securely stored and managed. Implementing proper security rules in Firestore is crucial to prevent unauthorized access. Additionally, monitor read/write operations closely to detect any suspicious activity.

### Can I use Firestore as the main database for my WordPress site?

It's not typical or recommended due to compatibility issues; however, you can use it for specific functionalities like storing additional data or providing real-time capabilities alongside the main MySQL database of WordPress. It requires custom development efforts and careful planning.

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Firebase / Firestore integrations: zapier.com/apps/firebase/integrations.md
- WordPress integrations: zapier.com/apps/wordpress/integrations.md
- Full page: zapier.com/apps/firebase/integrations/wordpress
- SDK: npmjs.com/package/@zapier/zapier-sdk