salesforce-metadata-mcp

v3.2.1
io.github.semwalajay83-sem/salesforce-metadata-mcp Checked 8 hours ago Published 11 days ago

The only Salesforce MCP with Agentforce, OmniStudio & DevOps Center tools — 228 total.

Values you need

VariableWhat it is
SF_INSTANCE_URLrequired Salesforce org URL, e.g. https://yourorg.my.salesforce.com
SF_ACCESS_TOKENoptional secret Salesforce access token (or use SF_ALIAS / JWT variables instead)
SF_ALIASoptional Salesforce CLI org alias (alternative to SF_ACCESS_TOKEN)
SF_TOOLSETSoptional 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_GUARDoptional 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.1
Add 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

  1. Ask the user for: SF_INSTANCE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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