MCP Salesforce Server MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add mcp-salesforce -- npx @aiondadotcom/mcp-salesforce
README.md

Seamless integration with Salesforce using OAuth authentication.

MCP Salesforce Server

A Model Context Protocol (MCP) server that provides seamless integration with Salesforce using OAuth authentication. This server enables AI assistants like Claude to interact with any Salesforce organization through a secure, generic interface.

✨ Features

  • šŸŽÆ Seamless Authentication - Claude automatically detects when authentication is needed and handles it transparently
  • šŸš€ Zero Manual Setup - No need to run terminal commands or manual OAuth flows
  • šŸ” OAuth-Only Authentication - Secure browser-based setup with automatic token refresh
  • 🌐 Universal Salesforce Integration - Works with any Salesforce org, including custom objects and fields
  • 🧠 Smart Installation Learning - Analyzes your complete Salesforce setup to provide intelligent assistance
  • šŸ” Dynamic Schema Discovery - Automatically adapts to your Salesforce configuration
  • šŸ”’ Secure Token Storage - File-based storage with strict permissions for production-grade security
  • šŸ  Cross-Platform Home Directory Storage - Credentials and cache stored in user's home directory
  • šŸ“ Full CRUD Operations - Query, create, update, and delete any Salesforce records
  • šŸ“Š Schema Inspection - Get detailed information about objects and fields
  • šŸ’” Context-Aware Suggestions - Provides intelligent field and object name suggestions
  • šŸ’¾ Comprehensive Backup System - Complete data and file backup with support for all Salesforce file systems
  • ā° Time Machine Feature - Point-in-time data recovery and historical analysis
  • šŸ“ Multi-Format File Support - Backs up ContentVersions, Attachments, and Documents with proper metadata

šŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • macOS (required for secure credential storage)
  • Salesforce Connected App with OAuth configured

Installation Options

šŸŽÆ **Recommended: NPX Usage (No Installation Required)**

Use NPX to run the MCP server without any permanent installation:

{
  "mcpServers": {
    "salesforce": {
      "command": "npx",
      "args": ["@aiondadotcom/mcp-salesforce"]
    }
  }
}

āœ… Benefits of NPX Usage:

  • šŸ”„ Always Latest: Automatically uses the latest published version
  • šŸ’¾ No Disk Space: No permanent installation required
  • šŸ›”ļø No Conflicts: No global package conflicts
  • ⚔ Easy Updates: Just restart - gets latest version automatically
  • šŸ“‹ Simple Config: Copy-paste ready MCP configuration

NPX Command Line Usage:

# Get version
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce --version

# Get help
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce --help

# Run OAuth setup
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce setup
šŸ”§ **Alternative: Development Setup**

For development or customization:

  1. Clone and install dependencies:

    git clone https://github.com/AiondaDotCom/mcp-salesforce.git
    cd mcp-salesforce
    npm install
    
  2. Configure credentials: Use the salesforce_setup tool to configure your credentials when prompted

  3. Add to Claude Desktop using local path (see Configuration below)

šŸŽÆ **Start Using**

That's it! Claude will automatically handle setup and authentication when you first use any Salesforce tool.

✨ Interactive Setup Process!

  • Use the salesforce_setup tool to configure your credentials
  • Claude will ask you for your Salesforce Connected App details
  • Credentials are stored securely in your home directory
  • Seamless OAuth flow directly from Claude Desktop

🧠 Smart Learning System

  • Use salesforce_learn to analyze your complete Salesforce installation
  • Claude learns all your custom objects, fields, and relationships
  • Provides intelligent suggestions based on your specific setup
  • Context-aware assistance for complex Salesforce environments

šŸ“¦ NPM Package Status

āœ… Package Successfully Published!

The package @aiondadotcom/mcp-salesforce is now live on NPM and ready for use.

Using the Published Package

NPX usage is now available for all users:

# Test the published package
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce --version
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce --help

# Run OAuth setup
npx -p @aiondadotcom/mcp-salesforce mcp-salesforce setup

Publication Details

  • Package Name: @aiondadotcom/mcp-salesforce
  • Version: 1.0.7 (latest)
  • Registry: NPM Public Registry
  • Organization: @aiondadotcom
  • Access: Public

Status:

  • āœ… Package published to NPM
  • āœ… NPX compatibility verified
  • āœ… Binary wrapper implemented
  • āœ… Setup command functional
  • āœ… MCP configuration ready
  • āœ… Available for immediate use

šŸŽ‰ All NPX functionality now works for end users worldwide!

šŸ”§ Configuration

Sal

Tools (2)

salesforce_setupConfigures Salesforce credentials and OAuth settings.
salesforce_learnAnalyzes the Salesforce installation to provide intelligent assistance and schema discovery.

Configuration

claude_desktop_config.json
{"mcpServers": {"salesforce": {"command": "npx", "args": ["@aiondadotcom/mcp-salesforce"]}}}

Try it

→Run the salesforce_setup tool to connect my Salesforce account.
→Use salesforce_learn to analyze my current Salesforce custom objects and fields.
→Query my Salesforce records to find all open opportunities created this month.
→Update the status of the Salesforce lead with ID 00QXXXXXXXXXXXX.

Frequently Asked Questions

What are the key features of MCP Salesforce Server?

Seamless OAuth authentication with automatic token refresh. Full CRUD operations for Salesforce records. Dynamic schema discovery for custom objects and fields. Smart learning system for context-aware assistance. Comprehensive backup system for Salesforce data and files.

What can I use MCP Salesforce Server for?

Automating data entry and record updates in Salesforce via natural language. Performing complex SOQL queries to extract insights from custom Salesforce objects. Managing and backing up Salesforce attachments and documents. Onboarding new team members by using AI to explain the specific Salesforce configuration.

How do I install MCP Salesforce Server?

Install MCP Salesforce Server by running: npx -p @aiondadotcom/mcp-salesforce mcp-salesforce setup

What MCP clients work with MCP Salesforce Server?

MCP Salesforce Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP Salesforce Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare