home / mcp / salesforce mcp server
Provides an MCP server that enables Claude to query, modify, and manage Salesforce data and metadata using natural language.
Configuration
View docs{
"mcpServers": {
"priyapanigrahy-mcp-salesforce-sse": {
"command": "npx",
"args": [
"-y",
"@tsmztech/mcp-server-salesforce"
],
"env": {
"SALESFORCE_TOKEN": "your_security_token",
"SALESFORCE_PASSWORD": "your_password",
"SALESFORCE_USERNAME": "your_username",
"SALESFORCE_CLIENT_ID": "your_client_id",
"SALESFORCE_INSTANCE_URL": "org_url",
"SALESFORCE_CLIENT_SECRET": "your_client_secret",
"SALESFORCE_CONNECTION_TYPE": "User_Password"
}
}
}
}You can run a Salesforce MCP Server to let Claude interact with your Salesforce data and metadata using natural language. This server translates your questions and commands into Salesforce operations, enabling you to search objects, describe schemas, run queries, manipulate data, manage Apex code, and handle debugging logs with intuitive prompts.
Launch the Salesforce MCP Server and connect it to Claude through your MCP client. Create natural language prompts to explore Salesforce objects, fetch field details, perform searches across multiple objects, run both simple and aggregate queries, insert, update, delete, and upsert records, and manage Apex code or debug logs. You can also run cross-object searches and manage field-level security as part of routine data operations.
Prerequisites: ensure you have Node.js and npm installed on your system.
npm install -g @tsmztech/mcp-server-salesforceAuthentication options include Username/Password with a security token or OAuth 2.0 Client Credentials. When using OAuth, you must provide the exact Salesforce instance URL. Here are the available environment configurations you use with Claude Desktop to start the MCP server.
{
"mcpServers": {
"salesforce": {
"command": "npx",
"args": ["-y", "@tsmztech/mcp-server-salesforce"],
"env": {
"SALESFORCE_CONNECTION_TYPE": "User_Password",
"SALESFORCE_USERNAME": "your_username",
"SALESFORCE_PASSWORD": "your_password",
"SALESFORCE_TOKEN": "your_security_token",
"SALESFORCE_INSTANCE_URL": "org_url" // Optional. Default value: https://login.salesforce.com
}
}
}
}By default, Field Level Security is granted to the System Administrator when you create or modify fields. You can use the grantAccessTo parameter to assign permissions to other profiles as needed. Always verify permissions after making changes to sensitive fields like account or opportunity data.
Use natural language prompts to perform these tasks: search for objects, describe object schemas, query accounts and related contacts, aggregate opportunities by stage, create or update custom objects and fields, manage Apex classes and triggers, execute anonymous Apex, and configure or retrieve debug logs.
Run the MCP server command through your MCP client using the configuration snippet above. The server will expose endpoints to Claude for object discovery, schema details, data queries, DML operations, Apex code management, and debugging log handling.
Search standard and custom Salesforce objects by partial name matches and across multiple object types.
Describe an object's schema in detail, including fields, relationships, and picklist values.
Query records with support for parent/child and child/parent relationships and complex filters.
Execute GROUP BY queries with aggregate functions like COUNT, SUM, AVG, etc.
Perform DML operations: insert, update, delete, and upsert records.
Create and modify custom objects and their properties, including sharing settings.
Add or modify fields, including creating relationships and configuring picklists.
Manage field-level security by granting or revoking access for profiles.
Cross-object search using SOSL with field snippets.
Read Apex classes and related metadata, with wildcard support for name patterns.
Create or update Apex classes, including API version specification.
Read Apex triggers and metadata, with wildcard support for names.
Create or modify Apex triggers and their event operations.
Execute anonymous Apex code and view debug logs/results.
Enable, disable, and retrieve debug logs for Salesforce users with configurable levels.