A Model Context Protocol (MCP) server implementation for Salesforce integration in TypeScript
If you want an AI assistant working directly with Salesforce MCP Ts, the salesforce mcp ts mcp server is the bridge. A Model Context Protocol (MCP) server implementation for Salesforce integration in TypeScript.
A TypeScript implementation of a Model Context Protocol (MCP) server for Salesforce integration, allowing LLMs to interact with Salesforce data through SOQL queries, SOSL searches, and CRUD operations.
Once connected, the assistant can call these 13 tools directly:
authenticate_password — Authenticate using username/password with OAuthrun_soql_query — Execute SOQL queriesrun_sosl_search — Execute SOSL searchesget_object_fields — Get metadata for Salesforce objectsget_record — Retrieve specific records by IDcreate_record — Create new recordsupdate_record — Update existing recordsdelete_record — Delete recordstooling_execute — Execute Tooling API requestsapex_execute — Execute Apex REST requestsrestful — Make direct REST API callsPrerequisites — 1. Create a Connected App in Salesforce: - Go to Setup → Apps → App Manager → New Connected App - Fill in basic information (App Name, API Name, ContactOptional — The Optional tool exposed by this serverSetup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.
Before the server will start you need to supply 8 environment variables: SALESFORCE_CLIENT_ID, SALESFORCE_CLIENT_SECRET, SALESFORCE_SECURITY_TOKEN, SALESFORCE_ACCESS_TOKEN, SALESFORCE_INSTANCE_URL, SF_CONSUMER_KEY, SF_CONSUMER_SECRET, SF_SECURITY_TOKEN. Keep credentials in your client's env block or a secrets manager rather than committing them.
http://localhost:8080/callback (required but not used) - Select OAuth Scopes: - Access your basic information (id, profile, email, address, phone) - Perform requests on your behalf at anyCommunication servers earn their keep on volume — summarising channels and threads that would otherwise cost you an hour of scrollback. Salesforce MCP Ts sits in that group, and the shape of its toolset — authenticate_password, run_soql_query, run_sosl_search among others — tells you what it is really for. Worth comparing against the other communication servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| authenticate_password | Authenticate using username/password with OAuth |
| run_soql_query | Execute SOQL queries |
| run_sosl_search | Execute SOSL searches |
| get_object_fields | Get metadata for Salesforce objects |
| get_record | Retrieve specific records by ID |
| create_record | Create new records |
| update_record | Update existing records |
| delete_record | Delete records |
| tooling_execute | Execute Tooling API requests |
| apex_execute | Execute Apex REST requests |
| restful | Make direct REST API calls |
| Prerequisites | 1. **Create a Connected App in Salesforce:** - Go to Setup → Apps → App Manager → New Connected App - Fill in basic information (App Name, API Name, Contact Email) - Enable OAuth Settings - Set callback URL: http://local |
| Optional | The Optional tool exposed by this server. |
http://localhost:8080/callback (required but not used) - Select OAuth Scopes: - Access your basic information (id, profile, email, address, phone) - Perform requests on your behalf at any| Variable | Description | Required |
|---|---|---|
| SALESFORCE_CLIENT_ID | Configuration value read at startup. | Optional |
| SALESFORCE_CLIENT_SECRET | Credential the server authenticates with. | Yes |
| SALESFORCE_SECURITY_TOKEN | Credential the server authenticates with. | Yes |
| SALESFORCE_ACCESS_TOKEN | Credential the server authenticates with. | Yes |
| SALESFORCE_INSTANCE_URL | Endpoint or connection string the server talks to. | Yes |
| SF_CONSUMER_KEY | Credential the server authenticates with. | Yes |
| SF_CONSUMER_SECRET | Credential the server authenticates with. | Yes |
| SF_SECURITY_TOKEN | Credential the server authenticates with. | Yes |
Your workspace, on speaking terms with AI — search, read and write Notion pages and databases.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Search and read your Drive — Docs, Sheets and files become context your assistant can actually use.
Your assistant inside the workspace — read channels, search history, post messages and tame the noise.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Stop letting your assistant hallucinate n8n node parameters — this server hands it the real schemas, templates and validation.