SuperAPIAI Directory

mcp-salesforce-example

github.com · AI developer platforms

mcp-salesforce-example is a Salesforce integration example project based on the Model Context Protocol (MCP), used to demonstrate how to interact with Salesforce features through MCP tools, such as sending emails and deploying Apex code. The project runs with Node.js and npm (or yarn), requires a Salesforce org in which a Connected App can be created, and completes authentication via JWT Bearer Flow. Users need to create a credentials.js file in the utils directory, exporting a getSalesforceCredentials() function to provide credentials such as the login URL, username, the Connected App's Consumer Key, and the private key; the repository also provides a claude_desktop_config.json example as an MCP server configuration template. The project is positioned as an example and development reference and does not provide complete productized feature documentation.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose: This project provides a basic example of integration with Salesforce, demonstrating how to use the Model Context Protocol (MCP) to wrap some Salesforce capabilities as MCP tools for invocation by MCP-capable clients. The materials explicitly mention interaction capabilities including sending emails and deploying Apex code.

Main capabilities: Interact with Salesforce features through MCP tools; the examples cover two types of operations: sending emails and deploying Apex code. The project itself is example-oriented and does not describe additional tools or the full feature scope.

Usage:

  1. Environment preparation: Install Node.js and npm (or yarn), and prepare a Salesforce org in which a Connected App can be created.
  2. Install dependencies: Run npm install (or yarn install).
  3. Configure Salesforce credentials: You must create credentials.js in the utils folder (path: ./utils/credentials.js), exporting a getSalesforceCredentials() function that returns the connection information required for JWT Bearer Flow authentication. The example given in the materials includes loginUrl, username, clientId (the Connected App's Consumer Key), and privateKey (the private key used to sign the JWT assertion, which must include the BEGIN/END lines). A Connected App for JWT authentication must be configured in Salesforce, with the appropriate scopes allowed and the relevant user profiles pre-authorized.
  4. Configure the MCP server: The repository includes an example claude_desktop_config.json, which can serve as a configuration template; paths and credentials must be updated according to the actual environment.
  5. Run the server: The materials mention a "Running the Server" section and a high-quality video, but do not provide the specific run command text.

Applicable scenarios: Suitable as a development reference for learning about or validating the integration approach between MCP and Salesforce, especially the JWT Bearer Flow-based authentication configuration and the MCP tool invocation process.

Limitations: The materials do not describe the license, maintenance status, supported MCP client scope, error handling, security best practices, or production readiness; the specific command to run the server, the complete tool list, and testing methods are not yet provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools