How do I add EveryField to my Salesforce MCP server?

Add the EveryField Apex action as a tool on a Salesforce MCP server, activate that server, then connect Copilot, Claude, or ChatGPT or any other MCP client.

Add the EveryField tool

  1. In Setup, search for MCP Servers and click MCP Servers.
  2. Click Add MCP Server, then choose Create Salesforce MCP Server.
    Create Salesforce MCP Server dialog with Label, Name, and Description fields filled for a custom server that includes the EveryField tool.
    Create Salesforce MCP Server dialog.
  3. Enter a Label, Name, and Description (for example, “Includes the EveryField tool”), then click Create.
  4. You are now on the MCP server page. In the upper right, click Add Server Assets and choose Add Tools.
  5. From the dropdown in the upper left, choose Apex actions.
  6. Search for EveryField, click Get EveryField Fields (or View EveryField), then click Add Tool, and click Save.
    Add Tools dialog filtered to Apex actions, showing Get EveryField Fields (EveryFieldFields) ready to be added as a tool.
    Select Get EveryField Fields under Apex actions, then Add Tool.
  7. Activate the MCP server. Back on the MCP Servers list, find the server you just created and click Activate. The status has to say Active before any client can see its tools. Creating the server and adding the tool does not activate it. If ChatGPT later says “No tools available for this app,” this step was skipped.

Optional: Many people prefer to keep a single MCP server. If that is you, add the other out-of-the-box tools you want before you activate. Activate each server you expect a client to call.

Connect to ChatGPT

ChatGPT connection will require External Client App with a consumer key and secret.

  1. In ChatGPT, open Plugins (or Settings → Apps) and add a custom MCP server. Give it a name. Set authentication to OAuth.
  2. Paste the server URL. The name after custom/ is the API name of the MCP server you created above, and that server must already be Active.
    • Production, when the org blocks login.salesforce.com: https://api.salesforce.com/platform/mcp/v1/d/<MY-DOMAIN>/custom/<SERVER-NAME>
    • Production, when login.salesforce.com is allowed: https://api.salesforce.com/platform/mcp/v1/custom/<SERVER-NAME>
    • Developer Edition: https://api.salesforce.com/platform/mcp/v1/d/<MY-DOMAIN>/develop/custom/<SERVER-NAME>
    • Sandbox: https://api.salesforce.com/platform/mcp/v1/sandbox/custom/<SERVER-NAME>

    Set the Resource field to that same full URL. A resource that stops at /d/<MY-DOMAIN>/ is not a server.

  3. Open OAuth advanced settings. Set the registration method to User-Defined OAuth Client. Do not use Dynamic Client Registration or Client Identifier Metadata Document. Copy the Callback URL ChatGPT shows on that panel. Uncheck OIDC enabled. In Scopes, enter only mcp_api. Leave the dialog open.
  4. In Salesforce, go to Setup → External Client App Manager → New External Client App. Enable OAuth and paste the callback URL from ChatGPT. Do not reuse a callback copied from a guide.
  5. Move only these two scopes into Selected OAuth Scopes:
    • Access Salesforce hosted MCP servers (mcp_api)
    • Perform requests at any time (refresh_token, offline_access)

    Do not add the generic Manage user data via APIs (api) scope. It does not authorize Hosted MCP. On the ChatGPT side, the scope box stays mcp_api only. If ChatGPT also requests openid, Salesforce rejects the login.

  6. Under Flow Enablement, check only Enable Authorization Code and Credentials Flow. Leave “Require user credentials in the POST body” unchecked. Leave Client Credentials, Device Flow, JWT Bearer Flow, and Token Exchange Flow unchecked.
  7. Under Security, check:
    • Require secret for Web Server Flow
    • Require Proof Key for Code Exchange (PKCE) (often already required and locked)
    • Issue JSON Web Token (JWT)-based access tokens for named users

    Leave Require secret for Refresh Token Flow, Enforce Refresh Token IP Allowlist, and Require Demonstrating Proof of Possession (DPoP) unchecked.

  8. Click Create (or Save). Open Settings → Consumer Key and Secret and copy both values.
  9. Back in ChatGPT, paste the Consumer Key into OAuth Client ID and the Consumer Secret into OAuth Client Secret. ChatGPT marks the secret optional. Salesforce still requires it. Click Create.

A new External Client App can take up to 30 minutes before Salesforce will issue a token. If you change scopes or security settings, start the ChatGPT connection again so Salesforce issues a fresh token.

If Salesforce shows OAUTH_APPROVAL_ERROR_GENERIC, read the address bar. invalid_scope means ChatGPT requested a scope the External Client App does not allow. Uncheck OIDC enabled and set the ChatGPT scope to mcp_api only. The callback URL must match the one ChatGPT shows for this connector, character for character.

If the account connects but ChatGPT says No tools available for this app, the MCP server is not activated, or ChatGPT scanned it before you activated it. Activate the server in Setup, then delete the ChatGPT app and create it again. Connecting the account does not rescan tools.

To use it, start a new chat from Try in chat on the plugin page. The action needs a Salesforce record Id, not a person’s name. For example: “Use EveryField on record 00QXXXXXXXXXXXXXXX.”

EveryField in ChatGPT, showing 48 Account fields with Populated selected and a search for shipping. ShippingStreet, ShippingCity, and the other shipping fields are listed.
EveryField in ChatGPT after the tool runs. Claude shows the same card.

Need the Lightning component instead? See the FAQ for adding EveryField to a record page.