Enables management of Salesforce orders, returns, and cases, including checking order status and tracking, creating return orders, managing return order line items, creating and updating support cases, and automating return label emails.
Sends formatted alerts and notifications to Slack channels for real-time updates on order management activities.
Salesforce Order Concierge MCP Server
A Model Context Protocol (MCP) server that provides Salesforce order management capabilities for Claude Desktop, including order status checking, return creation, case management, and Slack notifications.
šÆ Overview
This MCP server enables Claude Desktop to interact with Salesforce for:
Order status checking with shipping details and tracking information
Return order creation using standard Salesforce ReturnOrder objects
Case management integration for customer service escalation
Slack notification system for real-time alerts
Return label email automation for customer convenience
š Available Tools
check_order_status- Check order status, shipping details, and tracking informationcreate_return- Create return orders using standard Salesforce objectsemail_return_label- Email return shipping labels to customersupdate_case_status- Update case status with priority and assignment changescreate_case_from_return- Create support cases from return orderssend_slack_alert- Send formatted alerts to Slack channels
š Quick Setup
1. Install Dependencies and Build
2. Deploy Salesforce Metadata (Optional)
If you want to use the enhanced features:
3. Configure Claude Desktop
Add to your Claude Desktop claude_desktop_config.json:
4. Restart Claude Desktop
After adding the configuration, restart Claude Desktop to load the MCP server.
š Testing with MCP Inspector
The MCP Inspector is a powerful tool for testing and debugging MCP servers. Here's how to use it:
Install MCP Inspector
Test Your Server
Start the Inspector:
npx @modelcontextprotocol/inspectorConfigure Connection:
Server Command:
nodeArguments:
["dist/index.js"]Working Directory:
/path/to/sf_mcp_ocEnvironment Variables:
SF_LOGIN_URL=https://login.salesforce.com SF_USERNAME=your-username@example.com SF_PASSWORD=your-password SF_SECURITY_TOKEN=your-token SLACK_WEBHOOK_URL=your-webhook-url
Test Tools:
Click "Connect" to establish connection
Browse available tools in the left panel
Test each tool with sample data
View requests/responses in real-time
Sample Test Data
Check Order Status:
Create Return:
Send Slack Alert:
Debugging Tips
Connection Issues: Check environment variables and Salesforce credentials
Tool Failures: Review error messages in the inspector's response panel
Permissions: Ensure your Salesforce user has access to required objects
Network: Verify Salesforce and Slack connectivity
š Prerequisites
Salesforce Requirements
Salesforce org with Service Cloud or Field Service license
Order Management enabled
API access for the configured user
Standard objects: Order, OrderItem, ReturnOrder, ReturnOrderLineItem, Case
System Requirements
Node.js 18+ installed
Salesforce CLI (optional, for metadata deployment)
Claude Desktop application
š§ Environment Variables
Variable | Required | Description |
| Yes | Salesforce login URL ( |
| Yes | Salesforce username |
| Yes | Salesforce password |
| Yes | Salesforce security token |
| No | Slack webhook URL for notifications |
š Salesforce Objects Used
Standard Objects
ReturnOrder - Standard Salesforce object for return management
ReturnOrderLineItem - Individual return items
Case - Customer service integration
Order/OrderItem - Order relationships
Custom Fields (Optional)
ReturnOrder.LabelEmailSent__c - Tracks if return label was emailed
ReturnOrder.LabelEmailSentDate__c - Email timestamp
šØ Troubleshooting
Common Issues
"Server disconnected while setting up"
# Check if server builds successfully npm run build # Verify file permissions chmod +x dist/index.js # Test server startup node dist/index.js"Invalid login"
Verify Salesforce credentials
Check security token (get new one from Setup ā My Personal Information)
Use correct login URL for your org type
"Object not found" errors
Ensure Service Cloud license is active
Enable Order Management in Setup ā Sales ā Order Settings
Verify user has access to ReturnOrder objects
Tool execution failures
Test with MCP Inspector to see detailed error messages
Check Salesforce debug logs
Verify required fields are populated
Getting Help
Use MCP Inspector for detailed debugging
Check Claude Desktop logs for connection issues
Review Salesforce debug logs for API errors
Test Salesforce connectivity with simple SOQL queries
š Project Structure
š Security
Never commit credentials to version control
Use environment variables for all sensitive data
Rotate Salesforce security tokens regularly
Use dedicated API users with minimal required permissions
š License
MIT License - see LICENSE file for details.