Salesforce

I Tried Salesforce's Metadata Grounding MCP Server (Beta)

Salesforce has a hosted MCP server in Beta called Metadata Grounding, and I spent this afternoon, November 19, 2026, turning it on in a Developer Edition org, connecting it to Claude, and then checking every answer it gave me against the org itself. This post walks through what it is, the exact steps I took, what came back, where it matched the org and where it did not, and where I think it actually helps.

Understanding Metadata Grounding

MCP, the Model Context Protocol, is the standard way an AI assistant like Claude connects to outside tools and data. Metadata Grounding is an MCP server that Salesforce hosts for you. You turn it on in your org, connect your AI assistant to it, and the assistant can read your org's setup metadata: objects, fields, flows, permission sets, validation rules, record types, profiles, sharing rules and so on.

The key word there is metadata. It reads how your org is built, not the records inside it. There is no tool for SOQL queries and no tool for reading Leads, Accounts or any other data. It is powered by Salesforce Catalog, which indexes your org's metadata, and that is why Catalog has to be on first.

Setting It Up

Here are the steps in the order I did them.

Turning On the Salesforce Catalog

In the main Setup menu (not Data Cloud Setup), use Quick Find to open Feature Manager. Next to Salesforce Catalog, click Enable, accept the terms, and confirm. Salesforce Help says the initial full sync usually takes about an hour, and the Metadata Grounding MCP server is available after that sync finishes. Help also notes Catalog is not billed in Developer Edition orgs.

Waiting for the Sync

When I tried to activate the server before the sync was done, the activation came back with a FUNCTIONALITY_NOT_ENABLED error. After the sync, it worked.

Activating the MCP Server

In Setup, use Quick Find to open MCP Servers and activate Metadata Grounding. (If you script your setup, the same switch is a Tooling API object called McpServerAccess. With the Salesforce CLI that means sf data create record --use-tooling-api -s McpServerAccess. Leave off --use-tooling-api and you get a NOT_FOUND error that looks like a feature problem but is really just the wrong API.)

Creating an External Client App

Create an External Client App for the connection. Mine requires PKCE, has the client secret set to optional, has the MCP scope and the refresh token scope, and uses https://claude.ai/api/mcp/auth_callback as the callback URL. You will need its consumer key in the connector step.

Copying the Server URL

On the MCP Servers page, open Metadata Grounding and use Copy Server URL. It has the form https://api.salesforce.com/platform/mcp/v1/d/<your My Domain prefix>/develop/platform/metadata-grounding. Copy it from Setup rather than building it by hand, because the gateway returns the same 401 error for a real path and a made-up one, so guessing tells you nothing.

Adding a Custom Connector in claude.ai

  1. In claude.ai, open Customize, then Connectors.
  2. Click Add custom connector.
  3. Give the connector a name, for example Metadata Grounding, and paste the server URL you copied from Setup.
  4. claude.ai checks the server. When I did this, it said it couldn't determine how the server signs in. Choose Continue anyway.
  5. Under Authentication, choose Sign in now.
  6. Under OAuth client, choose Use your own OAuth client. Paste the External Client App's consumer key into OAuth client ID and leave OAuth client secret (optional) blank.
  7. Continue. Salesforce opens its Allow Access page. Click Allow.
  8. Back in claude.ai, the connector shows Connected. The whole connector step took me about three minutes.

A small tip: the tools only showed up in Claude Code sessions I started after the connector was connected. A session that was already open did not pick them up.

Using the Three Tools

The server lists three tools, and they are designed to be used together.

Table of the three Metadata Grounding (Beta) tools: describe_metadata lists metadata types or returns a type's JSON Schema with its filterable properties; search_metadata does plain-English search inside a metadata type with optional parent and property filters; query_metadata returns full records for identifiers or all children of a parent.

describe_metadata tells you what you can ask about. Called with an empty request, it gave me a catalog of about 80 metadata types, things like ApexClass, Flow, SObject, SObjectField, PermissionSet, ValidationRule, RecordType, Profile, SharingRule and UserRole. Called with a type name like Flow, it returned that type's schema, including which properties are filterable. For Flow those were createdByName, isActive, processType, status, triggerObject and triggerType.

search_metadata finds things inside a single type, and query_metadata pulls the full details once you have an identifier.

Asking Questions and Reviewing the Answers

All of my calls were read-only. Here is what I tried.

The biggest lesson came from search. When I searched fields for "fields that track lead qualification" with no parent filter, I got 15 results and none of them were on Lead. The word "track" seemed to win, and I got things like tracking number fields on Shipment and Opportunity. When I searched for "lead qualification status rating" with Lead set as the parent, every result was a real Lead field.

Side-by-side search_metadata results. Left, no parent filter, query fields that track lead qualification: 15 results, none on Lead, such as EmailMessage.IsTracked and Shipment.TrackingNumber. Right, parent set to Lead, query lead qualification status rating: Rating, Id, LeadSource, Status and CleanStatus, all real Lead fields.

The same thing happened with flows. Asking for "flows that run on Lead" with no filter gave me 15 packaged standard flows for things like appointment booking and field service, none of them triggered by Lead. Adding the triggerObject filter gave the right answer, which was none.

Here is part of what a query actually returns, for the Lead Status field.

Excerpt of the query_metadata response for Lead.Status, with the org id replaced by a placeholder: type picklist, required true, nillable false, picklistEnumOrId 18, length 255. The picklist values are not included, only an id.

Notice that the picklist values are not in there. You get an id, "18", instead of Open - Not Contacted, Working - Contacted and so on.

Checking It Against the Org

I compared the answers to the org with the Salesforce CLI, signed in as the System Administrator user. I ran sf sobject describe on Lead, SOQL and Tooling API queries for the record types, and a query on FlowDefinitionView for triggered flows. Then a short script compared the 68 field records from the MCP server to the 62 fields in the CLI describe, field by field.

Salesforce CLI comparison output. MCP returned 68 Lead fields and the CLI describe 62; nothing was only in the CLI; six fields were only in MCP: DoNotCall, GenderIdentity, HasOptedOutOfEmail, HasOptedOutOfFax, LastTransferDate and Pronouns. Ten id and lookup fields showed length 15 in MCP versus 18 in the CLI. A second panel shows the three record type ids MCP listed on Lead returning zero rows in SOQL, with the describe showing only the Master record type.

Finding What Matched

Finding What Did Not Match

Putting It to Work

I think the real value is grounding an AI assistant in your org's actual configuration. If you're building something, writing documentation, or planning a change, the assistant can look up your real objects, fields, flows and settings instead of guessing from general Salesforce knowledge or from what a typical org looks like.

What worked best for me was a simple pattern.

  1. Start with describe_metadata to see the types and which properties you can filter on.
  2. Search with a parent identifier or a property filter, not with plain English alone.
  3. Use query_metadata to pull the full details once you have the identifiers.
  4. Still verify anything important in Setup or with the CLI before you act on it.

That last step matters. Today's run had three record type ids the org doesn't have, and six fields that the admin user's describe didn't show. I wrote more about why you check AI output against the source in Why AI Should Not Grade Its Own Work.

Knowing the Limits

I tested this in a single Developer Edition org on November 19, 2026. If you try it in your own org and see something different, I'd like to hear about it.

Sources

My goal at Velza is to train, inspire, and equip you for your own AI pivot.

About the Author

Mike Wheeler

Mike Wheeler is the founder of Velza Training & Consulting and an O’Reilly published author. He has taught more than 500,000 learners across edX, LinkedIn Learning, Pearson, and Udemy, and he teaches live AI and Salesforce certification prep at Velza.

More about Mike and Velza