Sponsored by Deepsite.site

MCP Salesforce Integration 🚀

Created By
Tyler4good6 months ago
MCP Salesforce is a server that connects AI assistants with Salesforce using secure OAuth authentication. It simplifies the integration process, offering features like dynamic schema discovery and secure token storage for a smooth user experience. 🐙✨
Content

MCP Salesforce Integration 🚀

MCP Salesforce Version License

Welcome to the MCP Salesforce Integration repository! This project provides a complete Model Context Protocol (MCP) server designed specifically for seamless integration with Salesforce and Claude Desktop. Our goal is to simplify the process of connecting Salesforce with your applications, enabling efficient data management and user authentication.

Table of Contents

  1. Introduction
  2. Features
  3. Installation
  4. Usage
  5. Authentication
  6. CRUD Operations
  7. Supported Platforms
  8. Contributing
  9. License
  10. Links

Introduction

The MCP Salesforce Integration repository serves as a bridge between Salesforce and applications that utilize the Model Context Protocol. This integration allows developers to access Salesforce data and perform operations efficiently. The server handles OAuth authentication, ensuring secure access to Salesforce objects.

Features

  • OAuth Authentication: Securely authenticate users and applications.
  • Universal CRUD Operations: Create, Read, Update, and Delete operations on any Salesforce object.
  • Cross-Platform Support: Compatible with Linux and macOS environments.
  • Easy Setup: Simple installation process for quick deployment.
  • Well-Documented: Comprehensive documentation for developers.

Installation

To get started with the MCP Salesforce Integration, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/Tyler4good/mcp-salesforce.git
    cd mcp-salesforce
    
  2. Install Dependencies: Make sure you have Node.js installed. Then run:

    npm install
    
  3. Configuration: Set up your environment variables for Salesforce credentials. Create a .env file in the root directory and add your Salesforce credentials.

  4. Start the Server: Run the following command to start the server:

    npm start
    

Usage

Once the server is running, you can interact with it using RESTful API calls. Below are examples of how to perform various operations.

Authentication

To authenticate, make a POST request to the /auth endpoint with your credentials. The server will respond with an access token.

CRUD Operations

You can perform CRUD operations on Salesforce objects using the following endpoints:

  • Create: POST to /objects/{objectName}
  • Read: GET from /objects/{objectName}/{id}
  • Update: PUT to /objects/{objectName}/{id}
  • Delete: DELETE from /objects/{objectName}/{id}

Replace {objectName} with the name of the Salesforce object and {id} with the object's ID.

Authentication

The OAuth authentication process is straightforward. Here’s how to implement it:

  1. Request Access Token: Send a POST request to the /auth endpoint with your Salesforce credentials.

  2. Receive Access Token: The server will return an access token. Use this token in the Authorization header for subsequent requests.

CRUD Operations

The MCP Salesforce Integration supports universal CRUD operations on any Salesforce object. Below are examples of how to use these operations.

Create

To create a new record, send a POST request to the appropriate endpoint. For example:

curl -X POST \
  http://localhost:3000/objects/Account \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "Name": "New Account",
    "Industry": "Technology"
  }'

Read

To read a record, send a GET request:

curl -X GET \
  http://localhost:3000/objects/Account/{id} \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Update

To update a record, send a PUT request:

curl -X PUT \
  http://localhost:3000/objects/Account/{id} \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "Name": "Updated Account",
    "Industry": "Finance"
  }'

Delete

To delete a record, send a DELETE request:

curl -X DELETE \
  http://localhost:3000/objects/Account/{id} \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Supported Platforms

The MCP Salesforce Integration is designed to work on the following platforms:

  • Linux: The server runs smoothly on various Linux distributions.
  • macOS: Compatible with macOS environments for seamless development.

Contributing

We welcome contributions to enhance the MCP Salesforce Integration. If you would like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your branch to your forked repository.
  5. Open a pull request to the main repository.

Please ensure your code adheres to our coding standards and includes tests where applicable.

License

This project is licensed under the MIT License. See the LICENSE file for details.

For the latest releases and updates, visit the Releases section. Here, you can download the necessary files and execute them as needed.

You can also check the Releases section for any updates or new features.

Thank you for your interest in the MCP Salesforce Integration! We hope this tool simplifies your development process and enhances your applications.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Tavily Mcp
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.