> This page is for BaaS.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://en.docs.api.corpx.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://en.docs.api.corpx.com/_mcp/server.

# MCP server

The public documentation exposes an [MCP server](https://modelcontextprotocol.io).
Any compatible client (Claude Code, Cursor, ChatGPT, Manus, and others) can
query the docs without pasting pages into context.

The server uses the site's semantic search: the AI asks a question and gets
an answer synthesised from the published guides and reference.

## URLs

| Site       | MCP endpoint                                          |
| ---------- | ----------------------------------------------------- |
| Portuguese | `https://corpx.docs.buildwithfern.com/_mcp/server`    |
| English    | `https://corpx-en.docs.buildwithfern.com/_mcp/server` |

Use these hosts — MCP needs POST, and `docs.api.corpx.com` still goes
through a CloudFront that only allows GET. The docs are public — no token
required.

## Claude Code

```bash
claude mcp add --transport http \
  corpx-docs https://corpx-en.docs.buildwithfern.com/_mcp/server
```

Restart the session (or open a new one) and ask, for example:
*“How do I do an async PIX Out on the CorpX BaaS API?”*

On the site, the **Connect to Claude Code** page action copies the ready
command.

## Cursor

Create or edit `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` in the
project:

```json
{
  "mcpServers": {
    "corpx-docs": {
      "url": "https://corpx-en.docs.buildwithfern.com/_mcp/server"
    }
  }
}
```

Restart Cursor. Under **Settings → MCP** the `corpx-docs` server should show
green. The **Connect to Cursor** button on the site opens one-click install.

## ChatGPT

In the ChatGPT desktop app (or Codex CLI / IDE extension):

1. **Settings → MCP servers → Add server**
2. Name: `corpx-docs`
3. Transport: **Streamable HTTP**
4. URL: `https://corpx-en.docs.buildwithfern.com/_mcp/server`
5. Save and restart

With Codex CLI:

```bash
codex mcp add corpx-docs --url https://corpx-en.docs.buildwithfern.com/_mcp/server
```

In the composer, `/mcp` lists connected servers.

## Manus

1. **Settings → Connectors → Add connectors → Custom MCP → Direct configuration**
2. Name: `CorpX docs`
3. Transport: **HTTP**
4. Server URL: `https://corpx-en.docs.buildwithfern.com/_mcp/server`
5. Save (no headers — the docs are public)

In a new task, ask: *“Check the CorpX docs and tell me the required headers
for the tenant host.”*

## Other clients

Any MCP client with HTTP / Streamable HTTP transport accepts the same URL.
Examples: Claude Desktop, Windsurf, VS Code / GitHub Copilot (`mcp.json`),
custom agents.

## Alongside the indexes

MCP does not replace the static files for agents:

* [`/llms.txt`](https://en.docs.api.corpx.com/llms.txt) — index
* [`/openapi/api-baas.yaml`](https://en.docs.api.corpx.com/openapi/api-baas.yaml) /
  [`/openapi/api-internet-banking.yaml`](https://en.docs.api.corpx.com/openapi/api-internet-banking.yaml) — contract
* [For agents (BaaS)](/baas/guias/referencia/para-agentes) and
  [For agents (IB)](/ib/guias/referencia/para-agentes) — rules the spec does
  not express