🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms MCP Server / Agent Data Endpoint Setup Guide

Updated 6 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. Create an access token
  5. The permission model, layer by layer
  6. 1. Read-only by default
  7. 2. The per-form allow-list
  8. 3. Entries stay private until you opt a form in
  9. 4. Writes and triggers are opt-in twice
  10. 5. A rate limit on every token
  11. What an agent can do
  12. The audit log
  13. Privacy and your data
  14. For developers

Video walkthrough

Gravity Forms MCP Server Setup Guide: Let AI Agents Read Forms and Entries with Scoped Tokens
Video setup guide: Gravity Forms MCP Server Watch on YouTube

The Gravity Forms MCP Server / Agent Data Endpoint Premium Add-on turns your site into a secure home for an AI agent to work with your forms. It adds a single, token-scoped Model Context Protocol (MCP) endpoint — the open standard that assistants such as Claude, ChatGPT and Copilot already speak — so an agent can list your forms, read a form’s fields, and, only when you allow it, read entries or submit a form. Everything runs on your own server. The add-on talks to no outside service and needs no account.

The point of the add-on is control. An agent is powerful, and form data is sensitive, so the defaults are deliberately strict: read-only, nothing visible until you say so, and a record of every call. This guide explains what the endpoint is, how to set it up, and how each layer of the permission model keeps your data safe.

What you need

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer. The add-on is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.
  • An active license key for this add-on.
  • An AI agent or client that can speak MCP over HTTP and send a bearer token.

If Gravity Forms is missing or older than 2.9, the add-on shows a notice in the WordPress admin and does nothing else.

Install and activate

  1. Install and activate the add-on like any plugin, after Gravity Forms.
  2. Open Forms → Settings → MCP Endpoint and enter your license key.
  3. The endpoint is on by default once the license is active. Its address is shown on the same screen; it looks like /wp-json/gfmcp/v1/mcp.
The MCP Endpoint settings page: license key, the endpoint switch, the token manager and the audit log
The settings page: the license, the endpoint switch, the access tokens and the audit log in one place.

Create an access token

Every agent connects with its own bearer token. A token is where all the permissions live, so you can give one agent a narrow, read-only view and another the ability to submit a single form, and revoke either at any time without touching the other. On the settings page, under Access tokens, fill in the short form:

  • Name — a label so you can tell your tokens apart in the list and the audit log, such as “Claude agent” or “support bot”.
  • Scopes — what kind of thing the token may do. Leave it on read-only to begin with.
  • Forms — tick only the forms this token is allowed to see. A token never sees a form you did not tick.
  • Rate limit — how many requests per minute this token may make.

When you create the token, the full secret is shown once. Copy it then and give it to your agent; it is never displayed again. Only a hash of the secret is kept, encrypted at rest, so even someone with database access cannot read it back. If a token is ever exposed, revoke it and create a new one.

The token manager: existing tokens with their scopes, forms and rate limit, and the form to create a new scoped token
The token manager: each token lists its scopes, its forms and its rate limit, and you create a new one with the form below.

The permission model, layer by layer

It helps to picture the checks an agent’s request passes through. Each one has to say yes, or the call is refused and the refusal is logged.

1. Read-only by default

A brand-new token holds a single scope: read form definitions. It can discover which of its forms exist and what fields they have, and nothing else. Reading entries, submitting a form and changing an entry are separate scopes you add on purpose. The tool list an agent sees over MCP is filtered to its scopes, so a read-only token is never even offered a write tool.

2. The per-form allow-list

A token can only act on the forms you ticked when you created it. There is no “all forms” wildcard, by design: adding a new form to your site never silently widens what an old token can reach. Ask an allowed form and you get an answer; ask any other form and the endpoint says the token cannot see it.

3. Entries stay private until you opt a form in

Form definitions are structure; entries are people’s data. So even a token with the entries scope and the form on its allow-list cannot read that form’s entries until an administrator turns on the entries opt-in for that specific form. Until you do, the entries are invisible to every token. You control this in each form’s own settings, so the decision sits next to the form it affects.

A form's MCP agent access settings: separate opt-ins for reading entries and for writes
Each form carries its own opt-ins under Form Settings → MCP agent access. Both are off until you turn them on.

4. Writes and triggers are opt-in twice

Submitting a form or changing an entry is a change to your site, so it takes two separate yeses: the administrator switches on the write opt-in for the form, and the token is granted writing on that form. Miss either and the action is refused. That means you can let an agent read widely while allowing it to write to exactly one form.

5. A rate limit on every token

Each token has its own per-minute limit. Go over it and the endpoint replies with the standard “too many requests” status and a Retry-After header telling the agent how long to wait. One noisy agent can never crowd out the others or hammer your database.

What an agent can do

Over MCP the add-on offers a small, clear set of tools, each gated by the scopes above:

  • list_forms and get_form — the forms the token may see, and one form’s fields (id, label, type, required). Only safe structure is returned; your notifications, confirmations and settings never leave the site.
  • list_entries and get_entry — entries for a form, paged, for forms you opted in. Each entry is reduced to its field values, date and status.
  • submit_form — create a new entry by sending values keyed by field id. It runs the real Gravity Forms validation, so a bad submission is rejected the same way a visitor’s would be.
  • update_entry_status — move an entry to active, spam or trash.
The Gravity Forms entry list for a form an agent is allowed to read: the submissions an opted-in agent would see
The entries an opted-in agent reads are your form’s real submissions — exactly what you see in the Gravity Forms entry list.

The audit log

Every call the endpoint handles is written to an audit log you can read on the settings page: which token, what action, which form, when, the outcome (allowed, refused, rate-limited) and the client address. The address is hashed, never stored in the clear, so you keep accountability without keeping raw personal data. Rejected and unauthorized attempts are logged too, so a probe with a bad token leaves a trail.

Privacy and your data

This add-on is a bridge between the WordPress REST API and MCP, and that is all. It makes no outbound HTTP requests of its own, sends your form data to no third party, and stores nothing outside your database. Token secrets are encrypted at rest, client IPs are hashed, and the only address the add-on ever contacts is gravityextra.com, and only to check your license key. Uninstalling the add-on deletes every option it created; your forms and entries, which belong to Gravity Forms, are left untouched.

For developers

A few helpers make the endpoint easy to wire into your own code: gfmcp_endpoint_url() returns the MCP URL, gfmcp_create_token() creates a scoped token and returns the one-time secret, and gfmcp_authenticate() resolves a bearer credential to its token record. A public /wp-json/gfmcp/v1/info route reports the protocol version and whether the endpoint is on, so an agent can discover the server before it authenticates.

Start read-only, grant one scope at a time, keep each token to the forms it truly needs, and watch the audit log. With those habits the MCP Server / Agent Data Endpoint lets you bring an AI agent right up to your forms while keeping a firm, visible hand on exactly what it may touch.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr