Salesforce Lite

by luvl

Not rated
GitHub

About

A simple and lightweight server for connecting AI assistants to Salesforce data.

Details

Author
luvl
Categories
Cloud Service, Other

Setup

Install Salesforce Lite in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/luvl/mcp-salesforce-lite

Follow the installation instructions in the repository README, then restart your MCP client.

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

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.

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.

- πŸ” 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

# 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-lite

Works with:Claude Desktop, any MCP-compatible AI assistant

The easiest way to use this MCP server is to install it directly from PyPI and configure it with Claude Desktop.

Add the following configuration to your Claude Desktop settings file:

- macOS/Linux:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%\Claude\claude_desktop_config.json

{ "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" } } } }

Replace the environment variables in the configuration:

- SALESFORCE_ACCESS_TOKEN: Your Salesforce access token
- SALESFORCE_INSTANCE_URL: Your Salesforce instance URL (e.g.,https://yourcompany.my.salesforce.com)

After saving the configuration, restart Claude Desktop. You should see a hammer icon indicating that tools are available.

- "List available Salesforce objects"
- "Describe the Account object"
- "Execute a SOQL query to get recent leads"

- Python 3.10 or higher
- Salesforce Developer/Production org
- Connected App configured in Salesforce

If you want to modify or contribute to this MCP server, follow these development setup instructions.

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 sync
git clone https://github.com/luvl/mcp-salesforce-lite.git cd mcp-salesforce-lite poetry install
SALESFORCE_ACCESS_TOKEN=your_access_token SALESFORCE_INSTANCE_URL=your_instance_url

First, make sure you have your Salesforce credentials configured in your.envfile.

# Run the server directly python src/mcp_salesforce_lite/server.py
# Run with Poetry poetry run python src/mcp_salesforce_lite/server.py
# Run with UV uv run python src/mcp_salesforce_lite/server.py

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.py

How to Release the Server as a Pip Package

The server can be packaged and distributed via PyPI using the includedpyproject.tomlconfiguration.

The server provides the following tools that AI assistants can use:

- 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 pagination
- get_record: Retrieve a specific record by ID with limit and pagination

- create_record: Create new records (make sure to describe_object first, and find the reference fields of the objects)
- update_record: Update existing records
- delete_record: Delete records

- describe_object_definition: Get object metadata and field information with pagination
- list_avail_objects: List available Salesforce objects with limit and pagination

If you're developing or running the server from source, you can use these alternative configurations:

πŸ’‘ Tip:Example configuration files are provided in theexamples/directory:

- examples/claude_config_direct.json- Direct Python execution
- examples/claude_config_poetry.json- Poetry execution
- examples/claude_config_uv.json- UV execution (recommended)

{ "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" } } } }
{ "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" } } } }
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.lock

- Register for PyPI Production: Go tohttps://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: Replacepypi-YOUR_PRODUCTION_TOKEN_FROM_PYPI_ORG_HEREwith your actual token

# 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-lite
# Upload to production PyPI twine upload --repository pypi --config-file .pypirc dist/ # Test install from production PyPI pip install mcp-salesforce-lite

- Update the version inpyproject.toml
- Rebuild:uv buildorpoetry build
- Upload:twine upload --repository pypi --config-file .pypirc dist/*

Exposes Salesforce APIs as tools for AI agents.

Integrates Claude with Salesforce, enabling natural language interactions with your Salesforce data and metadata.

Integrate with Salesforce to perform actions like testing connections and running queries.

A read-only MCP server by CData that enables LLMs to query live data from Salesloft.

Connects AI applications with Salesforce Commerce Cloud using the Model Context Protocol (MCP).

HubSpot MCP server by CData for querying live HubSpot CRM data from AI agents, including contacts, companies, deals, and engagement records.

Expose Salesforce APIs as tools for AI agents, enabling natural language interaction with Salesforce organizations.

Provides seamless integration with Salesforce using OAuth authentication.

Merlin Energy β€” BESS Quoting & Sales Intelligence

AI-powered BESS quoting & energy sales agent for Claude and other MCP clients. Generate TrueQuoteβ„’ estimates, qualify leads, compare competitors, and produce proposals β€” in seconds.

A read-only MCP server for querying live Salesforce Einstein data using a CData JDBC driver.

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.