home / mcp / salesforce mcp server
Salesforce MCP Server
Configuration
View docs{
"mcpServers": {
"tsmztech-mcp-server-salesforce": {
"command": "npx",
"args": [
"-y",
"@tsmztech/mcp-server-salesforce"
],
"env": {
"SALESFORCE_TOKEN": "your_token",
"SALESFORCE_PASSWORD": "your_password",
"SALESFORCE_USERNAME": "[email protected]",
"SALESFORCE_CLIENT_ID": "your_client_id",
"SALESFORCE_INSTANCE_URL": "https://your-domain.my.salesforce.com",
"SALESFORCE_CLIENT_SECRET": "your_client_secret",
"SALESFORCE_CONNECTION_TYPE": "Salesforce_CLI"
}
}
}
}You can use this MCP server to let Claude interact with Salesforce data and metadata using natural language. It enables querying, creating, updating, and managing Salesforce objects, records, and Apex code from everyday conversation, making your Salesforce workflows faster and more intuitive.
To use the Salesforce MCP Server with your MCP client, connect your client to the local MCP runtime and choose the Salesforce server configuration. You can switch between authentication methods and run queries, manage objects and fields, search across objects, and execute Apex code through natural language prompts. Start simple: ask to describe an object, then query records with filters, and gradually explore cross-object searches and Apex management.
Prerequisites: you need Node.js and npm installed on your machine. Ensure you have a working Salesforce account to authenticate against.
Install the MCP Salesforce server globally using npm.
npm install -g @tsmztech/mcp-server-salesforceConfiguration, security notes, and usage details are included in the available environment variable options and the setup steps for authentication. Follow the authentication method you prefer and provide the required credentials and endpoints.
Search for standard and custom Salesforce objects by partial name matches, including both standard and custom objects.
Get detailed object schema information including field definitions, relationships, and picklist values.
Query records with support for parent-child and child-parent relationships and complex filters.
Run aggregate queries with GROUP BY, HAVING, and date/time groupings.
Perform insert, update, delete, and upsert operations on Salesforce records.
Create and modify custom Salesforce objects and their sharing settings.
Add or modify custom fields and create relationships, with field level security handling by default for Admin.
Manage Field Level Security for profiles and grant or revoke access to fields.
SOSL-based search across multiple objects with field snippets.
Read Apex classes and view metadata; supports wildcard name patterns.
Create and update Apex classes with API version control.
Read Apex triggers and view related metadata; supports wildcards.
Create or update Apex triggers with API version and events.
Execute anonymous Apex code and review debug logs.
Enable, disable, and retrieve Salesforce debug logs and set log levels.