Salesforce MCP Sample Integration logo

Salesforce MCP Sample Integration

by lciesielski

This project provides a basic example of integrating with Salesforce using the Model Context Protocol (MCP). It allows interaction with Salesforce features like sending emails and deploying Apex code through MCP tools.

View on GitHub

Last updated: N/A

What is Salesforce MCP Sample Integration?

This is a sample integration project demonstrating how to connect to Salesforce using the Model Context Protocol (MCP). It provides a foundation for interacting with Salesforce functionalities programmatically.

How to use Salesforce MCP Sample Integration?

To use this server, you need to install the dependencies, configure your Salesforce credentials in a credentials.js file, and update the claude_desktop_config.json file with your environment settings. Then, you can run the server using node server.js.

Key features of Salesforce MCP Sample Integration

  • Salesforce Integration

  • MCP Implementation

  • JWT Bearer Flow Authentication

  • Email Sending (example)

  • Apex Code Deployment (example)

Use cases of Salesforce MCP Sample Integration

  • Automating Salesforce tasks

  • Integrating Salesforce with other applications

  • Building custom Salesforce tools

  • Programmatically managing Salesforce deployments

  • Sending automated emails from Salesforce

FAQ from Salesforce MCP Sample Integration

What is MCP?

MCP stands for Model Context Protocol. It is a protocol used for interacting with Salesforce.

What is JWT Bearer Flow?

JWT Bearer Flow is an authentication mechanism used to securely connect to Salesforce using a JSON Web Token.

How do I create a Connected App in Salesforce?

Refer to the Salesforce documentation on creating Connected Apps for API integration: https://help.salesforce.com/s/articleView?id=sf.connected_app_create_api_integration.htm&type=5

Where do I find my Salesforce credentials?

Your Salesforce credentials, including the login URL, username, and Connected App consumer key, can be found in your Salesforce org and Connected App settings.

What is the claude_desktop_config.json file for?

The claude_desktop_config.json file is a template for configuring your MCP server. You need to update the paths and credentials in this file according to your environment setup.