> 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.md).

# Configure S-Docs for MCP

Set up your Salesforce org for S-Docs MCP.

Connecting your Salesforce org to Model Context Protocol (MCP) servers allows AI clients to securely interact with your Salesforce data and logic. Configuring authentication and access is a one-time configuration that enables MCP-compatible clients, such as Claude and Slack, to connect securely using OAuth 2.0 with Proof Key for Code Exchange (PKCE) and JSON Web Tokens (JWT).

This integration helps increase productivity by delivering the S-Docs generation workflow functionality to various interaction layers of end-users while still maintaining the security and governance of the Salesforce platform.

#### Before You Begin

* System Administrator or equivalent permissions are required to create an External Client App in *Setup*.
* Identify which MCP client you are connecting (e.g.: Claude, Slack) and obtain its callback URL.

{% hint style="info" %}
**Scratch orgs:** You cannot create External Client Apps directly in scratch orgs using the *Setup* user interface. To test in a scratch org, create the External Client App in a Developer Hub org, add it to a package, and install the package in the target scratch org.
{% endhint %}

{% hint style="warning" %}
*Connected Apps are not supported for MCP authentication. You must use an External Client App.*
{% endhint %}


---

# 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.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.
