Hey dev and Salesforce devs,
If you're exploring Google's Gemini ecosystem (Gemini 1.5 Pro/Flash and Gemini Spark developer workflows), you know how powerful Gemini's massive 1M+ token context window is.
Now you can ground Gemini directly in your enterprise CRM by connecting it to Salesforce Hosted MCP Servers via the Model Context Protocol:
Here is how we set it up:
- Salesforce Connected App: Set up a Connected App in Salesforce with PKCE and the required OAuth scopes for API and Web access.
- Gemini Spark MCP Configuration: In the Gemini development workspace / client settings, register the Salesforce MCP endpoint URL.
- OAuth Handshake: Authenticate with your Salesforce credentials. The client stores the refresh token securely.
-
Tool Discovery: Gemini automatically queries
tools/liston your Salesforce org, instantly learning what CRM operations it can perform (e.g.query_accounts,update_lead_status,get_case_details). - Conversational Querying: You can now ask Gemini complex, multi-step queries like: "Review our open pipeline closing this quarter, identify deals stuck in negotiation without activity in 7 days, and draft follow-up email summaries for the account owners." Gemini invokes the Salesforce tools, pulls live record data, analyzes pipeline trends, and returns grounded recommendations.
We published a full setup guide with all required OAuth scopes, JSON configurations, and troubleshooting steps:
https://impviser.com/insights/salesforce-mcp-server-gemini-guide
Anyone else experimenting with Gemini + MCP in enterprise workflows?
Top comments (0)