MCP Salesforce Lite
Provides secure access to Salesforce data and operations through OAuth 2.0, enabling SOQL query execution, CRUD operations on records (Accounts, Contacts, Opportunities, etc.), and object metadata retrieval with built-in security and rate limiting.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Salesforce Lite show me the last 10 opportunities created this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-salesforce-lite
Simple and lightweight Salesforce MCP server for connecting AI assistants to Salesforce data. Ideal for prototyping and small projects.
š¦ Install from PyPI: pip install mcp-salesforce-lite
š PyPI Package: https://pypi.org/project/mcp-salesforce-lite/
š GitHub Repository: https://github.com/luvl/mcp-salesforce-lite
Demo
See the MCP Salesforce Lite server in action with Claude Desktop:

The demo shows Claude Desktop using the MCP server to interact with Salesforce data - querying objects, retrieving records, and performing CRUD operations seamlessly.
Related MCP server: MCP Salesforce Server
Overview
This MCP (Model Context Protocol) server provides AI assistants like Claude with secure access to Salesforce data and operations. It implements the MCP standard to enable seamless integration between AI applications and Salesforce CRM.
Features
š Secure Salesforce authentication via OAuth 2.0
š Access to Salesforce objects (Accounts, Contacts, Opportunities, etc.)
š SOQL query execution
š CRUD operations on Salesforce records
š”ļø Built-in security and rate limiting
š Easy setup and configuration
Quick Usage
# Install the package
pip install mcp-salesforce-lite
# Use with Claude Desktop (recommended)
uvx --from mcp-salesforce-lite mcp-salesforce-lite
# Or run directly
mcp-salesforce-liteWorks with: Claude Desktop, any MCP-compatible AI assistant
Quick Start with Claude Desktop
Production Usage (Recommended)
The easiest way to use this MCP server is to install it directly from PyPI and configure it with Claude Desktop.
Step 1: Configure Claude Desktop
Add the following configuration to your Claude Desktop settings file:
Configuration File Location:
macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration:
{
"mcpServers": {
"salesforce-lite": {
"command": "uvx",
"args": [
"--from",
"mcp-salesforce-lite",
"mcp-salesforce-lite"
],
"env": {
"SALESFORCE_ACCESS_TOKEN": "your_access_token",
"SALESFORCE_INSTANCE_URL": "your_instance_url"
}
}
}
}Step 2: Set Up Salesforce Credentials
Replace the environment variables in the configuration:
SALESFORCE_ACCESS_TOKEN: Your Salesforce access tokenSALESFORCE_INSTANCE_URL: Your Salesforce instance URL (e.g.,https://yourcompany.my.salesforce.com)
Step 3: Restart Claude Desktop
After saving the configuration, restart Claude Desktop. You should see a hammer icon indicating that tools are available.
Step 4: Test the Integration
Try asking Claude:
"List available Salesforce objects"
"Describe the Account object"
"Execute a SOQL query to get recent leads"
Prerequisites
Python 3.10 or higher
Salesforce Developer/Production org
Connected App configured in Salesforce
Development Setup
If you want to modify or contribute to this MCP server, follow these development setup instructions.
Installation
Option 1: Using uv (Recommended for development)
# Install uv if you haven't already
brew install uv # macOS
# or
curl -LsSf https://astral.sh/uv/install.sh | sh # Linux/macOS
# Clone and install the server
git clone https://github.com/luvl/mcp-salesforce-lite.git
cd mcp-salesforce-lite
uv syncOption 2: Using Poetry
git clone https://github.com/luvl/mcp-salesforce-lite.git
cd mcp-salesforce-lite
poetry installSalesforce Development Setup
Create a .env file in the project root:
SALESFORCE_ACCESS_TOKEN=your_access_token
SALESFORCE_INSTANCE_URL=your_instance_urlUsage
Development Mode
First, make sure you have your Salesforce credentials configured in your .env file.
Method 1: Direct Python Execution
# Run the server directly
python src/mcp_salesforce_lite/server.pyMethod 2: Using Poetry
# Run with Poetry
poetry run python src/mcp_salesforce_lite/server.pyMethod 3: Using UV (Recommended)
# Run with UV
uv run python src/mcp_salesforce_lite/server.pyTesting with MCP Inspector
If you have the MCP CLI installed, you can test your server:
# Test with MCP Inspector
mcp inspector
# Or run in development mode
mcp dev src/mcp_salesforce_lite/server.pyHow to Release the Server as a Pip Package
The server can be packaged and distributed via PyPI using the included pyproject.toml configuration.
Available Tools
The server provides the following tools that AI assistants can use:
Query Tools
soql_query: Execute SOQL queries (schema must be defined to carefully ask for confirmation of UPDATE and DELETE operations)search_records: Search records across multiple objects with limit and paginationget_record: Retrieve a specific record by ID with limit and pagination
CRUD Operations
create_record: Create new records (make sure to describe_object first, and find the reference fields of the objects)update_record: Update existing recordsdelete_record: Delete records
Metadata Tools
describe_object_definition: Get object metadata and field information with paginationlist_avail_objects: List available Salesforce objects with limit and pagination
Development Claude Desktop Integration
If you're developing or running the server from source, you can use these alternative configurations:
š” Tip: Example configuration files are provided in the examples/ directory:
examples/claude_config_direct.json- Direct Python executionexamples/claude_config_poetry.json- Poetry executionexamples/claude_config_uv.json- UV execution (recommended)
Option 1: Direct Python Execution
{
"mcpServers": {
"salesforce-lite": {
"command": "python",
"args": ["/ABSOLUTE/PATH/TO/mcp-salesforce-lite/src/mcp_salesforce_lite/server.py"],
"env": {
"SALESFORCE_ACCESS_TOKEN": "your_access_token",
"SALESFORCE_INSTANCE_URL": "your_instance_url"
}
}
}
}Option 2: Poetry Execution
{
"mcpServers": {
"salesforce-lite": {
"command": "poetry",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/mcp-salesforce-lite",
"run",
"python",
"src/mcp_salesforce_lite/server.py"
],
"env": {
"SALESFORCE_ACCESS_TOKEN": "your_access_token",
"SALESFORCE_INSTANCE_URL": "your_instance_url"
}
}
}
}Option 3: UV Execution (Recommended for Development)
{
"mcpServers": {
"salesforce-lite": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/mcp-salesforce-lite",
"run",
"python",
"src/mcp_salesforce_lite/server.py"
],
"env": {
"SALESFORCE_ACCESS_TOKEN": "your_access_token",
"SALESFORCE_INSTANCE_URL": "your_instance_url"
}
}
}
}Project Structure
mcp-salesforce-lite/
āāā src/
ā āāā mcp_salesforce_lite/
ā āāā __init__.py
ā āāā server.py # Main MCP server
ā āāā client.py # Salesforce client wrapper
ā āāā config.py # Configuration management
ā āāā tools/
ā āāā __init__.py
ā āāā query.py # SOQL query tools
ā āāā crud.py # Create, Read, Update, Delete tools
ā āāā metadata.py # Object metadata tools
āāā examples/
ā āāā basic_usage.py
ā āāā claude_config.json
āāā assets/
ā āāā sf-demo.gif # Demo GIF showing usage
āāā .env.example
āāā pyproject.toml
āāā poetry.lock
āāā uv.lockRelease
Prerequisites
Register for PyPI Production: Go to https://pypi.org/account/register/
Enable 2FA: Set up two-factor authentication in your account settings
Create API Token: Go to https://pypi.org/manage/account/token/ and create a token
Update .pypirc: Replace
pypi-YOUR_PRODUCTION_TOKEN_FROM_PYPI_ORG_HEREwith your actual token
Publishing Process
Test on TestPyPI first:
# Build the package
uv build
# or: poetry build
# Upload to TestPyPI
twine upload --repository testpypi --config-file .pypirc dist/*
# Test install from TestPyPI
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ mcp-salesforce-litePublish to Production PyPI:
# Upload to production PyPI
twine upload --repository pypi --config-file .pypirc dist/*
# Test install from production PyPI
pip install mcp-salesforce-liteVersion Management
To publish a new version:
Update the version in
pyproject.tomlRebuild:
uv buildorpoetry buildUpload:
twine upload --repository pypi --config-file .pypirc dist/*
Available Tools
8 toolscreate_recordC
Create a new Salesforce record
Inputs: object_type (required), record_data (required).
delete_recordC
Delete a Salesforce record
Inputs: object_type (required), record_id (required).
describe_object_definitionC
Get metadata and field information for a Salesforce object with pagination
Inputs: object_type (required), limit, offset.
get_recordC
Retrieve a specific Salesforce record by ID with limit and pagination
Inputs: object_type (required), record_id (required), limit.
list_avail_objectsC
List available Salesforce objects with limit and pagination (10-20 objects max)
Inputs: limit, offset, custom_only.
search_recordsC
Search for records across multiple Salesforce objects
Inputs: search_term (required), object_types (required), limit.
soql_queryC
Execute a SOQL query against Salesforce
Inputs: query (required).
update_recordC
Update an existing Salesforce record
Inputs: object_type (required), record_id (required), update_data (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose with no ambiguity. For example, create_record, get_record, update_record, and delete_record cover distinct CRUD operations, while describe_object_definition, list_avail_objects, search_records, and soql_query handle metadata, listing, searching, and querying respectively. There is no overlap that would cause misselection.
All tool names follow a consistent verb_noun pattern using snake_case, such as create_record, delete_record, and describe_object_definition. This predictability makes it easy for agents to understand and use the tools without confusion from mixed conventions.
With 8 tools, the server is well-scoped for Salesforce operations. Each tool earns its place by covering essential functions like CRUD, metadata access, listing, searching, and querying, without being overly sparse or bloated. This count is ideal for the domain's typical needs.
The tool surface provides complete coverage for core Salesforce interactions. It includes full CRUD operations (create, get, update, delete), metadata handling (describe_object_definition, list_avail_objects), and flexible data access (search_records, soql_query). There are no obvious gaps that would hinder agent workflows in this domain.
Maintenance
Related MCP Connectors
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Connect AI agents to 1000+ apps with managed authentication and tool-calling.
Connect ChatGPT or Claude to your CRM, store or shipping API. Keys stay out of the chat.
Connect AI agents to Prosyo to query pipeline metrics, search B2B prospects, and manage multichannel LinkedIn and cold email outreach.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to query Salesforce data including retrieving accounts by ID, searching accounts by name, and fetching recent opportunities through authenticated API access.-
- AlicenseAqualityCmaintenanceEnables AI assistants to interact with Salesforce through a secure interface for performing CRUD operations, executing SOQL queries, and managing schema discovery. It features a smart learning system that analyzes custom objects and fields to provide intelligent assistance tailored to specific Salesforce configurations.1453 npm17BSD 2-Clause "Simplified"
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Salesforce CRM by executing SOQL queries and performing CRUD operations on records such as Leads. It supports secure OAuth 2.0 authentication and provides management for both standard and custom Salesforce fields.-
- AlicenseNot gradedqualityDmaintenanceEnables AI models to interactively explore, analyze, and manage Salesforce organizations through OAuth2 authentication and standardized tools.53 npm3MIT