Salesforce

v1.0.0Business Applicationsstable

MCP server that enables AI assistants to interact with Salesforce orgs through the Salesforce CLI, providing tools for Apex execution, SOQL queries, metadata management, code analysis, and development automation.

dxtmcpmcp-serversalesforcesalesforce-api
Share:
44
Stars
0
Downloads
0
Weekly
0/5

What is Salesforce?

Salesforce is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that enables ai assistants to interact with salesforce orgs through the salesforce cli, providing tools for apex execution, soql queries, metadata management, code analysis, and development...

MCP server that enables AI assistants to interact with Salesforce orgs through the Salesforce CLI, providing tools for Apex execution, SOQL queries, metadata management, code analysis, and development automation.

This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • salesforce_search_objects
  • salesforce_describe_object
  • salesforce_query_records
  • salesforce_aggregate_query
  • salesforce_dml_records

Use Cases

Execute Apex code and run SOQL queries on Salesforce orgs.
Manage metadata and analyze code automatically.
Automate development tasks through Salesforce CLI.
leilaabdel

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedApr 12, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y salesforce

Manual Installation

npx -y salesforce

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Salesforce

The Salesforce MCP server connects AI assistants directly to Salesforce orgs through the Salesforce CLI and REST APIs, enabling natural-language interaction with CRM data and metadata. It exposes tools for executing SOQL and SOSL queries, performing CRUD operations on records, retrieving object metadata, calling Apex REST endpoints, and issuing Tooling API requests. Salesforce developers and admins can use it to query leads, update opportunities, inspect object schemas, or automate repetitive metadata tasks without leaving their AI client.

Prerequisites

  • Python 3.10 or later
  • uv package manager (uvx is used to run the server)
  • An active Salesforce org with a user account (sandbox or production)
  • Your Salesforce username, password, and security token (found in Salesforce under Settings → My Personal Information → Reset My Security Token)
  • An MCP-compatible AI client such as Claude Desktop
1

Locate your Salesforce credentials

You need three values: your Salesforce login username, your account password, and the security token emailed to you when you reset it. The security token is appended to your password for API logins.

2

Install uv if not already present

The server is published as mcp-salesforce-connector and is run via uvx, which is included with uv.

curl -LsSf https://astral.sh/uv/install.sh | sh
3

Test the server from the command line

Run the server once interactively to confirm authentication works before wiring it into your client.

[email protected] \
SALESFORCE_PASSWORD=yourpassword \
SALESFORCE_SECURITY_TOKEN=yourtoken \
uvx --from mcp-salesforce-connector salesforce
4

Add the server to your Claude Desktop config

Edit claude_desktop_config.json and insert the mcpServers entry. Replace placeholder values with your real credentials.

5

Restart Claude Desktop and verify connection

Restart the client and confirm the Salesforce server appears as active. Try a simple query to verify end-to-end connectivity.

Salesforce Examples

Client configuration

Full claude_desktop_config.json snippet for the Salesforce MCP server using uvx.

{
  "mcpServers": {
    "salesforce": {
      "command": "uvx",
      "args": [
        "--from",
        "mcp-salesforce-connector",
        "salesforce"
      ],
      "env": {
        "SALESFORCE_USERNAME": "[email protected]",
        "SALESFORCE_PASSWORD": "your_salesforce_password",
        "SALESFORCE_SECURITY_TOKEN": "your_security_token"
      }
    }
  }
}

Prompts to try

Connect to your Salesforce org and drive queries or updates through natural language.

- "Run a SOQL query to find all Leads created in the last 30 days with Status = 'Open' and return their names and emails."
- "Describe the Opportunity object and list all its field names and types."
- "Update the CloseDate of Opportunity ID 006... to December 31, 2025."

Troubleshooting Salesforce

Authentication fails with 'LOGIN_MUST_USE_SECURITY_TOKEN'

Your Salesforce org requires a security token appended to your password for API access. Go to Salesforce Settings → My Personal Information → Reset My Security Token, then set SALESFORCE_SECURITY_TOKEN to the token value you receive by email.

uvx command not found

Install uv first: curl -LsSf https://astral.sh/uv/install.sh | sh. Then restart your terminal so the PATH update takes effect. Verify with 'uvx --version'.

SOQL query returns no results unexpectedly

Salesforce API access is governed by field-level security and sharing rules. Confirm your user profile has read access to the queried object and fields. For sandboxes, also verify that data exists — sandboxes refreshed without data will have empty objects.

Frequently Asked Questions about Salesforce

What is Salesforce?

Salesforce is a Model Context Protocol (MCP) server that mcp server that enables ai assistants to interact with salesforce orgs through the salesforce cli, providing tools for apex execution, soql queries, metadata management, code analysis, and development automation. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Salesforce?

Install via npm with the command: npx -y salesforce. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Salesforce?

Salesforce works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Salesforce free to use?

Yes, Salesforce is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Salesforce Alternatives — Similar Business Applications Servers

Looking for alternatives to Salesforce? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.

n8n

189.1k

A comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou

LobeHub

77.5k

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

Jeecgboot

46.4k

AI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。

CowAgent

44.7k

CowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。

Minds Platform

39.2k

Platform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.

Astrbot

32.8k

AI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨

Browse More Business Applications MCP Servers

Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "salesforce": { "command": "npx", "args": ["-y", "salesforce"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Salesforce?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides