# Salesforce Hosted MCP (MCP Server)

> Salesforce-managed MCP endpoints for org data, flows, and Apex actions

- Type: MCP server
- Publisher: Salesforce (official)
- Categories: Sales & CRM, Business
- Website: https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/sobject-all.html
- Docs: https://developer.salesforce.com/docs/platform/hosted-mcp-servers/guide/products-supporting-mcp.html
- Transport: streamable-http
- Server URL: https://api.salesforce.com/platform/mcp/v1/platform/sobject-all
- Sign-in: oauth
- Listed: 2026-04-29

## About

Salesforce Hosted MCP servers expose an org's SObjects, Flows, invocable Apex, and other capabilities to MCP clients, respecting each user's CRUD, field-level security, and sharing rules. Servers are enabled per org in Setup under MCP Servers; the sobject-all server provides full CRUD, query, and search. Authentication is OAuth 2.0 with PKCE via External Client Apps.

## Install

1. **Connect it in ChatGPT** Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://api.salesforce.com/platform/mcp/v1/platform/sobject-all as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.

2. **Or add it to Codex or the API**

   Codex CLI:

   ```bash
   codex mcp add salesforce-hosted --url https://api.salesforce.com/platform/mcp/v1/platform/sobject-all
   codex mcp login salesforce-hosted
   ```

   config.toml:

   ```toml
   [mcp_servers.salesforce-hosted]
   url = "https://api.salesforce.com/platform/mcp/v1/platform/sobject-all"
   ```

   Responses API:

   ```python
   import os
   from openai import OpenAI
   
   client = OpenAI()
   
   response = client.responses.create(
       model="gpt-6-astra",
       tools=[{
           "type": "mcp",
           "server_label": "salesforce_hosted",
           "server_url": "https://api.salesforce.com/platform/mcp/v1/platform/sobject-all",
           "authorization": os.environ["SALESFORCE_HOSTED_MCP_API_KEY"],
           "require_approval": "never",
       }],
       input="List open opportunities over $50k owned by my team",
   )
   print(response.output_text)
   ```

## Example prompts

- "List open opportunities over $50k owned by my team"
- "Update the Acme account's billing address"
- "Create a follow-up task on the Globex opportunity"
- "How many cases were opened this week by priority?"

## Also available as

- app: [Salesforce](https://chatgptplugins.directory/apps/salesforce.md)

## Related

- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent
- [monday.com](https://chatgptplugins.directory/mcp/monday-com.md): Create items, update columns, and manage boards in monday.com
- [QuickBooks Online](https://chatgptplugins.directory/mcp/quickbooks-online.md): Read and write QuickBooks customers, invoices, bills and reports
- [Xero](https://chatgptplugins.directory/mcp/xero.md): Work with Xero invoices, contacts, payments, payroll and reports
- [Salesforce DX MCP](https://chatgptplugins.directory/mcp/salesforce-dx.md): Salesforce developer tools: deploy metadata, run SOQL and Apex tests
- [PayPal](https://chatgptplugins.directory/mcp/paypal.md): Manage PayPal invoices, orders, subscriptions, disputes and transactions

---
Source: https://chatgptplugins.directory/mcp/salesforce-hosted-mcp · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
