salesforce
Model Context Protocol server for Salesforce REST API integration
claude mcp add --transport stdio kablewy-salesforce-mcp-server node dist/server.js \ --env ENVIRONMENT="production" \ --env SALESFORCE_TOKEN="your_salesforce_security_token_here" \ --env SALESFORCE_PASSWORD="your_salesforce_password_here" \ --env SALESFORCE_USERNAME="your_salesforce_username_here" \ --env SALESFORCE_CLIENT_ID="your_client_id_here" \ --env SALESFORCE_CLIENT_SECRET="your_client_secret_here"
How to use
This MCP server provides a Salesforce integration via REST using jsforce. It exposes a set of RPC-like functions that you can call to interact with your Salesforce org: query to run SOQL queries, describe-object to fetch metadata for Salesforce objects, create to insert new records, update to modify existing records, and delete to remove records. Start the server using your usual Node.js startup workflow (for example, npm start or running the built dist/server.js directly). Once running, you can invoke the available functions by sending JSON requests to the MCP endpoint. The server reads Salesforce credentials from environment variables, so ensure your .env (or equivalent deployment configuration) supplies the necessary values before starting.
How to install
Prerequisites:
- Node.js and npm installed
- Access to a Salesforce org with API access
- Salesforce connected app credentials (Client ID and Client Secret) or username/password flow configured
Install and configure:
- Clone the repository
- Copy .env.example to .env and fill in your Salesforce credentials
- Install dependencies: npm install
- Build the project: npm run build
- Start the server: npm start
Usage during development:
- To run directly from source, you can use: node dist/server.js (assuming a build step has produced dist/server.js)
- To run with environment variables inline: SALESFORCE_CLIENT_ID=xxx SALESFORCE_CLIENT_SECRET=yyy SALESFORCE_USERNAME=zzz SALESFORCE_PASSWORD=aaa SALESFORCE_TOKEN=bbb npm start
Additional notes
Environment variables control access to Salesforce. Do not commit credentials. If you rotate tokens or change your Salesforce connected app settings, update these values accordingly. Common issues include missing API permissions in Salesforce, IP restrictions, or incorrect credentials. Ensure your .env is loaded in your hosting environment. The server supports standard Salesforce API operations through the exposed functions; consult the provided usage examples in the README for exact payload shapes.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud