Create Salesforce MCP Server
sf_create_mcp_serverGenerate a complete MCP server project scaffold for Salesforce metadata. Creates all required files and a sample hello_world tool from an output directory path.
Instructions
Generates a complete, working MCP server project structure on disk targeting a Salesforce org. Creates package.json, tsconfig.json, src/index.ts entry point, .env.example, and README.md. The generated server uses the MCP SDK and includes a sample 'hello_world' tool. Provide an outputDirectory (absolute path) where the files will be written. After generation, run 'npm install' then 'npm run build' in that directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serverName | Yes | Name for the new MCP server, e.g. 'my-salesforce-server' | |
| description | No | Server description | |
| outputDirectory | Yes | Absolute path to directory where files will be created, e.g. 'C:/projects/my-server' | |
| salesforceInstanceUrl | No | Salesforce instance URL to pre-configure, e.g. 'https://myorg.salesforce.com' |