Connecting to the MCP Server

Overview

This article explains how to connect your AI assistant to Gravity Forms by enabling the MCP in WordPress, creating an Application Password, and configuring your AI client.

Prerequisites

WordPress 6.9 or higher with Gravity Forms installed and active.

Enable the Gravity Forms MCP

  1. In WordPress, go to Forms → Settings → MCP.
Image showing Gravity Forms MCP Settings.
  1. Switch the toggle and save.

Create an Application Password

  1. In WordPress, go to Users → Profile → Application Passwords.
  2. Enter a recognizable name (e.g., “Claude MCP” or “Cursor MCP”).
  3. Click Add New Application Password.
  4. Copy the generated password. It is shown only once. Save it somewhere safe.
Image showing WordPress Application Passwords.
You’ll use this username and password in your AI client configuration.

Note: Generate the Application Password from a dedicated user account with only the capabilities the MCP Server needs. Refer to Creating a User for MCP Access for more information.

Claude Desktop Setup

  1. Download and install Claude Desktop.
  2. Go to Settings → Developer.
  3. Click Edit Config next to “Local MCP servers”.
MCP Settings in Claude Desktop
  1. Add the following configuration, replacing the values for “yoursite.com”, “your-username” and “your-api-password” with your own values:
{
    "mcpServers": {
        "gravityforms": {
            "command": "npx",
            "args": [
                "-y",
                "@automattic/mcp-wordpress-remote"
            ],
            "env": {
                "WP_API_URL": "https://yoursite.com/wp-json/mcp/gravityforms",
                "WP_API_USERNAME": "your-username",
                "WP_API_PASSWORD": "your-api-password",
                "OAUTH_ENABLED": "false"
            }
        }
    }
}
  1. Save the file.
  2. Quit and restart Claude Desktop.

Refer to the Claude official documentation for more information.

Other AI Clients

Most MCP-compatible AI clients use a JSON configuration file. Use the same configuration format as Claude Desktop above, adapting the file location to match your client:

  • Cursor: Add to ~/.cursor/mcp.json or per-project .cursor/mcp.json
  • Claude Code: Add to .mcp.json in your project directory or ~/.claude/mcp.json globally
  • VS Code: Add to .vscode/mcp.json in your project workspace
  • ChatGPT Business: ChatGPT is a cloud client, not a local one. It requires a dedicated endpoint and its own authentication setup. Refer to the Connecting ChatGPT Business to your Gravity Forms MCP article for more information.
  • Other clients: Refer to your client’s MCP setup documentation for the configuration file location

Replace the same values (URL, username, password) for your site and user.

Testing Your Connection

Verify Tools Are Available

Start a new chat with your AI assistant and ask it to list available tools.

Try a Simple Prompt

Image showing Claude Desktop connected to the Gravity Forms MCP

Test the connection with a read-only operation:

  • “List all my forms”
  • “How many submissions does form 1 have?”
  • “Get the details of form 2”

If the assistant responds with data from your site, the connection is working.

Troubleshooting

SymptomLikely CauseFix
401 / Authorization failedWrong or missing Application Password or usernameRecreate the Application Password in WordPress; verify WP_API_USERNAME and WP_API_PASSWORD in your config
The tool isn’t listed / “unknown tool”The tool is disabled in the MCP settings, or the master switch is offGo to Forms → Settings → MCP and enable the master switch and the tool you want
“Permission denied” when running a toolThe WordPress user lacks the required capabilityUse a user/role with the appropriate Gravity Forms capability for that tool
MCP settings show “unavailable”WordPress is older than 6.9Update WordPress to 6.9 or higher
The config file won’t saveInvalid JSON syntaxCheck your JSON formatting (commas, quotes, brackets) using a JSON validator
Client won’t recognize the MCP serverConfig file not saved or client not restartedSave your config file and fully restart your AI client (don’t just close the window)
“No actions are available for this app.” (ChatGPT)ChatGPT scanned tools/list without WordPress Basic auth, or sent only the Application PasswordPut username:application-password in the Access token field, scheme Basic, then Refresh. Do not raise the user to Administrator.
Draft creates, Enable goes to publish review with no login prompt (ChatGPT)ChatGPT does not collect WordPress credentials at Enable timeCredentials must be entered on the create form before the tool scan.
ChatGPT cannot reach the serverCloud client calling a private URLUse a public HTTPS URL. Localhost and LAN URLs will not work.
Used the Claude Desktop JSON / npx config in ChatGPTWrong client typePoint ChatGPT at /wp-json/mcp/gravityforms directly. Do not use @automattic/mcp-wordpress-remote.
OAuth selected in ChatGPT, connection never lists toolsGravity Forms 3.1 has no MCP OAuthUse Access token / API key + Basic, or a local stdio client.
Some checked tools missing from ChatGPT ActionsUser lacks that tool’s capabilitySee the capability map. Count Entries and List Entry Notes need entry-note/view-entries caps; form tools need gravityforms_edit_forms.
App exists but ChatGPT does not call itApp not enabled for the conversationEnable Developer mode in the chat and select the app.

If you need further assistance, please contact our support team.