mcp
@salesforcecli
关于 mcp
MCP Server for interacting with Salesforce instances
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"Salesforce DX": {
"command": "npx",
"args": [
"-y",
"@salesforce/mcp",
"--orgs",
"DEFAULT_TARGET_ORG",
"--toolsets",
"orgs,metadata,data,users",
"--tools",
"run_apex_test",
"--allow-non-ga-tools"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is mcp?
mcp is a Model Context Protocol (MCP) server that enables large language models (LLMs) to interact with Salesforce orgs. It provides a robust set of tools for reading, managing, and operating Salesforce resources securely.
How to use mcp?
Install and configure mcp by adding its JSON configuration to your MCP client’s settings. The server is run via npx -y @salesforce/mcp with required --orgs flag and optional --toolsets, --tools, and other flags. See the README for client-specific examples (VS Code, Claude Code, Cline, Cursor, etc.).
Key features of mcp
- Interact with Salesforce orgs through LLMs securely.
- Selectively enable tool groups via toolsets (orgs, metadata, data, users).
- Specify individual tools with the
--toolsflag. - Support for multiple authorized orgs using the
--orgsflag. - Boolean flags for debug logging, non‑GA tools, dynamic tool discovery, and telemetry control.
- Works with various MCP clients (VS Code, Claude Code, Cline, Cursor, etc.).
Use cases of mcp
- Query and manage Salesforce metadata, data, and users through an LLM.
- Run Apex tests and retrieve results via natural language.
- Automate Salesforce administrative tasks using AI assistants.
- Build custom AI‑powered workflows that interact with Salesforce orgs.
FAQ from mcp
What toolsets does mcp support?
The --toolsets flag accepts sets like orgs, metadata, data, users, or all to enable all tools. Toolsets group related functionality to reduce LLM context.
How do I specify which org mcp can access?
Use the required --orgs flag with values such as DEFAULT_TARGET_ORG, DEFAULT_TARGET_DEV_HUB, ALLOW_ALL_ORGS, or a specific username/alias. Org must be authorized locally first.
Does mcp require any additional runtime or dependencies?
mcp is installed via npx from the @salesforce/mcp npm package. No extra runtime is needed beyond Node.js and a compatible MCP client.
Can I enable only specific tools instead of entire toolsets?
Yes, use the --tools flag to list individual tool names (e.g., run_apex_test). You can combine --toolsets and --tools to fine‑tune which tools are active.
Is telemetry enabled by default? How can I disable it?
Telemetry is enabled by default. To disable it, include the --no-telemetry Boolean flag in the args option of your MCP client configuration.
常见问题
What toolsets does mcp support?
The `--toolsets` flag accepts sets like `orgs`, `metadata`, `data`, `users`, or `all` to enable all tools. Toolsets group related functionality to reduce LLM context.
How do I specify which org mcp can access?
Use the required `--orgs` flag with values such as `DEFAULT_TARGET_ORG`, `DEFAULT_TARGET_DEV_HUB`, `ALLOW_ALL_ORGS`, or a specific username/alias. Org must be authorized locally first.
Does mcp require any additional runtime or dependencies?
mcp is installed via `npx` from the `@salesforce/mcp` npm package. No extra runtime is needed beyond Node.js and a compatible MCP client.
Can I enable only specific tools instead of entire toolsets?
Yes, use the `--tools` flag to list individual tool names (e.g., `run_apex_test`). You can combine `--toolsets` and `--tools` to fine‑tune which tools are active.
Is telemetry enabled by default? How can I disable it?
Telemetry is enabled by default. To disable it, include the `--no-telemetry` Boolean flag in the `args` option of your MCP client configuration.
基本信息
其他 分类下的更多 MCP 服务器
Mobile Mcp
mobile-nextModel Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
Website
FunnyWolfAdversary simulation and Red teaming platform with AI
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
评论