Overview
What is Salesforce MCP Server?
A local development server that mocks Salesforce CLI commands for testing and development purposes. It is intended for developers who need a simulated Salesforce environment without connecting to a live org.
How to use Salesforce MCP Server?
Clone the repository, install dependencies with npm install, copy .env.example to .env and edit configuration. Run npm run dev for development mode or npm run build && npm start for production. Use npm test to run tests.
Key features of Salesforce MCP Server
- Mock Salesforce CLI commands
- Local development environment
- Configurable endpoints
- Logging and error handling
- Security features (CORS, Helmet)
- Environment-based configuration
Use cases of Salesforce MCP Server
- Test Salesforce CLI commands without a live Salesforce org
- Develop and debug Salesforce integrations locally
- Simulate Apex test execution results
- Validate org management and source management flows
- Isolate development from production API limits
FAQ from Salesforce MCP Server
What Node.js version is required?
Node.js v14 or higher and npm v6 or higher are required.
How do I configure the server?
Copy .env.example to .env and edit environment variables such as PORT (default 6101), HOST, NODE_ENV, LOG_LEVEL, CORS_ORIGIN, API_KEY, SF_LOGIN_URL, and SF_API_VERSION.
What authentication does the server support?
API key authentication is supported, configured via the API_KEY environment variable.
Where are logs stored?
Logs are written to the console in development, and to error.log (errors) and combined.log (all logs) in all environments.
How do I run the server in production?
Build the project with npm run build then start with npm start.