Skip to content
MCP server
Registry

Salesforce MCP Server

MCP server for Salesforce CRM — Accounts, Contacts, Opportunities, Leads, Cases.

Salesforce scores 56 (Fair), with no SPDX license recorded and written in TypeScript. It installs as a local process. It declares 6 tools. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by wyre-aiNo licenseTypeScript0 stars
Trust score
56Fair
Trust score 56 of 100, Fair

Fair trust

56 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • No license recorded.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 56 comes from

22 + 20 + 0 + 0 + 4 + 10 = 56. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License0 / 10

A clear, OSI-style open-source license.

License: 0 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "wyre-ai-salesforce-mcp": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/wyre-ai/salesforce-mcp:v1.0.7"      ],      "env": {        "AUTH_MODE": "env",        "SALESFORCE_AUTH_FLOW": "client_credentials",        "SALESFORCE_CLIENT_ID": "",        "SALESFORCE_CLIENT_SECRET": "YOUR_SALESFORCE_CLIENT_SECRET",        "SALESFORCE_INSTANCE_URL": "",        "SALESFORCE_USERNAME": "",        "SALESFORCE_PASSWORD": "YOUR_SALESFORCE_PASSWORD",        "SALESFORCE_TOKEN": "YOUR_SALESFORCE_TOKEN",        "MCP_TRANSPORT": "stdio",        "LOG_LEVEL": "info"      }    }  }}

Environment variables

NameRequiredNotes
AUTH_MODERequiredCredential source: 'env' reads vars locally, 'gateway' expects header injection from the WYRE MCP Gateway. Set to 'env' for stdio/local use.
SALESFORCE_AUTH_FLOWOptionalSalesforce auth flow: 'client_credentials' (default, requires a Connected App with Client Credentials Flow enabled) or 'username_password' (fallback).
SALESFORCE_CLIENT_IDRequiredConnected App consumer key. Required when SALESFORCE_AUTH_FLOW=client_credentials.
SALESFORCE_CLIENT_SECRETSecretRequiredConnected App consumer secret. Required when SALESFORCE_AUTH_FLOW=client_credentials.
SALESFORCE_INSTANCE_URLRequiredSalesforce org's My Domain URL (e.g. https://yourorg.my.salesforce.com). Required when SALESFORCE_AUTH_FLOW=client_credentials.
SALESFORCE_USERNAMEOptionalSalesforce username. Only used when SALESFORCE_AUTH_FLOW=username_password.
SALESFORCE_PASSWORDSecretOptionalSalesforce password. Only used when SALESFORCE_AUTH_FLOW=username_password.
SALESFORCE_TOKENSecretOptionalSalesforce security token. Only used when SALESFORCE_AUTH_FLOW=username_password; optional if the org has IP allowlisting configured instead.
MCP_TRANSPORTOptionalTransport mode for the server. Set to 'stdio' for local CLI use; the image defaults to 'http' for gateway hosting.
LOG_LEVELOptionalLog verbosity: debug, info, warn, error

Tools6Tool docs quality grade D

All capabilities

About

salesforce-mcp

MCP (Model Context Protocol) server for Salesforce CRM, scoped to the WYRE Gateway BYOC use case.

A focused HTTP MCP server that exposes a Salesforce org's CRM data surface to Claude (and other MCP clients) through the WYRE MCP Gateway. Built for the multi-tenant gateway pattern: credentials are injected per-request via HTTP headers, no startup secrets are baked into the container.

Scope discipline

This package intentionally ships a narrow tool surface — six CRM data tools — and deliberately omits the Apex code-management / custom-object-creation / EXECUTE_ANONYMOUS surfaces that broader Salesforce MCP servers include. The use case is read/write access to standard CRM objects (Accounts, Contacts, Opportunities, Leads, Cases). Customers who need DX or admin tooling should use the official @salesforce/mcp package instead.

Tools

ToolPurpose
salesforce_search_objectsFind standard + custom objects by partial name.
salesforce_describe_objectFull schema (fields, picklists, relationships) for an object.
salesforce_query_recordsExecute SOQL with relationship traversal.
salesforce_aggregate_querySOQL GROUP BY / COUNT / SUM / AVG / MIN / MAX.
salesforce_dml_recordsInsert / update / delete / upsert records.
salesforce_search_allCross-object SOSL search.

Run modes

  • http (default): listens on :8080, exposes /mcp (JSON-RPC) + /health. Per-request credentials from X-Salesforce-* headers. This is the gateway deployment shape. HTTP refuses to start unless CONDUIT_S2S_SECRET is a real secret.
  • stdio: traditional MCP client transport (Claude Desktop / Cursor). Credentials read once from env. The stdio transport does not use CONDUIT_S2S_SECRET.

Copy .env.example and set the variables below. Leave CONDUIT_S2S_SECRET empty in that file.

VariableRequiredDescription
SALESFORCE_CLIENT_ID / SALESFORCE_CLIENT_SECRET / SALESFORCE_INSTANCE_URLFor stdio and AUTH_MODE=envClient Credentials flow.
SALESFORCE_USERNAME / SALESFORCE_PASSWORD / SALESFORCE_TOKENFor username-passwordUsed when SALESFORCE_AUTH_FLOW=username_password. The token is optional if the org uses IP allowlisting.
MCP_TRANSPORTNohttp (default) or stdio.
AUTH_MODENogateway (image and Compose default) or env. Gateway mode requires the X-Salesforce-* headers on each /mcp request and never falls back to SALESFORCE_*. env uses those variables only after S2S auth succeeds.
CONDUIT_S2S_SECRETYes for HTTPService-to-service secret. HTTP logs an error and exits non-zero when this is empty or a known placeholder (changeme, placeholder, your-s2s-secret, secret, password, test, an unresolved ${...} template, and the other stand-ins in src/s2s-verify.ts). Never commit a real value.
MCP_ALLOW_INSECURE_DEVNoSet to exactly 1 only for local development to start HTTP without CONDUIT_S2S_SECRET. The process logs a warning, does not check X-Gateway-S2S, and listens on 127.0.0.1 only. A non-loopback MCP_HTTP_HOST is ignored and the override is logged. A known placeholder secret still refuses to start.
MCP_HTTP_HOSTNoBind address when a usable CONDUIT_S2S_SECRET is set. When unset, a configured secret keeps HOST (default 0.0.0.0). Without a usable secret the listener is 127.0.0.1. The container image sets 0.0.0.0.
PORTNoHTTP port. Defaults to 8080.
HOSTNoFallback bind address when MCP_HTTP_HOST is unset and a secret is configured. Defaults to 0.0.0.0.

/health stays unauthenticated and does not read credentials.

# HTTP mode (exits unless CONDUIT_S2S_SECRET is a real secret)
CONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" PORT=8080 MCP_TRANSPORT=http AUTH_MODE=gateway npm start

# Local HTTP only, without a service-to-service secret (always binds 127.0.0.1)
MCP_ALLOW_INSECURE_DEV=1 MCP_TRANSPORT=http npm start

# stdio mode (env-baked, local testing; no S2S secret)
MCP_TRANSPORT=stdio \
SALESFORCE_AUTH_FLOW=client_credentials \
SALESFORCE_CLIENT_ID=... SALESFORCE_CLIENT_SECRET=... \
SALESFORCE_INSTANCE_URL=https://yourorg.my.salesforce.com \
node dist/entry.js

Header contract (gateway mode)

Every /mcp request must include a valid X-Gateway-S2S header when CONDUIT_S2S_SECRET is set. Gateway mode also requires the credential headers for the chosen flow. A request missing them returns 401 and does not fall back to SALESFORCE_* in the process environment.

HeaderRequired?Notes
X-Gateway-S2SYes when the S2S secret is sett=<unix seconds>,v1=<hex hmac-sha256>. See X-Gateway-S2S signing.
X-Salesforce-Auth-Modeoptionalclient_credentials (default) or username_password.
X-Salesforce-Client-Idfor client_credentialsConnected App consumer key.
X-Salesforce-Client-Secretfor client_credentialsConnected App consumer secret.
X-Salesforce-Instance-Urlfor client_credentialsCustomer's My Domain URL (e.g. https://acmecorp.my.salesforce.com).
X-Salesforce-Usernamefor username_passwordSalesforce user.
X-Salesforce-Passwordfor username_passwordSalesforce password.
X-Salesforce-Tokenfor username_passwordSecurity token (required unless IP allowlisted).

Per-request authentication means the same container instance can service many customers without restart — each MCP tools/call builds a fresh jsforce.Connection from the headers on that request.

X-Gateway-S2S signing

v1 is HMAC-SHA256, hex-encoded, of the ASCII string t=<unix seconds> (the same t= prefix that starts the header), keyed with CONDUIT_S2S_SECRET. The timestamp must be within 300 seconds of the server clock. A missing or invalid header returns HTTP 401. The secret is never written to logs or the response body.

t=$(date +%s)
v1=$(printf 't=%s' "$t" | openssl dgst -sha256 -hmac "$CONDUIT_S2S_SECRET" | awk '{print $NF}')
curl -sS http://127.0.0.1:8080/mcp \
  -H "content-type: application/json" \
  -H "accept: application/json, text/event-stream" \
  -H "X-Gateway-S2S: t=${t},v1=${v1}" \
  -H "X-Salesforce-Client-Id: ..." \
  -H "X-Salesforce-Client-Secret: ..." \
  -H "X-Salesforce-Instance-Url: https://yourorg.my.salesforce.com" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Salesforce Connected App setup

For Client Credentials flow (the recommended path):

  1. Salesforce Setup → App Manager → New Connected App.
  2. Under API (Enable OAuth Settings): turn on Enable OAuth Settings and Enable Client Credentials Flow.
  3. Save, wait ~5 minutes for propagation.
  4. Manage → Edit Policies → Client Credentials Flow → set a Run As user (the API calls run with that user's permissions).
  5. Copy the Consumer Key and Consumer Secret from the Connected App into the gateway BYOC fields as clientId and clientSecret.
  6. Set instanceUrl to the customer's My Domain URL (Setup → My Domain).

Build

npm install
npm run build

Container

The image listens on 0.0.0.0 inside the container (MCP_HTTP_HOST) and defaults to AUTH_MODE=gateway. Publish the port on loopback and pass the S2S secret. In gateway mode, Salesforce credentials arrive on each request as headers; they are not read from the environment.

docker build -t salesforce-mcp:dev .
docker run --rm \
  -e CONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" \
  -p 127.0.0.1:8080:8080 \
  salesforce-mcp:dev
curl -s http://127.0.0.1:8080/health

Compose refuses to start when CONDUIT_S2S_SECRET is unset, sets AUTH_MODE=gateway, publishes 127.0.0.1:8080:8080, and does not inject SALESFORCE_*:

CONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" docker compose up

Single-tenant HTTP (AUTH_MODE=env) still requires the S2S secret, then uses SALESFORCE_*:

docker run --rm \
  -e CONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" \
  -e AUTH_MODE=env \
  -e SALESFORCE_AUTH_FLOW=client_credentials \
  -e SALESFORCE_CLIENT_ID=your-value \
  -e SALESFORCE_CLIENT_SECRET=your-value \
  -e SALESFORCE_INSTANCE_URL=https://yourorg.my.salesforce.com \
  -p 127.0.0.1:8080:8080 \
  salesforce-mcp:dev

The published image lives at ghcr.io/wyre-ai/salesforce-mcp with :latest, :sha-<short_sha>, and :v<version> tags.

License

Apache-2.0.

Frequently asked questions

What is Salesforce MCP Server?

MCP server for Salesforce CRM — Accounts, Contacts, Opportunities, Leads, Cases.

How do I install Salesforce MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Salesforce MCP Server runs locally from the Docker image ghcr.io/wyre-ai/salesforce-mcp:v1.0.7 with the command docker run -i --rm ghcr.io/wyre-ai/salesforce-mcp:v1.0.7.

Does Salesforce MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Salesforce MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Salesforce MCP Server provide?

Salesforce MCP Server provides 6 tools, including salesforce_aggregate_query, salesforce_describe_object, salesforce_dml_records, and salesforce_query_records. See the full tool list for descriptions and parameters.

How is Salesforce MCP Server's trust score calculated?

Salesforce MCP Server scores 56 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server