> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/sdocs/automation-and-document-lifecycle/configure-s-docs-for-mcp/set-up-salesforce-hosted-mcps.md).

# Set up Salesforce Hosted MCPs

Salesforce Hosted Model Context Protocol (MCP) servers provide secure, managed entry points that let AI clients, agents, and developer tools interact with your Salesforce org through a standardized protocol. These servers offer a governed way to expose Salesforce capabilities, such as data, metadata, Apex, and Flow, to MCP-aware clients without requiring you to stand up your own infrastructure.

Combined with the Salesforce Platform identity and permissions model, Salesforce Hosted MCPs help simplify and automate processes, increase productivity, and remove friction in day-to-day processes when building headless experiences against live Salesforce data on behalf of a user.

#### When to use hosted MCP servers

Use hosted Model Context Protocol (MCP) servers when an AI client (a chatbot, coding assistant, or agent workflow) must interact with Salesforce logic and assets.

Model Context Protocol is the right choice to simplify and automate processes if:

* Your AI client already supports MCP (most major LLM clients do).
* You require per-user authentication so agent actions respect each user’s existing Salesforce permissions.
* You want an admin-configurable, auditable integration to remove friction in day-to-day processes rather than a custom-coded API connection.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.sdocs.com/sdocs/automation-and-document-lifecycle/configure-s-docs-for-mcp/set-up-salesforce-hosted-mcps.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
