salesforce-metadata-mcp
v3.2.1The only Salesforce MCP with Agentforce, OmniStudio & DevOps Center tools — 228 total.
Values you need
| Variable | What it is | |
|---|---|---|
SF_INSTANCE_URL | required | Salesforce org URL, e.g. https://yourorg.my.salesforce.com |
SF_ACCESS_TOKEN | optional secret | Salesforce access token (or use SF_ALIAS / JWT variables instead) |
SF_ALIAS | optional | Salesforce CLI org alias (alternative to SF_ACCESS_TOKEN) |
SF_TOOLSETS | optional | Toolsets to load at startup: 'all', 'none', or a comma-separated list. Default: core,metadata. All 228 tools stay available via sf_find_tool / sf_load_toolset, and callable via sf_call_tool even on clients that do not refresh their tool list. |
SF_PRODUCTION_GUARD | optional | Refuse destructive tools on production orgs: 'destructive' (default), 'strict', or 'off'. Metadata creation is never affected. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add salesforce-metadata-mcp -e 'SF_INSTANCE_URL=<SF_INSTANCE_URL>' -- npx -y salesforce-metadata-mcp@3.2.1Add to
claude_desktop_config.json{
"mcpServers": {
"salesforce-metadata-mcp": {
"args": [
"-y",
"salesforce-metadata-mcp@3.2.1"
],
"command": "npx",
"env": {
"SF_INSTANCE_URL": "<SF_INSTANCE_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"salesforce-metadata-mcp": {
"args": [
"-y",
"salesforce-metadata-mcp@3.2.1"
],
"command": "npx",
"env": {
"SF_INSTANCE_URL": "<SF_INSTANCE_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SF_INSTANCE_URL",
"id": "sf-instance-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"salesforce-metadata-mcp": {
"args": [
"-y",
"salesforce-metadata-mcp@3.2.1"
],
"command": "npx",
"env": {
"SF_INSTANCE_URL": "${input:sf-instance-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.salesforce-metadata-mcp]
command = "npx"
args = ["-y", "salesforce-metadata-mcp@3.2.1"]
env = { "SF_INSTANCE_URL" = "<SF_INSTANCE_URL>" }For AI agents
- Ask the user for: SF_INSTANCE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: sf_create_custom_object, sf_create_custom_field, sf_add_picklist_values, sf_create_approval_process, sf_create_validation_rule, sf_create_workflow_field_update, sf_create_formula_field, sf_deploy_metadata, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json