Salesforce
Learn how to use Klavis to connect your AI application to Salesforce MCP Server
Prerequisites
To get the most out of this guide, you’ll need to:
1. Create a Salesforce MCP Server
Use the following endpoint to create a new remote Salesforce MCP server instance:
Request
Response
serverUrl specifies the endpoint of the Salesforce MCP server, which you can connect with the MCP client of your application.
instanceId is used for authentication and identification of your server instance. After you complete the next steps, this token allows the MCP server to access user’s private Salesforce information.
2. Implement OAuth Authorization
Redirect users to the Klavis AI OAuth authorization endpoint with your instance ID:
You can also specify scope and redirect_url in the authUrl. Check the API reference for more details.