MCP server for Salesforce - Connect AI assistants to your Salesforce org
3.0K
A production-ready Model Context Protocol (MCP) server that enables AI assistants to interact with Salesforce data and automation through dynamically configurable tools.
Salesforce MCP Server acts as a bridge between AI assistants (Claude, ChatGPT, Gemini, etc.) and your Salesforce org. It implements the MCP 2025-03-26 specification using Streamable HTTP transport.
Key Features:
docker run -d \
-p 3000:3000 \
--name salesforce-mcp \
-e MCP_PUBLIC_URL="https://your-server.com" \
-e MCP_SESSION_SECRET="$(openssl rand -hex 32)" \
-e SF_CLIENT_ID="your_consumer_key" \
-e SF_CALLBACK_URL="https://your-server.com/auth/callback" \
-e LICENSE_KEY="your_license_key" \
sergiocbx/mcp-salesforce:latest
services:
mcp-salesforce:
image: sergiocbx/mcp-salesforce:latest
ports:
- "3000:3000"
environment:
- MCP_PUBLIC_URL=https://your-server.com
- MCP_SESSION_SECRET=your_32_character_secret_minimum
- SF_CLIENT_ID=your_consumer_key
- SF_CALLBACK_URL=https://your-server.com/auth/callback
- LICENSE_KEY=your_license_key
restart: unless-stopped
| Variable | Description |
|---|---|
MCP_PUBLIC_URL | Public URL of your server |
MCP_SESSION_SECRET | Encryption key (min 32 characters) |
SF_CLIENT_ID | Salesforce Connected App Consumer Key |
SF_CALLBACK_URL | OAuth callback URL |
LICENSE_KEY | License key (get yours at cbxpert.com.br) |
| Variable | Default | Description |
|---|---|---|
PORT | 3000 | HTTP server port |
MCP_CORS_ORIGINS | - | Allowed origins (comma-separated) |
SF_CLIENT_SECRET | - | Connected App Consumer Secret |
SF_LOGIN_URL | https://login.salesforce.com | Salesforce login URL |
SF_API_VERSION | v61.0 | Salesforce API version |
SF_INSTANCE_ALIAS | - | Tool name prefix (multi-org) |
Before using this image, you need to:
Install the managed package in your Salesforce org:
/packaging/installPackage.apexp?p0=04tU6000000VN6nIAG
Create a Connected App with:
full, refresh_token, offline_access| Endpoint | Description |
|---|---|
/health | Health check |
/mcp | MCP endpoint (GET/POST/DELETE) |
/authorize | OAuth authorization |
/token | OAuth token exchange |
Full documentation available at: GitHub Repository
latest - Latest stable releasex.y.z - Specific versionSupports linux/amd64 and linux/arm64 platforms.
Content type
Image
Digest
sha256:690376672…
Size
52.3 MB
Last updated
6 months ago
docker pull sergiocbx/mcp-salesforce