Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AIFire in da houseCheck it out free

salesforce-mcp-server

MCP.Pizza Chef: kablewy

The Salesforce MCP Server is a Model Context Protocol server designed to integrate Salesforce's REST API with LLM-powered applications. It leverages the jsforce library to provide secure authentication, execute SOQL queries, retrieve Salesforce object metadata, and perform CRUD operations on records. This server enables real-time access to Salesforce data, making it ideal for AI agents and copilots that require up-to-date CRM information. Installation is straightforward via Smithery or manual setup, supporting efficient interaction with Salesforce environments through standardized MCP interfaces.

Use This MCP server To

Execute SOQL queries for dynamic Salesforce data retrieval Create, update, and delete Salesforce records programmatically Access Salesforce object metadata for schema-aware AI workflows Enable real-time Salesforce data access in AI copilots Securely authenticate Salesforce API requests within MCP Integrate Salesforce CRM data into multi-model AI applications

README

Salesforce MCP Server

smithery badge

A Model Context Protocol server implementation for interacting with Salesforce through its REST API using jsforce.

Installing via Smithery

To install Salesforce Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install salesforce-mcp-server --client claude

Features

  • Execute SOQL queries
  • Retrieve object metadata
  • Create, update, and delete records
  • Secure authentication handling
  • Real-time data access

Setup

  1. Clone the repository
  2. Copy .env.example to .env and fill in your Salesforce credentials
  3. Install dependencies: npm install
  4. Build: npm run build
  5. Start: npm start

Usage

The server exposes several functions:

query

Execute SOQL queries against your Salesforce instance:

{
  "name": "query",
  "parameters": {
    "query": "SELECT Id, Name FROM Account LIMIT 5"
  }
}

describe-object

Get metadata about a Salesforce object:

{
  "name": "describe-object",
  "parameters": {
    "objectName": "Account"
  }
}

create

Create a new record:

{
  "name": "create",
  "parameters": {
    "objectName": "Contact",
    "data": {
      "FirstName": "John",
      "LastName": "Doe",
      "Email": "john.doe@example.com"
    }
  }
}

update

Update an existing record:

{
  "name": "update",
  "parameters": {
    "objectName": "Contact",
    "data": {
      "Id": "003XXXXXXXXXXXXXXX",
      "Email": "new.email@example.com"
    }
  }
}

delete

Delete a record:

{
  "name": "delete",
  "parameters": {
    "objectName": "Contact",
    "id": "003XXXXXXXXXXXXXXX"
  }
}

Security

Make sure to:

  • Keep your .env file secure and never commit it
  • Use IP restrictions in Salesforce when possible
  • Regularly rotate your security token
  • Consider implementing additional authentication for the MCP server

Contributing

Contributions are welcome! Please submit PRs with improvements.

Salesforce MCP Server

A Model Context Protocol server implementation for interacting with Salesforce through its REST API using jsforce.

Installing via Smithery

To install Salesforce Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install salesforce-mcp-server --client claude

Features

  • Execute SOQL queries
  • Retrieve object metadata
  • Create, update, and delete records
  • Secure authentication handling
  • Real-time data access

Setup

  1. Clone the repository
  2. Copy .env.example to .env and fill in your Salesforce credentials
  3. Install dependencies: npm install
  4. Build: npm run build
  5. Start: npm start

Usage

The server exposes several functions:

query

Execute SOQL queries against your Salesforce instance:

{
  "name": "query",
  "parameters": {
    "query": "SELECT Id, Name FROM Account LIMIT 5"
  }
}

describe-object

Get metadata about a Salesforce object:

{
  "name": "describe-object",
  "parameters": {
    "objectName": "Account"
  }
}

create

Create a new record:

{
  "name": "create",
  "parameters": {
    "objectName": "Contact",
    "data": {
      "FirstName": "John",
      "LastName": "Doe",
      "Email": "john.doe@example.com"
    }
  }
}

update

Update an existing record:

{
  "name": "update",
  "parameters": {
    "objectName": "Contact",
    "data": {
      "Id": "003XXXXXXXXXXXXXXX",
      "Email": "new.email@example.com"
    }
  }
}

delete

Delete a record:

{
  "name": "delete",
  "parameters": {
    "objectName": "Contact",
    "id": "003XXXXXXXXXXXXXXX"
  }
}

Security

Make sure to:

  • Keep your .env file secure and never commit it
  • Use IP restrictions in Salesforce when possible
  • Regularly rotate your security token
  • Consider implementing additional authentication for the MCP server

Contributing

Contributions are welcome! Please submit PRs with improvements.

License

MIT License

MIT License

Copyright (c) 2024 Kablewy,LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

salesforce-mcp-server FAQ

How do I install the Salesforce MCP Server?
You can install it automatically via Smithery CLI using 'npx -y @smithery/cli install salesforce-mcp-server --client claude' or manually by cloning the repo, setting up your .env with Salesforce credentials, installing dependencies, building, and starting the server.
What authentication methods does the Salesforce MCP Server support?
It securely handles Salesforce authentication using credentials configured in the .env file, supporting OAuth and token-based authentication as per Salesforce REST API standards.
Can I execute custom SOQL queries with this server?
Yes, the server exposes a 'query' function that allows you to run arbitrary SOQL queries against your Salesforce instance.
Does the server support CRUD operations on Salesforce records?
Yes, you can create, update, and delete records through the server's exposed functions, enabling full data manipulation capabilities.
How does the server handle real-time data access?
The server interacts directly with Salesforce's REST API, providing up-to-date data responses for queries and record operations in real time.
Is the Salesforce MCP Server compatible with multiple LLM clients?
Yes, while installation instructions mention Claude, the server is designed to work with any MCP-compliant client, including those using OpenAI, Claude, and Gemini models.
What programming language and libraries does the server use?
The server is implemented in JavaScript/Node.js and uses the jsforce library to interface with Salesforce's REST API.
How do I configure Salesforce credentials for the server?
You copy the provided .env.example to .env and fill in your Salesforce credentials such as client ID, client secret, username, password, and security token.