Skip to Content
User Guide🧩 Available MCP ServersSalesforce - API Context

Salesforce - API Context

Connect to Salesforce’s official Hosted MCP API Context server to retrieve context needed for Salesforce Metadata API and Tooling API usage.

Key Features

  • Retrieve Data API and Tooling API context
  • Retrieve metadata types, sections, and field information
  • Search metadata types
  • Explore structure information needed for API tasks

Basic Information

Authentication Method

Uses Salesforce OAuth authentication.

Input Parameters

  • consumerKey (Required): Consumer Key of the Salesforce External Client App (ECA)
  • consumerSecret (Required): Consumer Secret of the Salesforce External Client App (ECA)
  • useSandbox (Optional): Whether to connect to a Salesforce Sandbox environment

Salesforce Setup Method

This Integration requires a Salesforce External Client App (ECA) and an activated Hosted MCP server.

  1. Create an External Client App by following the Salesforce official guide .
  2. Register the Callback URL shown in the AIP OAuth setup screen as the External Client App Callback URL.
  3. Enter the External Client App Consumer Key and Consumer Secret in the AIP consumerKey and consumerSecret fields.
  4. Activate the salesforce-api-context server under Salesforce Setup → API Catalog → MCP Servers. See the Salesforce MCP server activation guide  for details.

Supported MCP Tools

API Context Tools

search_metadata_types

Searches metadata types.

get_metadata_type_sections

Retrieves section information available for a specific metadata type.

get_metadata_type_fields_properties

Retrieves property information for fields of a specific metadata type.

get_metadata_type_fields

Retrieves the field list for a specific metadata type.

get_metadata_type_context

Retrieves context information for a specific metadata type.

get_data_and_tooling_api_context

Retrieves context information for Salesforce Data API and Tooling API usage.

Usage Examples

For example,

  • if you enter a prompt like “Show me the fields available for the Flow metadata type”,
  • the LLM calls the get_metadata_type_fields tool through MCP,
  • and responds in the chat based on the tool result.

Other example prompts:

  • “Check the Tooling API context”
  • “Search the available metadata types”
  • “Show me the properties of a specific metadata field”

Notes

  • Available metadata information depends on your Salesforce permissions.
  • This server focuses on providing context for API-related tasks.
Last updated on