mcp-tools-salesforce
Connects to Salesforce scratch orgs via JWT Bearer Flow, allowing querying of data, describing sObjects, generating and inserting nested test records using the Composite Tree REST API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-tools-salesforceCreate an account with two contacts and a case"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-tools-salesforce
Custom MCP Server that Connects to Salesforce Scratch Orgs — and Lets AI Generate Test Data
A custom MCP server built with FastMCP that connects to a Salesforce scratch org via JWT Bearer Flow. It uses MCP Sampling to let an LLM autonomously look up the data model, generate realistic nested test records, and insert them via the Composite Tree REST API. You describe the scenario in plain English. The server does the rest.

Tools
Tool | Description |
| Runs a SOQL query against the connected scratch org and returns matching records |
| Returns createable fields for an sObject (name, type, nillable) |
| Returns a lightweight field map for Account, Contact, Case, User |
| Uses LLM sampling to draft a Composite Tree compatible nested record from a natural-language request |
| Posts the payload to |
Note:
generate_nested_recorduses MCP Sampling with tools + structured output. Authentication via JWT Bearer Flow.
Related MCP server: Salesforce CLI MCP Server
Resources
Interesting discussion by awesome Pamela Fox:"Can VS Code skills be a replacement for MCP servers?":
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate realistic, FK-consistent synthetic test data for your databases from your AI assistant.
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
Run SOQL queries to explore and retrieve Salesforce data. Access accounts, contacts, opportunities…
Run SOQL queries to explore and retrieve Salesforce data. Inspect records, fields, and relationshi…
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI tools like Claude Desktop and Cline to interact with Salesforce, providing tools for SOQL queries, Apex execution, metadata management, and more.1728 npm43MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Salesforce orgs through natural language commands, supporting org management, SOQL queries, metadata operations, testing, and more.1-
- AlicenseBqualityCmaintenanceConnects to Salesforce and enables running SOQL queries, SOSL searches, managing records, and executing various Salesforce APIs via natural language.10MIT
- AlicenseNot gradedqualityBmaintenanceSalesforce sandbox seeding, built for AI agents. SOQL-driven org-to-org record copy with automatic dependency-graph walking, cross-org FK remapping, and a hard AI-never-sees-your-data boundary.15 npmApache 2.0