salesforce_execute_anonymous
Execute anonymous Apex code:
How to use it
salesforce_execute_anonymous is exposed by the MCP Server Salesforce MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the salesforce_execute_anonymous tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Server Salesforce
npm install -g @tsmztech/mcp-server-salesforceOther tools in MCP Server Salesforce (14)
Execute aggregate queries with GROUP BY:
Get detailed object schema information:
Perform data operations:
Manage debug logs for Salesforce users:
Manage object fields:
Manage Field Level Security (Field Permissions):
Create and modify custom objects:
Query records with relationship support:
Read Apex classes:
Read Apex triggers:
Search across multiple objects:
Search for standard and custom objects:
Create and update Apex classes:
Create and update Apex triggers: