npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mindstone/mcp-server-salesforce

v0.1.3

Published

Salesforce CRM MCP server — accounts, contacts, opportunities, leads, tasks, and custom objects via Salesforce API

Downloads

356

Readme

@mindstone/mcp-server-salesforce

npm version License: FSL-1.1-MIT

Salesforce CRM MCP server — accounts, contacts, opportunities, leads, tasks, users, and custom objects via the Salesforce API.

Best when an MCP host needs a local, install-and-run CRM connector for everyday sales work rather than a Salesforce-hosted endpoint.

Status

Why this exists

Salesforce's own MCP options are the right starting point for many teams. This package is for teams that want a normal npm MCP server they can run locally in any stdio host.

It gives an assistant focused access to the CRM work people actually ask for: finding accounts and contacts, updating leads, creating opportunities and tasks, running CRM searches, and working with custom objects. The benefit is a short path from a natural-language sales request to the right Salesforce records, with write actions kept visible to the host.

Example interaction

"Find Acme Corp in Salesforce, create a Q3 expansion opportunity for $75,000, and add a follow-up task for next Friday."

Tools the host calls:

  1. salesforce_get_accounts — searches accounts by name and returns the matching account ID.
  2. salesforce_create_opportunity — creates the opportunity against that account.
  3. salesforce_create_task — adds a follow-up task related to the new opportunity.

Response (trimmed):

{
  "account": { "id": "001xx000003DGbYAAW", "name": "Acme Corp" },
  "opportunity": {
    "id": "006xx000004TmiYAAS",
    "name": "Q3 expansion",
    "amount": 75000,
    "stage": "Prospecting"
  },
  "task": {
    "id": "00Txx000006rYxDEAU",
    "subject": "Follow up on Q3 expansion"
  }
}

Requirements

  • Node.js 20+
  • npm
  • A Salesforce Connected App for the OAuth path, or a valid access token plus instance URL for manual-token mode.

One-click install

Add to Cursor Add to VS Code Add to VS Code Insiders

After clicking the button, your host will prompt you to fill: SALESFORCE_CLIENT_ID, SALESFORCE_CLIENT_SECRET, SALESFORCE_ACCESS_TOKEN, SALESFORCE_CONFIG_DIR, SALESFORCE_OAUTH_PORT.

{
  "mcpServers": {
    "Salesforce": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-salesforce"
      ],
      "env": {
        "SALESFORCE_CLIENT_ID": "",
        "SALESFORCE_CLIENT_SECRET": "",
        "SALESFORCE_ACCESS_TOKEN": "",
        "SALESFORCE_CONFIG_DIR": "~/.mcp/salesforce",
        "SALESFORCE_OAUTH_PORT": "0"
      }
    }
  }
}

Quick Start

Install & build

cd <path-to-repo>/connectors/salesforce
npm install
npm run build

npx

npx -y @mindstone/mcp-server-salesforce

Local

node dist/index.js

Configuration

OAuth (Recommended)

Set these environment variables:

  • SALESFORCE_CLIENT_ID — Your Salesforce Connected App client ID
  • SALESFORCE_CLIENT_SECRET — Your Salesforce Connected App client secret
  • SALESFORCE_SANDBOX — Set to "true" for sandbox environments (optional)

Then call salesforce_connect_account to start the OAuth flow.

Manual Token

  • SALESFORCE_ACCESS_TOKEN — A valid Salesforce access token
  • SALESFORCE_INSTANCE_URL — Your Salesforce instance URL (e.g., https://mycompany.my.salesforce.com)

Additional Options

  • SALESFORCE_CONFIG_DIR — Custom config directory (default: ~/.mcp/salesforce)
  • SALESFORCE_OAUTH_PORT — OAuth callback port (0 = OS-assigned; default: 0)
  • SALESFORCE_OAUTH_SCOPES — Space-separated OAuth scopes. Leave unset to use the connector default.

Available Tools (26)

Account Management

  • salesforce_connect_account — Connect a Salesforce account via OAuth
  • salesforce_list_connected_accounts — List connected accounts
  • salesforce_disconnect_account — Disconnect an account

CRM Accounts

  • salesforce_get_accounts — Get CRM accounts with filters
  • salesforce_create_account — Create a CRM account
  • salesforce_update_account — Update a CRM account

Contacts

  • salesforce_get_contacts — Get contacts with filters
  • salesforce_create_contact — Create a contact
  • salesforce_update_contact — Update a contact

Opportunities

  • salesforce_get_opportunities — Get opportunities with filters
  • salesforce_create_opportunity — Create an opportunity
  • salesforce_update_opportunity — Update an opportunity

Leads

  • salesforce_get_leads — Get leads with filters
  • salesforce_create_lead — Create a lead
  • salesforce_convert_lead — Convert a lead to Account + Contact
  • salesforce_update_lead — Update a lead

Tasks

  • salesforce_get_tasks — Get tasks with filters
  • salesforce_create_task — Create a task
  • salesforce_update_task — Update a task

Users

  • salesforce_get_users — Get Salesforce users

Query & Schema

  • salesforce_query — Execute raw SOQL queries
  • salesforce_describe_object — Get object metadata and fields
  • salesforce_list_objects — List available Salesforce objects

Generic CRUD

  • salesforce_create_record — Create any Salesforce record
  • salesforce_update_record — Update any Salesforce record
  • salesforce_get_records — Query any Salesforce object

Security notes

  • The standalone OAuth callback server binds to 127.0.0.1; it does not honour environment overrides that would expose the callback beyond loopback.
  • OAuth credentials are stored under SALESFORCE_CONFIG_DIR (default ~/.mcp/salesforce) with restrictive directory and file permissions.
  • Write and disconnect tools are marked so capable hosts can ask for confirmation before changing Salesforce data.
  • SOQL helper paths escape string and LIKE values, strip comments quote-safely before applying the query limit cap, and enforce a maximum of 200 records for raw SOQL queries.

Licence

FSL-1.1-MIT — Functional Source License, Version 1.1, with MIT future licence. The software converts to MIT licence on 2030-04-08.