salesforce-mcp-server

  • Customer Data Platforms
TypeScript
2
A
security – no known vulnerabilities (report Issue)
F
license - not found
A
quality - confirmed to work

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

  1. Tools
  2. Prompts
  3. Resources
  4. Server Configuration
  5. README.md

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
queryExecute a SOQL query on Salesforce
tooling-queryExecute a query against the Salesforce Tooling API
describe-objectGet detailed metadata about a Salesforce object
metadata-retrieveRetrieve metadata components from Salesforce

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SF_PASSWORDYesYour Salesforce passwordsf_password
SF_USERNAMEYesYour Salesforce usernamesf_user
SF_SECURITY_TOKENYesYour Salesforce security tokensf_security_token
README.md

Salesforce MCP Server

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

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.

GitHub Badge

Glama performs regular codebase and documentation scans to:

  • Confirm that the MCP server is working as expected.
  • Confirm that there are no obvious security issues with dependencies of the server.
  • Extract server characteristics such as tools, resources, prompts, and required parameters.

Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.

Copy the following code to your README.md file:

Alternative MCP servers

  • -
    security
    F
    license
    -
    quality
    This server provides a comprehensive integration with Zendesk. Retrieving and managing tickets and comments. Ticket analyzes and response drafting. Access to help center articles as knowledge base.
  • -
    security
    -
    license
    -
    quality
    Tools for executing JQL queries. Tools for creating, editing, and deleting Jira tickets. Tools for listing Jira projects and statuses
    • Apple
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that provides read and write access to Airtable databases. This server enables LLMs to inspect database schemas, then read and write records.
    MIT
  • -
    security
    A
    license
    -
    quality
    MCP Server for the Notion API, enabling Claude to interact with Notion workspaces.
    MIT