---
schema_version: "1"
id: e7d8f9290d46b6ab964a78c52dc8144b4ca48daab41f5cd2e966219a95b95f02
title: "Quick Start: Metadata API Context MCP Tools"
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_salesforce_api_mcp_intro.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_salesforce_api_mcp_intro.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d9ffa54a8512fe2200202658d1c1d999eb910659eec426d6a15de01e3a3cf99f
description: The Metadata API Context MCP tools provide contextual information about Salesforce metadata types to help generate accurate Salesforce metadata files when working with the Metadata API.
---
# Quick Start: Metadata API Context MCP Tools

The Metadata API Context MCP tools provide contextual information about Salesforce metadata types to help generate accurate Salesforce metadata files when working with the Metadata API.

<table class="editionTable" border="0" summary="Salesforce editions needed for the documented functionality" width="100%"><tbody class="tbody"><tr><td class="subHead">Available in: <strong class="ph b">Professional</strong>, <strong class="ph b">Enterprise</strong>, <strong class="ph b">Unlimited</strong>, <strong class="ph b">Developer</strong>, <strong class="ph b">sandbox</strong>, and <strong class="ph b">scratch orgs</strong> that have API enabled.</td></tr></tbody></table>

  

![Note](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note.png)

#### Note

Metadata API Context MCP Tools are a beta service that is subject to the Beta Services Terms at [Agreements - Salesforce.com](https://www.salesforce.com/company/legal/agreements/) or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the [Product Terms Directory](https://ptd.salesforce.com/). Use of this beta service is at the Customer's sole discretion.

For a given metadata type, these tools give you:

- complete field definitions
- valid values
- constraints
- examples

They’re a useful resource for creating valid Salesforce metadata XML files when you need to generate them programmatically, or want to ensure accuracy.

Table 1. MCP Details
| Server Name | Tool Name | Tool Description |
| --- | --- | --- |
| platform/salesforce-api-context | get\_metadata\_type\_sections | Returns valid context sections available for a metadata type. |
| platform/salesforce-api-context | get\_metadata\_type\_context | Returns metadata context for the requested metadata type sections. |
| platform/salesforce-api-context | get\_metadata\_type\_fields | Returns field names and field-column metadata for a metadata type. |
| platform/salesforce-api-context | get\_metadata\_type\_fields\_properties | Returns field properties for the specified field. |
| platform/salesforce-api-context | search\_metadata\_types | Searches metadata type names for a provided string and returns a list of matching metadata types. |

These MCP tools are part of the Salesforce API Context MCP Server, which is [hosted in Salesforce](https://help.salesforce.com/s/articleView?id=platform.hosted_mcp_servers.htm&type=5&language=en_US).

With this feature, you might make API calls to your org. API usage counts against your org’s API quota.

- **[Prerequisites: Set Up Salesforce Hosted MCP Servers](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_mcp_server_eca.htm)**  
    The Salesforce API Context MCP server is one of many Salesforce Hosted MCP Servers. To use the Salesforce API Context MCP server, you must first set up the Salesforce Hosted MCP Server.
- **[Step 1: Configure an MCP Client](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_mcp_cursor_configuration.htm)**  
    Configure a client to connect to MCP servers hosted in your Salesforce org. In this quick start guide, we provide guidance on how to configure Agentforce Vibes, Cursor, and Claude.
- **[Step 2: Test Your Connection to the MCP Server](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_mcp_prompt_examples.htm)**  
    Use simple prompts to test your client’s connection to the Salesforce API Context MCP server you configured.
- **[Step 3 (Optional): Configure a Rule](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_mcp_configure_rule.htm)**  
    ​​To help the MCP server function optimally, you can create a rule that guides your AI assistant, such as Agentforce Vibes or Cursor Agent, to call the Metadata API Context MCP tools. An AI rule is a plain-text file like markdown that provides specific instructions, context, or constraints to your AI assistant.