salesforce-mcp
Provides tools to interact with Salesforce orgs, enabling SOQL/SOSL queries, CRUD operations on records, metadata exploration, report and dashboard access, Tooling API queries, and Apex execution.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@salesforce-mcp show me the top 10 accounts by revenue"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 installConfiguration
Copy the example env file and fill in your Salesforce credentials:
cp .env.example .envVariable | Required | Default | Description |
| Yes | — | Salesforce username |
| Yes | — | Salesforce password |
| No |
| Security token (appended to password) |
| No |
| Login URL (use |
Build & Run
npm run build
npm startRelated MCP server: MCP Salesforce Connector
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
nextRecordsUrlsalesforce_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
Available Tools
22 toolssalesforce_create_recordC
Create a new record in Salesforce
Inputs: data (required), objectName (required).
salesforce_delete_recordC
Delete a Salesforce record by ID
Inputs: recordId (required), objectName (required).
salesforce_describe_objectB
Get metadata (fields, relationships, etc.) for a Salesforce sObject
Inputs: objectName (required).
salesforce_describe_reportA
Get metadata about a report — columns, filters, groupings, and report type
Inputs: reportId (required).
salesforce_describe_tooling_objectA
Get metadata (fields, etc.) for a Tooling API sObject. Use this to discover what fields are available for tooling queries.
Inputs: objectName (required).
salesforce_execute_apexB
Execute anonymous Apex code on the Salesforce org. The code runs in a system context. Use System.debug() to output results. Returns the debug log output.
Inputs: code (required).
salesforce_get_dashboardC
Get dashboard component data and status for a specific dashboard
Inputs: dashboardId (required).
salesforce_get_metadata_componentB
Retrieve a single metadata component by type and full name using the Tooling API. Useful for getting the full body/source of an Apex class, trigger, page, etc.
Inputs: type (required), recordId (required).
salesforce_get_org_infoB
Get general information about the Salesforce org: edition, org type, instance, API version, user info, etc.
Inputs: no named parameters.
salesforce_get_org_limitsA
Get the current org limits and usage, including API calls, storage, data storage, file storage, and more.
Inputs: no named parameters.
salesforce_get_recordC
Get a single Salesforce record by its ID
Inputs: recordId (required), objectName (required), fields.
salesforce_list_dashboardsB
List all dashboards available in the Salesforce org
Inputs: no named parameters.
salesforce_list_objectsB
List all sObjects available in the Salesforce org
Inputs: no named parameters.
salesforce_list_reportsB
List all reports available in the Salesforce org
Inputs: no named parameters.
salesforce_queryA
Execute a SOQL query (returns first batch, up to 2000 records)
Inputs: query (required).
salesforce_query_allB
Execute a SOQL query with automatic pagination to retrieve all matching records. Use maxRecords to cap the result size.
Inputs: query (required), maxRecords.
salesforce_query_moreB
Fetch the next batch of results from a previous query using the nextRecordsUrl. Useful for manual pagination.
Inputs: nextRecordsUrl (required).
salesforce_rest_apiA
Make a generic REST API call to Salesforce. Use this for any endpoint not covered by other tools. The path is relative to the instance URL (e.g. '/services/data/v60.0/sobjects/Account/describe/layouts').
Inputs: path (required), method (required), body.
salesforce_run_reportC
Execute a Salesforce report by its ID and return the results
Inputs: reportId (required), includeDetails.
salesforce_searchC
Execute a SOSL search against the Salesforce org
Inputs: search (required).
salesforce_tooling_queryA
Execute a SOQL query against the Tooling API. Use this to inspect Apex classes, triggers, Visualforce pages, Lightning components, flows, validation rules, and other metadata. Example: SELECT Id, Name, Body FROM ApexClass WHERE Name = 'MyClass'
Inputs: query (required).
salesforce_update_recordC
Update an existing Salesforce record
Inputs: data (required), recordId (required), objectName (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Most tools have clearly distinct resource+action targets: record CRUD, report/dashboard operations, tooling metadata, and org info are well separated. The only real overlap zone is the query family (query, query_all, query_more, tooling_query) plus the generic rest_api escape hatch, but descriptions clarify when each applies (first batch vs auto-pagination vs nextRecordsUrl vs Tooling API).
Nearly all names follow a predictable salesforce_verb_noun snake_case pattern (list_objects, get_record, create_record, run_report, describe_object). Minor deviations exist, notably salesforce_rest_api, which is resource-named rather than verb_named, and the query trio varies only by suffix.
At 22 tools the surface is on the heavy side, but Salesforce is a broad platform and each tool maps to a real capability area (data, reports, dashboards, tooling, Apex, limits). No tool appears redundant enough to be trivially removable.
Coverage is strong: full record CRUD, SOQL with pagination, SOSL search, describe calls, reports/dashboards, Tooling API, anonymous Apex, org limits/info, and a generic REST escape hatch for anything else. Gaps are minor and largely mitigated by rest_api — e.g. no Metadata API deploy/retrieve, no bulk API, no list views or file/attachment tools.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The HubSpot MCP Server acts as a bridge that enables AI assistants and Large Language Models to securely interact with HubSpot CRM data through natural conversation, without requiring users to understand complex API structures. It provides read-only access to standard CRM objects (contacts, companies, deals, tickets, products, invoices, and more) and their associations, secured via OAuth 2.0, allowing AI agents to perform tasks like summarizing deals, fetching company updates, and looking up record changes.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.155,903 npm167MIT
- AlicenseBqualityCmaintenanceA Model Context Protocol server that enables LLMs to interact with Salesforce data through SOQL queries, SOSL searches, and various API operations including record management.14148 PyPI180MIT
- AlicenseAqualityDmaintenanceAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.715MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server implementation that integrates Claude/VS Code with Salesforce, enabling natural language interactions with your Salesforce data and metadata.MIT