Back to Home
tsmztech icon

mcp-server-salesforce

by tsmztech

Overview

Enable natural language interactions and automation with Salesforce data and metadata for AI models.

Installation

Run Command
npx -y @tsmztech/mcp-server-salesforce

Environment Variables

  • SALESFORCE_CONNECTION_TYPE
  • SALESFORCE_USERNAME
  • SALESFORCE_PASSWORD
  • SALESFORCE_TOKEN
  • SALESFORCE_CLIENT_ID
  • SALESFORCE_CLIENT_SECRET
  • SALESFORCE_INSTANCE_URL

Security Notes

The server has potential SOQL injection vulnerabilities in `salesforce_query_records`, `salesforce_aggregate_query`, and `salesforce_manage_debug_logs` (when querying for usernames) due to direct string concatenation of user-provided arguments (e.g., `whereClause`, `orderBy`, `username`) into SOQL queries without explicit sanitization. Tools for `salesforce_write_apex`, `salesforce_write_apex_trigger`, and `salesforce_execute_anonymous` directly accept and execute arbitrary Apex code bodies, which is a critical risk if the upstream AI model is compromised or generates malicious code. While `SECURITY.md` mentions that 'All SOQL inputs are sanitized to prevent injection,' the code review contradicts this for certain parameters. Hardcoded secrets are not evident, as environment variables are used for authentication.

Similar Servers

Stats

Interest Score51
Security Score4
Cost ClassMedium
Avg Tokens750
Stars116
Forks68
Last Update2026-01-19

Tags

SalesforceCRMAIAutomationDevelopment