salesforce-mcp

salesforce-mcp

A Model Context Protocol server that connects AI assistants to Salesforce orgs, enabling querying, searching, creating, updating, and managing Salesforce data through natural language via any MCP-compatible client.

Category
Visit Server

README

Salesforce MCP Server

A Model Context Protocol server that connects AI assistants to Salesforce orgs. Enables querying, searching, creating, updating, and managing Salesforce data through natural language via any MCP-compatible client.

Setup

Prerequisites

  • Node.js 18+
  • A Salesforce org with API access

Installation

npm install

Configuration

Copy the example env file and fill in your Salesforce credentials:

cp .env.example .env
Variable Required Default Description
SF_USERNAME Yes Salesforce username
SF_PASSWORD Yes Salesforce password
SF_SECURITY_TOKEN No "" Security token (appended to password)
SF_LOGIN_URL No https://login.salesforce.com Login URL (use https://test.salesforce.com for sandboxes)

Build & Run

npm run build
npm start

MCP Client Configuration

Add to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "salesforce": {
      "command": "node",
      "args": ["/absolute/path/to/salesforce_mcp/dist/index.js"],
      "env": {
        "SF_USERNAME": "your_username",
        "SF_PASSWORD": "your_password",
        "SF_SECURITY_TOKEN": "your_token",
        "SF_LOGIN_URL": "https://login.salesforce.com"
      }
    }
  }
}

Available Tools

Query & Search

  • salesforce_query — Execute a SOQL query (first batch, up to 2000 records)
  • salesforce_query_all — SOQL query with automatic pagination (configurable max records)
  • salesforce_query_more — Fetch next batch using nextRecordsUrl
  • salesforce_search — Execute a SOSL search

Object Metadata

  • salesforce_describe_object — Get fields, relationships, and record types for an sObject
  • salesforce_list_objects — List all sObjects in the org

CRUD Operations

  • salesforce_get_record — Get a record by ID
  • salesforce_create_record — Create a new record
  • salesforce_update_record — Update an existing record
  • salesforce_delete_record — Delete a record by ID

Reports & Dashboards

  • salesforce_list_reports — List all reports
  • salesforce_run_report — Execute a report by ID
  • salesforce_describe_report — Get report metadata (columns, filters, groupings)
  • salesforce_list_dashboards — List all dashboards
  • salesforce_get_dashboard — Get dashboard component data and status

Tooling API

  • salesforce_tooling_query — Query Apex classes, triggers, flows, validation rules, etc.
  • salesforce_get_metadata_component — Retrieve full source of a metadata component
  • salesforce_describe_tooling_object — Get fields for a Tooling API sObject

Apex Execution

  • salesforce_execute_apex — Run anonymous Apex code

Org Info & REST

  • salesforce_get_org_limits — View API call limits, storage usage, etc.
  • salesforce_get_org_info — Org edition, instance, API version, user info
  • salesforce_rest_api — Generic REST API call for any endpoint

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured