SalesforceSAFE
Model Context Protocol server for Salesforce REST API integration
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://mseep.ai/app/kablewy-salesforce-mcp-server)
[](https://smithery.ai/server/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
- Clone the repository
- Copy
.env.exampleto.envand fill in your Salesforce credentials - Install dependencies:
npm install - Build:
npm run build - 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": "[email protected]"
}
}
}update
Update an existing record:
{
"name": "update",
"parameters": {
"objectName": "Contact",
"data": {
"Id": "003XXXXXXXXXXXXXXX",
"Email": "[email protected]"
}
}
}delete
Delete a record:
{
"name": "delete",
"parameters": {
"objectName": "Contact",
"id": "003XXXXXXXXXXXXXXX"
}
}Running eval
8c22ef144770OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add salesforce-mcp-server --env SF_PASSWORD=${SF_PASSWORD} --env SF_SECURITY_TOKEN=${SF_SECURITY_TOKEN} -- npx -y [email protected]{
"mcpServers": {
"salesforce-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"SF_PASSWORD": "${SF_PASSWORD}",
"SF_SECURITY_TOKEN": "${SF_SECURITY_TOKEN}"
}
}
}
}Exposed tools (5)
3 read · 2 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
describe-object | read | Get detailed metadata about a Salesforce object |
metadata-retrieve | read | Retrieve metadata components from Salesforce |
query | write | Execute a SOQL query on Salesforce |
queryEval | read | Evaluates the Salesforce query tool functionality |
tooling-query | write | Execute a query against the Salesforce Tooling API |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
@modelcontextprotocol/sdk, dotenv, jsforce, mcp-evals, @types/jsforce, @types/node, tsx, typescript
The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentatio
Gates applied: no_behavioural_pass, no_license.
8c22ef144770full audit observations/trust-audit/mcp-server/kablewy__salesforce-3.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 8c22ef144770 | SAFE | B | 89 | first audit |
Questions
What is the Salesforce MCP server?
Model Context Protocol server for Salesforce REST API integration
What tools does Salesforce expose?
5 in total: 3 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Salesforce safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Salesforce need?
It reads SF_PASSWORD and SF_SECURITY_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Salesforce run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as salesforce-mcp-server at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (8c22ef144770), read on 2026-10-08. The repository is watched and re-audited when it changes.