salesforce-mcp-claude

pablocamprubi/salesforce-mcp-claude

3.2

If you are the rightful owner of salesforce-mcp-claude and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This is a simplified Salesforce Model Context Protocol server for creating custom objects, querying data, and utilizing Einstein Studio models.

Tools
7
Resources
0
Prompts
0

Salesforce MCP Connector - Simplified Edition šŸš€

Must read - This is not an official Salesforce repository.

Welcome to the simplified Salesforce Model Context Protocol server! This MCP allows you to create custom objects and query data in your Salesforce org using natural language.

This repository has been cleaned and simplified to focus on object creation, data querying, and Einstein Studio model functionality. If you need the full feature set, please visit the original repository.

What You Can Do ✨

Create Custom Objects šŸ› ļø

  • Create new custom objects in your Salesforce org
  • Add custom fields to your objects during creation
  • Examples:
    • "Create a new custom object named 'Product' with fields for name, price, and category"
    • "Create a 'Contract' object with text, number, and picklist fields"

Query Your Data šŸ”

  • Execute SOQL queries to retrieve records from your Salesforce org
  • Search across multiple objects using SOSL
  • Explore object schemas and field definitions
  • Get detailed information about your Salesforce objects
  • Examples:
    • "Show me all accounts created this year with their annual revenue"
    • "What fields are available on the Contact object?"
    • "Search for all records containing 'Acme' across the org"
    • "Describe the Account object structure"

Create Einstein Studio Models šŸ¤–

  • Create predictive machine learning models using Einstein Studio
  • Configure model capabilities like binary classification and regression
  • Define outcome fields and prediction goals
  • Specify training data sources and model fields
  • Examples:
    • "Create a lead conversion prediction model using XGBoost algorithm"
    • "Build a sales opportunity forecasting model with regression capability"
    • "Create a customer churn prediction model with specific data fields"

Quick Start ⚔

Local Installation

First install the server:

git clone <this-repository>
cd salesforce-mcp
uv venv
uv pip install -e .

Then, configure it in your claude_desktop_config.json file:

{
    "mcpServers": {
        "salesforce": {
            "command": "uv",
            "args": [
                "--directory",
                "[REPO_CLONE_PATH]/salesforce-mcp/src",
                "run",
                "server.py"
            ],
            "env": {
                "USERNAME": "YOUR_SALESFORCE_USERNAME",
                "PASSWORD": "YOUR_SALESFORCE_PASSWORD",
                "SECURITY_TOKEN": "YOUR_SALESFORCE_SECURITY_TOKEN"
            }
        }
    }
}

Replace the placeholder values with your Salesforce credentials:

  • YOUR_SALESFORCE_USERNAME: Your Salesforce username
  • YOUR_SALESFORCE_PASSWORD: Your Salesforce password
  • YOUR_SALESFORCE_SECURITY_TOKEN: Your Salesforce security token

Supported Functions šŸ“„

Object Creation Functions

Tool NameDescriptionRequired Input FieldsActive
create_objectCreate a new object in Salesforcename, plural_name, api_nameāœ…
create_object_with_fieldsCreate a new object in Salesforce with custom fieldsname, plural_name, api_name, description, fieldsāœ…

Data Query Functions

Tool NameDescriptionRequired Input FieldsActive
run_soql_queryExecute a SOQL query against Salesforcequeryāœ…
run_sosl_searchExecute a SOSL search across multiple objectssearchāœ…
get_object_fieldsGet detailed field information for a Salesforce objectobject_nameāœ…
describe_objectGet comprehensive schema information for an object (markdown format)object_name, include_field_details (optional)āœ…

Einstein Studio Model Functions

Tool NameDescriptionRequired Input FieldsActive
create_einstein_modelCreate an Einstein Studio predictive model using AppFrameworkTemplateBundlemodel_name, description, outcome_field, data_source, fieldsāœ…

Field Types Supported

When creating objects with fields, you can use the following field types:

  • Text - Standard text field
  • Number - Numeric field with precision and scale
  • Checkbox - Boolean field
  • Picklist - Dropdown field with predefined values
  • Lookup - Reference to another object

Einstein Studio Model Configuration

When creating Einstein Studio models, you can specify:

  • Model Capabilities: BinaryClassification, Regression, MultiClassification
  • Algorithms: XGBoost, LinearRegression, LogisticRegression
  • Field Types: Text (Categorical), Number (Numerical)
  • Goals: Maximize or Minimize the outcome
  • Training Data: Reference to your Data Cloud model object

Examples

Simple Object Creation

"Create a custom object called 'Vehicle' with plural name 'Vehicles'"

Object with Fields

"Create a 'Product' object with the following fields:
- Name (Text)
- Price (Number) 
- Category (Picklist with values: Electronics, Clothing, Books)
- Active (Checkbox)"

Data Queries

"Show me the first 10 accounts with their names and annual revenue"
→ Uses: SELECT Id, Name, AnnualRevenue FROM Account LIMIT 10

"What fields are available on the Opportunity object?"
→ Uses: get_object_fields with object_name: "Opportunity"

"Search for all records containing 'Technology'"
→ Uses: FIND {Technology} IN ALL FIELDS RETURNING Account(Name), Contact(Name)

"Describe the Contact object structure"
→ Uses: describe_object with detailed field information

Einstein Studio Models

"Create a lead conversion prediction model called 'Lead Scoring Model'"
→ Creates: Einstein Studio model with binary classification capability

"Build a sales forecasting model using opportunity data"
→ Creates: Regression model for predicting sales amounts

"Create a customer churn prediction model with the following fields:
- Account_Value__c (Number/Numerical)
- Industry__c (Text/Categorical)  
- Last_Activity_Date__c (Text/Categorical)
- Outcome: Churned__c"
→ Creates: Complete Einstein Studio model with specified configuration

Security Note šŸ”’

Your Salesforce credentials are stored securely and are only used to establish the connection to your org. We never store or share your credentials with third parties.

License šŸ“„

This project is licensed under the MIT License - see the file for details.