home / mcp / salesforce mcp server
Provides a complete MCP server to manage Salesforce metadata, SOQL, multi-org operations, and automated workflows.
Configuration
View docs{
"mcpServers": {
"sameershrivastava-sf-salesforce-mcp-server": {
"command": "python",
"args": [
"-m",
"app.main",
"--mcp-stdio"
],
"env": {
"SFMCP_LOG_LEVEL": "INFO",
"SFMCP_DEBUG_MODE": "false",
"SFMCP_MAX_RETRIES": "3",
"SFMCP_MCP_SERVER_NAME": "salesforce-mcp-server",
"SFMCP_OAUTH_CALLBACK_PORT": "1717",
"SFMCP_OAUTH_TIMEOUT_SECONDS": "300",
"SFMCP_DEPLOY_TIMEOUT_SECONDS": "300",
"SFMCP_SALESFORCE_API_VERSION": "59.0",
"SFMCP_REQUEST_TIMEOUT_SECONDS": "120",
"SFMCP_DEPLOY_POLL_INTERVAL_SECONDS": "5"
}
}
}
}Deploy any metadata type (Apex, LWC, Fields, etc.) with a single tool
Fetch any metadata type with a consistent interface
List metadata of any type with filtering
Unified bulk insert/update/delete operations
Export data in CSV, JSON, or backup format
Build and execute queries with optional analysis
Get fields, relationships, and metadata in one call
Manage profiles and permission sets
OAuth to production org
OAuth to sandbox (test.salesforce.com)
OAuth to custom domain
Login with username/password/token
Clear all sessions
Check authentication status
List all connected orgs
Switch between orgs
Compare Apex, Flows, etc.
Compare field schemas
High-level org comparison
Run tests with coverage
Get code coverage details
List all test classes
Insert thousands via Bulk API 2.0
Update thousands of records
Delete thousands of records
Check job progress
Export SOQL results to CSV
Export entire objects
Create timestamped backups
Fast record counting
Export object schemas
Build queries from components
Get field metadata
Get all relationships
Analyze and optimize queries
Query parent-child records
Full dependency analysis
Identify unused fields
Generate ERD data
List all objects (custom/standard)
Field population statistics
List Batch Apex jobs
Get detailed job info
List scheduled Apex
Stop running batch
Delete scheduled job
Execute Apex instantly
Retrieve debug logs
Get full log content
Comprehensive health check
API/storage limits
Organization details
Current user profile
List managed packages
API usage statistics
Run any SOQL query
Check deployment status
Change a user's profile
Assign permission set to a user
Remove permission set from a user
List user's permission sets and profile
List all profiles in the org
List all permission sets in the org
Compare two profiles side-by-side
Compare two permission sets
Compare field counts between orgs
Find fields with similar names/types
Compare total object counts between orgs