> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/build/building-from-your-ai-agent/mcp-gateway/chatgpt.md).

# ChatGPT

Add fastn to ChatGPT as a custom MCP plugin, sign in, and use your fastn tools from a ChatGPT chat.

ChatGPT adds fastn as a custom MCP server from its **Plugins** page. Sign in once, then ask for the integration in a chat.

## Add fastn

{% stepper %}
{% step %}

#### Open Plugins

In ChatGPT, click **Plugins** in the sidebar. At the top right, click **Add** and choose **Add custom MCP server**.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-42ed7bae536de183ddd0bf1f84e8ae6f140d0b48%2Fmcp-chatgpt-plugins-page.webp?alt=media" alt="ChatGPT&#x27;s Plugins page, reading Connect plugins to let ChatGPT work across your tools, with a Search plugins box and an Add button at the top right"><figcaption><p>The <strong>Add</strong> button is at the top right of the Plugins page.</p></figcaption></figure>
{% endstep %}

{% step %}

#### Enter fastn's URL

Enter **Name** `fastn`. Under **Connection**, keep **Server URL** and enter `https://mcp.fastn.dev/fastn-workspace`. Leave **Authentication** on **OAuth**, tick **I understand and want to continue** and click **Create as a plugin**.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-5e99cf2e1673a6ec0ea6827a5e826007ad561c65%2Fmcp-chatgpt-add-server.webp?alt=media" alt="ChatGPT&#x27;s Add custom MCP server form with Name fastn, Connection set to Server URL https://mcp.fastn.dev/fastn-workspace, Authentication OAuth, an Advanced OAuth settings row, a risk notice, the I understand and want to continue box ticked, and Cancel and Create as a plugin buttons"><figcaption><p>Leave <strong>Advanced OAuth settings</strong> alone. ChatGPT finds fastn's sign-in by itself.</p></figcaption></figure>
{% endstep %}

{% step %}

#### Connect and pick the workspace

ChatGPT shows **Connect fastn**. Click **Connect fastn**.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-604d808ea15158624ace2a66e13c246d1a340c14%2Fmcp-chatgpt-connect-dialog.webp?alt=media" alt="ChatGPT&#x27;s Connect fastn dialog explaining what ChatGPT may share with the app, with Connect fastn and Cancel buttons"><figcaption><p>ChatGPT asks once per account.</p></figcaption></figure>

fastn opens in your browser. Sign in if asked. If you belong to more than one fastn org, pick the workspace ChatGPT works in, then click **Connect**.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-31846d0719ea56ead574280ac5b69e3298347dad%2Fmcp-chatgpt-choose-workspace.webp?alt=media" alt="fastn&#x27;s page titled Which workspace should ChatGPT (chatgpt.com) use?, with The org selected in fastn chosen, a list of orgs and a Connect button"><figcaption><p><strong>The org selected in fastn</strong> follows whichever org you have open in the fastn dashboard; picking a named org pins ChatGPT to it.</p></figcaption></figure>

ChatGPT lists fastn under **Plugins** with your account connected.
{% endstep %}
{% endstepper %}

## Use it

Start a new chat and ask for the outcome in one sentence. To check the connection first, ask *Using the fastn plugin, who am I in fastn?*

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-aca807ab7322c96c6423b28e7fe0d669e1db45f6%2Fmcp-chatgpt-answer.webp?alt=media" alt="ChatGPT&#x27;s answer card titled Your FASTN identity, showing the signed-in user, role, organization, organization type, plan and organization ID"><figcaption><p>ChatGPT answers from the fastn workspace you picked.</p></figcaption></figure>

From here ChatGPT works through the same steps as every agent: see [Building from your AI agent](https://docs.fastn.ai/build/building-from-your-ai-agent.md).

## Troubleshooting

* **`token_endpoint_auth_method "private_key_jwt" is not supported`.** ChatGPT sign-in failed this way on fastn before the fix for it reached your fastn. Click **Connect fastn** again.
* **ChatGPT doesn't use fastn.** Name it in your message, for example *Using the fastn plugin, …*.
* **ChatGPT works on the wrong org.** Open fastn under **Plugins**, remove your connected account, connect again and pick the workspace.


---

# 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://docs.fastn.ai/build/building-from-your-ai-agent/mcp-gateway/chatgpt.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.
