Intelligent Salesforce Metadata Orchestration via Claude AI & MCP

Leverage the Model Context Protocol (MCP) to accelerate salesforce development and easily manage Salesforce metadata through intelligent, secure, and streamlined interactions.

MCP Architecture

Before and After MCP Diagram

The Model Context Protocol provides a standardized interface for Claude to interact with external tools and services through a Tool Registry that defines available tools and their parameters.

MCP Architecture Diagram

MCP creates a unified API layer between Claude AI and external services like Salesforce, simplifying integration and enabling consistent interaction patterns.

Salesforce MCP Integration Diagram

Our Python MCP Server connects Claude to Salesforce through multiple API endpoints, providing a unified interface for metadata operations, SOQL queries, and test data generation.

MCP Tools

The MCP Server provides a comprehensive set of tools for interacting with Salesforce metadata through natural language.

Connection Tools

Metadata Tools

SOQL Tools

Test Data Tools

Search Documentation Tool (RAG Solution)

Utility Tools

Security Considerations

Important

This MCP solution is a powerful tool designed specifically for Salesforce architecture tasks. Due to its capability to directly update Salesforce metadata from text inputs, we strongly recommend it for use primarily in sandbox or development environments.

Recommended Usage

  • Only utilize in Salesforce sandbox or development environments. DO NOT USE THIS TOOL IN A PRODUCTION ENVIRONMENT
  • Intended for experienced Salesforce professionals familiar with metadata management.

Key Security Practices

  • Credential Safety: Secure management of sensitive information, like API keys, with no exposure in code.
  • Secure Communication: All interactions secured via HTTPS connections.
  • Data Validation: Thorough validation of inputs to prevent security risks.
  • User Permissions: Explicit user approval required for accessing external data, ensuring user control and transparency.
  • Monitoring and Logging: Active monitoring and logging of critical events to promptly address potential issues.

By following these guidelines, you can effectively leverage the MCP solution's strengths while ensuring secure and responsible usage.

Download MCP Server

Get the Python MCP Server to integrate with your Claude desktop client.

Download MCP Server

Setup Instructions

  1. Download and extract the MCP Server ZIP file
  2. Install required Python dependencies:
    pip install -r requirements.txt
  3. Create a .env file in the same directory as the server with the following credentials:
    # Salesforce Credentials
    SF_USERNAME=your_salesforce_username
    SF_PASSWORD=your_salesforce_password
    SF_SECURITY_TOKEN=your_salesforce_security_token
    
    # Google API Credentials (for Search Documentation tool)
    GOOGLE_API_KEY=your_google_api_key
    GOOGLE_CSE_ID=your_google_custom_search_engine_id
  4. Run the server locally:
    python secure_mcp_server.py
  5. Configure your Claude desktop client to use the MCP server:
    1. Create a claude_desktop_config.json file with the following structure:
      {
        "mcpServers": {
          "salesforce": {
            "command": "python3",
            "args": [
              "/path/to/your/downloaded/secure_mcp_server.py"
            ]
          }
        }
      }
      

      Replace /path/to/your/downloaded/ with the actual path where you extracted the MCP server files.

    2. Place this config file in the appropriate location for your Claude desktop client
    3. Restart your Claude desktop client to connect to the MCP server

For detailed technical information, see the included technical_details.md file.

Try It Out

Simulation Notice: This is a demonstration interface that simulates how Claude would interact with the MCP Server. It is not connected to a live Salesforce instance or Claude API. For actual usage, download the server and connect it to your Claude desktop client.

Hello! I'm Claude, and I can help you interact with Salesforce metadata using the MCP Server. What would you like to do today?

Example Prompts