Salesforce for VS Code
io.github.mindstone/mcp-server-salesforce
Salesforce CRM MCP server: accounts, contacts, opportunities, leads, tasks, and custom objects
client:VS Code
transport:stdio
runtime:npm
Install Salesforce in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "salesforce-client-id",
"description": "SALESFORCE_CLIENT_ID",
"password": true
},
{
"type": "promptString",
"id": "salesforce-client-secret",
"description": "SALESFORCE_CLIENT_SECRET",
"password": true
},
{
"type": "promptString",
"id": "salesforce-sandbox",
"description": "SALESFORCE_SANDBOX",
"password": true
},
{
"type": "promptString",
"id": "salesforce-access-token",
"description": "SALESFORCE_ACCESS_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "salesforce-instance-url",
"description": "SALESFORCE_INSTANCE_URL",
"password": true
},
{
"type": "promptString",
"id": "salesforce-config-dir",
"description": "SALESFORCE_CONFIG_DIR",
"password": true
},
{
"type": "promptString",
"id": "salesforce-oauth-port",
"description": "SALESFORCE_OAUTH_PORT",
"password": true
},
{
"type": "promptString",
"id": "salesforce-oauth-scopes",
"description": "SALESFORCE_OAUTH_SCOPES",
"password": true
}
],
"servers": {
"mcp-server-salesforce": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-salesforce"
],
"env": {
"SALESFORCE_CLIENT_ID": "${input:salesforce-client-id}",
"SALESFORCE_CLIENT_SECRET": "${input:salesforce-client-secret}",
"SALESFORCE_SANDBOX": "${input:salesforce-sandbox}",
"SALESFORCE_ACCESS_TOKEN": "${input:salesforce-access-token}",
"SALESFORCE_INSTANCE_URL": "${input:salesforce-instance-url}",
"SALESFORCE_CONFIG_DIR": "${input:salesforce-config-dir}",
"SALESFORCE_OAUTH_PORT": "${input:salesforce-oauth-port}",
"SALESFORCE_OAUTH_SCOPES": "${input:salesforce-oauth-scopes}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs