---
title: "Creating Views with AI using the GravityKit MCP"
date: 2026-06-16
updated: 2026-10-19
author: "Mono Kit"
link: "https://www.gravitykit.com/docs/gravityview/advanced/build-views-with-ai/"
category: "GravityView > Advanced"
---

[GravityView 3.0](https://www.gravitykit.com/gravityview-3-0/) lets you build and manage your Views by talking to an AI assistant. This feature is opt-in, and no AI connection is enabled by default. Describe the View you want in plain language, such as “create a table View from my contact form, newest first,” and the assistant builds it for you.

AI View creation requires [GravityKit MCP](https://www.gravitykit.com/mcp/), a free, open-source MCP server that connects an AI assistant, such as Claude, to your WordPress site. MCP, short for [Model Context Protocol](https://modelcontextprotocol.io/docs/getting-started/intro), is an open standard introduced by Anthropic for connecting AI applications to external systems.

### Watch a brief demo

https://www.youtube.com/watch?v=dR3HazT0oYM 

## Things you can ask for

Once the connection is in place, you can ask your AI assistant to:

- Create a View from a Gravity Forms form and choose its layout (table, list, and more).
- Add, configure, reorder, and remove fields and columns.
- Set up the Search Bar, including its filters and input types.
- Configure widgets and adjust View settings.
- Switch layouts, change themes, or display entries as a card grid.

The tools that remove a field, widget, or search field, delete a View, or change a View's status are switched off until you allow them, as [Destructive product tools](https://www.gravitykit.com/docs/gravitykit-mcp/configuration/#destructive-product-tools) explains. The other editing tools stay on, and an edit that replaces a whole area of a View can still drop fields from it.

The assistant acts as a WordPress user, so it can do only what that account is allowed to do. New Views are created as drafts by default.

## Before you start

Make sure you have the following in place:

- **GravityView 3.0 or later**, with **GravityKit Foundation** active. Foundation is what exposes the `gv_` View tools.
- **WordPress 6.9 or later**, which has the Abilities API these tools use.
- **The Gravity Forms REST API** enabled, so the assistant can also work with forms and entries. Step 1 covers this.
- **An AI assistant that can run a local MCP server.** This guide uses [Claude Desktop](https://claude.com/download).
- **A WordPress account that can edit Views.** An administrator can. Another role also needs `unfiltered_html`, as [Troubleshooting GravityKit MCP](https://www.gravitykit.com/docs/gravitykit-mcp/troubleshooting/) explains.
- **Node.js 18 or later** on your computer, only if you connect by editing a configuration file in Step 3.
- HTTPS is recommended. Local development URLs (`localhost`, `*.test`, and `*.local`) also work over plain HTTP, and [a remote plain-HTTP site](https://www.gravitykit.com/docs/gravitykit-mcp/troubleshooting/#h-the-site-is-on-plain-http) needs one more setting.

## How it works

GravityView publishes its View-building capabilities as “abilities” through GravityKit Foundation and the [WordPress Abilities API](https://developer.wordpress.org/apis/abilities-api/). The GravityKit MCP server, running on your computer, reads them from your site and presents them to your assistant as tools named with a `gv_` prefix. They work next to the server's Gravity Forms tools (`gf_`), so you can create a form and build a View for it in the same conversation.

When you ask for something, the assistant calls those tools on your behalf, signed in as your WordPress user. The server saves no copy of your data, though an error message it writes to your AI app's log can include a value from the request. On an HTTPS site, the connection to your site is encrypted.

## Step 1: Enable the Gravity Forms REST API

The server's Gravity Forms tools reach your site through the Gravity Forms REST API, which is off until you turn it on. The GravityView tools don't need it, but with it on, the assistant can also create the form a View is built from.

- In WordPress, go to **Forms**, then **Settings**, then **REST API**.
- Check **Enable access to the API**, then save.

![The Gravity Forms REST API settings screen with "Enable access to the API" turned on, showing the Authentication (API version 2) section and an empty API Keys table with an Add Key button.](https://www.gravitykit.com/wp-content/uploads/2026/06/CleanShot-2026-06-16-at-14.38.22@2x-1024x554.png)

## Step 2: Create a WordPress application password

An application password is a dedicated, revocable password that lets an external app sign in as you without using your main login. The GravityKit MCP uses one to connect.

- Go to **Users**, then **Profile**, and scroll to **Application Passwords**.
- Enter a name, such as `GravityKit MCP`, and click **Add Application Password**.
- Copy the generated password and keep it somewhere safe. You won't be able to see it again.

Your WordPress username plus this password are your credentials, and access follows your WordPress capabilities.

![The WordPress Application Passwords screen, showing the new password name field, the Add Application Password button, and a table listing an existing application password named "GravityKit MCP Abilities".](https://www.gravitykit.com/wp-content/uploads/2026/06/CleanShot-2026-06-16-at-14.45.24@2x-1024x522.png)

## Step 3: Connect the GravityKit MCP to your AI assistant

### Claude Desktop extension

On macOS and Windows, [download the GravityKit MCP extension](https://github.com/GravityKit/MCP/releases/latest/download/gravitykit-mcp.mcpb) and open the file. Claude Desktop installs it and asks for your website address, your WordPress username, and the application password from Step 2. Leave its two delete settings off unless you want the assistant to remove or delete things; [Getting started with GravityKit MCP](https://www.gravitykit.com/docs/gravitykit-mcp/getting-started/) describes each setting.

### Edit the configuration file

For other AI apps, or to set up Claude Desktop by hand, add the server to the app's MCP configuration. In Claude Desktop, open **Settings**, go to **Developer**, and click **Edit Config** to find `claude_desktop_config.json`. Open it in a text editor and add the server:

```
{
  "mcpServers": {
    "gravitykit-mcp": {
      "command": "npx",
      "args": ["-y", "@gravitykit/mcp"],
      "env": {
        "GRAVITY_FORMS_BASE_URL": "https://yoursite.com",
        "GRAVITY_FORMS_CONSUMER_KEY": "wordpress_username",
        "GRAVITY_FORMS_CONSUMER_SECRET": "wordpress_application_password"
      }
    }
  }
}
```

Fill in the three values:

- `GRAVITY_FORMS_BASE_URL` is your site's URL, with no trailing slash.
- `GRAVITY_FORMS_CONSUMER_KEY` is your WordPress username (or the username of a new account you created for the AI).
- `GRAVITY_FORMS_CONSUMER_SECRET` is the application password from Step 2.

Save the file, then quit Claude Desktop completely and open it again. `npx` downloads and runs `@gravitykit/mcp` on demand, so there's nothing to install separately.

**Note**: If your local site uses a self-signed SSL certificate, add `"GRAVITY_FORMS_ALLOW_SELF_SIGNED_CERTS": "true"` to the `env` block. Use this for local development only. The Claude Desktop extension has no field for this setting.

## Step 4: Build a View by chatting

With the connection live, describe what you want and let the assistant do the work. A few examples to get you started:

- “Create a View from my Contact Us form as a table, showing name, email, and date, newest first.”
- “Add a search bar that filters by status and date.”
- “Switch this View to the list layout.”
- “Enable the Vantage theme and show entries as a three-column card grid.”

The assistant creates the View, as a draft by default, and reports back. Open it in WordPress to review, fine-tune, and publish when you're happy with it.

![A Claude Desktop chat where the user asks to build a table View from a job application form (with name, position, experience, location, and email columns, a search bar, and Modern Styles), and Claude responds using the GravityKit MCP's GravityView tools to find the form and plan the View.](https://www.gravitykit.com/wp-content/uploads/2026/06/CleanShot-2026-06-16-at-14.53.02@2x-1024x819.png)

## Tips and notes

- New Views are drafts by default, but changes to an existing View are saved as soon as the assistant makes them. To try changes on a published View, ask the assistant to clone it first and work on the copy. The copy is a draft and keeps every GravityView setting of the original, including Advanced Filter conditions and Multiple Forms joins.
- Not sure what's possible? Ask the assistant directly, for example, “What GravityView actions can you take?”

## Troubleshooting

- **The GravityView tools are missing.** Confirm GravityView 3.0 or later and GravityKit Foundation are active and the site runs WordPress 6.9 or later. Then ask the assistant to reload abilities, or restart the app.
- **A GravityView tool says “Sorry, you are not allowed to execute this ability.”** The WordPress user the assistant signs in as can't edit Views. A role other than Administrator needs `unfiltered_html` along with the View capabilities. [Troubleshooting GravityKit MCP](https://www.gravitykit.com/docs/gravitykit-mcp/troubleshooting/) lists what each tool checks.
- **You see authentication errors.** Re-check your WordPress username and application password. If the errors come from the Gravity Forms tools, also confirm the Gravity Forms REST API is enabled (Step 1).
- **Your local site uses a self-signed certificate.** Set `GRAVITY_FORMS_ALLOW_SELF_SIGNED_CERTS` to `true` in the `env` block.
- **A tool is disabled as destructive.** The tools that remove, delete, or change a View's status are switched off by default. See [Destructive product tools](https://www.gravitykit.com/docs/gravitykit-mcp/configuration/#destructive-product-tools).

GravityKit MCP has its own docs, covering [setup for other AI apps](https://www.gravitykit.com/docs/gravitykit-mcp/getting-started/), [every setting](https://www.gravitykit.com/docs/gravitykit-mcp/configuration/), [every tool](https://www.gravitykit.com/docs/gravitykit-mcp/available-tools/), and [troubleshooting](https://www.gravitykit.com/docs/gravitykit-mcp/troubleshooting/).