原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Salesforce Metadata MCP

作者:semwalajay83-sem版本 3.2.0i★ –i在你的电脑上运行
注册名称io.github.semwalajay83-sem/salesforce-metadata-mcp

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 营销与社交媒体
  • 你需要填写:SF_INSTANCE_URL, SF_ACCESS_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SF_INSTANCE_URL, SF_ACCESS_TOKEN, SF_ALIAS, SF_TOOLSETS, SF_PRODUCTION_GUARD

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "salesforce-metadata": {
      "command": "npx",
      "args": [
        "-y",
        "salesforce-metadata-mcp"
      ],
      "env": {
        "SF_INSTANCE_URL": "your-value",
        "SF_ACCESS_TOKEN": "your-value",
        "SF_ALIAS": "your-value",
        "SF_TOOLSETS": "your-value",
        "SF_PRODUCTION_GUARD": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add salesforce-metadata --env SF_INSTANCE_URL=your-value --env SF_ACCESS_TOKEN=your-value --env SF_ALIAS=your-value --env SF_TOOLSETS=your-value --env SF_PRODUCTION_GUARD=your-value -- npx -y salesforce-metadata-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "salesforce-metadata": {
      "command": "npx",
      "args": [
        "-y",
        "salesforce-metadata-mcp"
      ],
      "env": {
        "SF_INSTANCE_URL": "your-value",
        "SF_ACCESS_TOKEN": "your-value",
        "SF_ALIAS": "your-value",
        "SF_TOOLSETS": "your-value",
        "SF_PRODUCTION_GUARD": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "salesforce-metadata": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "salesforce-metadata-mcp"
      ],
      "env": {
        "SF_INSTANCE_URL": "your-value",
        "SF_ACCESS_TOKEN": "your-value",
        "SF_ALIAS": "your-value",
        "SF_TOOLSETS": "your-value",
        "SF_PRODUCTION_GUARD": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • SF_INSTANCE_URL 必填 env
    Salesforce org URL, e.g. https://yourorg.my.salesforce.com
  • SF_ACCESS_TOKEN 机密 env
    Salesforce access token (or use SF_ALIAS / JWT variables instead)
  • SF_ALIAS env
    Salesforce CLI org alias (alternative to SF_ACCESS_TOKEN)
  • SF_TOOLSETS env
    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 c…
  • SF_PRODUCTION_GUARD env
    Refuse destructive tools on production orgs: 'destructive' (default), 'strict', or 'off'. Metadata creation is never affected.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 semwalajay83-sem 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“营销与社交媒体”中的其他服务器比较i

  • 星标数多于此分类中其他 3592 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 3592 个服务器的 42% 更新
  • 基础检查结果等于或优于此分类中其他 3592 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Salesforce Metadata MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:SF_INSTANCE_URL, SF_ACCESS_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(3.2.0)于39天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

MCP YouTube Transcript

An MCP server retrieving transcripts of YouTube videos

作者:jkawamoto正在增长★ 49511天前更新

在你的电脑上运行

Google Analytics MCP

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

作者:surendranb正在增长↓ 1088/周★ 24411天前更新

在你的电脑上运行

BibiGPT YouTube Video Summarizer

AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.

作者:JimmyLv起步阶段★ 13711天前更新

在云端运行✓ bibigpt.co

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

salesforce-metadata-mcp

The only Salesforce MCP server that builds Agentforce agents, OmniStudio components, and DevOps Center pipelines — alongside a complete daily developer loop (schema describe, Apex read, debug logs) and 228 tools total for building, configuring, and automating Salesforce orgs directly from Claude or any MCP client.


Quick Start

npx -y salesforce-metadata-mcp

Or install globally:

npm install -g salesforce-metadata-mcp

salesforce-metadata-mcp


Configuration (Claude Desktop / Claude Code)

Add to your MCP configuration (claude_desktop_config.json or .claude/settings.json):

{

"mcpServers": { "salesforce": { "command": "npx", "args": ["salesforce-metadata-mcp"], "env": { "SF_INSTANCE_URL": "https://your-org.salesforce.com", "SF_ACCESS_TOKEN": "your_access_token" } } } }

See SETUP.md for all authentication methods and detailed setup instructions.

One-click install (Claude Desktop)

Download salesforce-metadata-mcp- .mcpb from the latest release, then drag it into Claude Desktop → Settings → Extensions. It prompts for your org URL and credentials — no JSON editing.

The bundle resolves the server from npm at launch rather than embedding a copy, so it always runs the current published version and never needs re-downloading after an upgrade.

Docker
docker build -t salesforce-metadata-mcp .

docker run -i --rm \ -e SF_INSTANCE_URL="https://your-org.my.salesforce.com" \ -e SF_ACCESS_TOKEN="your_access_token" \ salesforce-metadata-mcp

The image builds from source, runs as a non-root user, and ships production dependencies only. Because this server speaks MCP over stdio, -i is required — the container is driven by its client, not run as a background service. SF_ALIAS will not work in a container: the Salesforce CLI's login flow needs a browser, so use token, JWT, refresh-token, or client-credentials variables instead.


Toolsets — loading 228 tools without burning your context

All 228 tools are always available. Most are not loaded into the model's context until something asks for them.

Listing every tool up front costs roughly 98,000 tokens — about half a 200k context window, spent before you type anything, whether or not the session ever touches OmniStudio or DevOps Center. A 228-candidate tool list also makes the model measurably worse at picking the right tool. So the server starts with a small core loaded and pulls in the rest on demand:

StartupTools listedApprox. tokens
Default (core,metadata)20~9,900
After loading two more toolsets43~20,800
SF_TOOLSETS=all233~99,100

The default covers what nearly every session needs: describe/list objects, SOQL query, deploy/retrieve/delete metadata, deploy status, and core schema creation (objects, fields, formula fields, picklist values, validation rules, approval processes).

Five tools are always present and make everything else reachable:

  • `sf_find_tool` — search all 228 tools by name and load whatever contains the matches, in one call. Ask for *"create an omniscript"* and it finds the tools, loads omnistudio, and they are callable immediately. This is usually all you or the model needs.
  • `sf_load_toolset` — load named toolsets explicitly.
  • `sf_list_toolsets` — browse all toolsets, their tool counts, and what is loaded.
  • `sf_call_tool` — invoke any tool by name, loaded or not, without it having to appear in the tool list first. Arguments are validated and the production guard applies exactly as on a direct call.
  • `sf_tool_schema` — return any tool's input schema, so sf_call_tool can be constructed for a tool the client cannot see.

In practice you don't manage this by hand: ask for what you want, and the model loads what it needs.

If loaded tools don't show up

Loading a toolset enables it on the server and emits notifications/tools/list_changed. A client is supposed to re-fetch tools/list when it sees that. Some clients don't — and when that happens, the load reports success, the tools really are enabled, and the model still cannot call any of them because they never entered its tool list.

Two things handle this, so no client can lose access to a tool:

  • sf_load_toolset checks whether the client re-fetched and says so in its response, instead of reporting an unqualified success for tools that have become unreachable.
  • sf_call_tool reaches every tool without needing a re-fetch at all. Combined with sf_tool_schema, the full 228-tool surface is usable from the handshake tool list alone — even under SF_TOOLSETS=none.

To restore the previous behaviour of loading everything at startup, set SF_TOOLSETS=all. To start with only the five meta-tools, set SF_TOOLSETS=none. To pick your own core, pass a list:

{ "env": { "SF_TOOLSETS": "metadata,objects,automation,security" } }

Available toolsets: core, metadata, objects, data, flows, automation, security, apex, lwc, ui, pages, actions, agentforce, omnistudio, omnichannel, devops, deployment, integrations, identity, reports, experience, admin, monitoring, audit, einstein, knowledge, cpq, sandbox, streaming, visualforce, aura, comms, mcp, i18n.

Flow tools live in their own flows toolset because sf_create_flow carries the full Flow element schema — 15,266 bytes (~4,126 tokens) on its own, the largest tool definition in the server. Keeping it out of the default means sessions that never build a Flow never pay for it, while sessions that do still get the complete validated schema.


Tools — 228 total

Highlights below; see TOOLS.md for the complete reference with parameters and example prompts.

Objects & Fields
ToolDescription
sf_create_custom_objectCreate a custom object with all settings
sf_create_custom_fieldCreate a field on any object (all types)
sf_create_formula_fieldCreate formula fields with full formula language support
sf_add_picklist_valuesAdd values to existing picklist fields
sf_create_custom_metadata_typeCreate a Custom Metadata Type (__mdt)
sf_create_custom_metadata_recordCreate records for a Custom Metadata Type
sf_create_custom_labelCreate or update Custom Labels
sf_create_custom_settingCreate Hierarchy or List Custom Settings
sf_create_global_value_setCreate shared picklist usable across objects
sf_create_record_typeCreate Record Types with picklist overrides
sf_create_business_processCreate Business Processes for Opp/Lead/Case
sf_create_page_layoutCreate Page Layouts with sections and fields
sf_create_sharing_ruleCreate criteria or ownership sharing rules
sf_create_field_dependencyCreate controlling/dependent picklist dependency
sf_describe_objectRead an object's full schema — fields, types, picklist values, child relationships, record types
sf_list_objectsFind objects by partial name or label — the discovery step before sf_describe_object
sf_get_metadata_dependenciesImpact analysis: what references this component, and does the field hold data? Read-only
sf_update_custom_objectUpdate object-level properties, risk-classified with a confirmation gate
sf_update_custom_fieldUpdate a field's definition, risk-classified — destructive changes report impact before applying
Automation
ToolDescription
sf_create_flowCreate any Flow type — Assignment, Decision, GetRecords, CreateRecords (with field values), DeleteRecords, Loop
sf_create_approval_processCreate multi-step approval processes
sf_create_validation_ruleCreate data validation rules
sf_create_workflow_field_updateCreate workflow field update actions
sf_create_email_alertCreate workflow email alert actions
sf_create_platform_eventCreate Platform Event objects
sf_create_assignment_ruleCreate Lead/Case assignment rules
sf_create_escalation_ruleCreate Case escalation rules
sf_create_auto_response_ruleCreate Web-to-Lead/Case auto-response rules
sf_create_matching_ruleCreate duplicate matching rules
sf_create_duplicate_ruleCreate duplicate detection rules
sf_create_apex_email_serviceCreate inbound Apex email services
sf_create_scheduled_jobSchedule an Apex class via cron
Security & Access
ToolDescription
sf_create_permission_setCreate Permission Sets with all permissions
sf_create_roleCreate roles in the role hierarchy
sf_create_queueCreate queues with members and objects
sf_create_named_credentialCreate Named Credentials for callouts
sf_get_field_permissionsAudit current field-level security grants across Profiles and Permission Sets
UI & Experience
ToolDescription
sf_create_lightning_appCreate Lightning Apps with nav/utility bars
sf_create_tabCreate Custom Tabs for objects
sf_create_compact_layoutCreate Compact Layouts (highlights panel)
sf_create_list_viewCreate List Views with filters and columns
sf_create_email_templateCreate HTML/text email templates
sf_create_static_resourceCreate Static Resources from text content
sf_create_custom_notification_typeCreate Custom Notification Types
sf_create_report_typeCreate Custom Report Types
sf_create_dashboardCreate Dashboards with components
Apex Development
ToolDescription
sf_create_apex_classDeploy any Apex class to the org
sf_create_apex_triggerDeploy an Apex trigger on any object
sf_create_apex_test_classDeploy test classes, optionally run tests
sf_run_apex_testsRun test classes and get pass/fail results
sf_execute_anonymous_apexExecute anonymous Apex and see output
sf_get_apex_classRead the source of an existing Apex class
sf_get_apex_triggerRead the source of an existing Apex trigger
sf_enable_debug_logsTurn on Apex debug logging for a user (TraceFlag)
sf_disable_debug_logsTurn Apex debug logging back off (deletes active TraceFlags)
sf_get_debug_logsList recent Apex debug logs
sf_get_debug_log_bodyRead the full content of a debug log
sf_scan_apex_antipatternsLightweight heuristic scan for SOQL/DML-in-loop, hardcoded IDs, debug statements
sf_run_code_scannerMulti-engine static analysis (PMD, SFGE SOQL-injection data-flow, RetireJS, ESLint) via Salesforce Code Analyzer
LWC Development
ToolDescription
sf_create_lwcDeploy a full LWC with HTML, JS, CSS
sf_update_lwcUpdate an existing LWC component
Experience Cloud
ToolDescription
sf_create_experience_siteCreate Experience Cloud sites
sf_create_experience_pageCreate pages within Experience sites
Agentforce
ToolDescription
sf_create_agentCreate Agentforce Agent (Bot shell)

| sf_create_agent_action | Create Ag

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx