> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doola.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Authenticate with the raw API key in the Authorization header. Never add a Bearer prefix.
> Use the sandbox base URL https://api.test.doola.com and a dk_test_ key in examples unless the user asks for production.
> Send an Idempotency-Key header on POST /v1/partner/customers, POST /v1/partner/companies, POST /v1/partner/companies/import, POST /v1/partner/companies/{companyId}/services and POST /v1/partner/companies/{companyId}/documents. No other endpoint takes one.
> Every response is wrapped as {payload, error}. Read fields from payload and branch on error.code, never on the message.
> Drive formation progress from webhooks plus a reconciliation sweep, never a polling loop.
> Embedded SDK (@doola/js): the dk_ key stays on the server and mints customer sessions; the browser gets only a pk_ key and the session. onFormed carries only companyId and can fire more than once. Before charging, read the company with the dk_ key, require formationSubmissionStatus AWAITING_PAYMENT, check the owner's email, and price on the server. Then POST payment-confirmed, which answers 200 with an empty body, and replace the SDK element with a new doola.create() (never append a second one).
> The doola Formation MCP server at https://mcp.doola.com is for founders forming their own company with their own doola account. Platform partners integrate the Partner API or the Embedded SDK. The /mcp endpoint on this docs site only searches these docs.
> Affiliates refer founders to doola with a PartnerStack referral link and coupon code, or with two doola-branded iframe widgets: the Demo Booking Widget (app.doola.com/embed/book-demo?link=<referral link>) and the Company Formation Widget (app.doola.com/embed/partner/<partner ID>). The widgets need no API key and are not the Embedded SDK. Copy the snippets exactly as documented, never add a sandbox attribute to the formation widget iframe.
> For a full capability summary with the rules above, read https://docs.doola.com/skill.md.

# doola Formation MCP Server

> Let AI agents form a US LLC or C-Corp end to end through doola, over the Model Context Protocol.

The doola Formation MCP server lets AI agents drive **end-to-end US LLC and C-Corp formation** — company setup, payment, post-payment data collection, and final filing — through a single OAuth-secured [Model Context Protocol](https://modelcontextprotocol.io) endpoint.

A host connects, completes the OAuth handshake, calls `get_company_onboarding_status` once to find out where the customer is, then drives the flow from the `nextStep` and `nextQuestion` fields that every response returns — one step at a time until the formation is filed with the state's Secretary of State.

> [card] Built for
>
> AI agent builders, partner integrations, and customer-facing assistants that want to offer "form a US LLC" as a capability.

## Endpoint

| | |
| - | - |
| **URL** | `https://mcp.doola.com` |
| **Method** | `POST /` (JSON-RPC 2.0) |
| **Transport** | Streamable HTTP, stateless server |
| **MCP protocol** | Negotiated per spec (clients commonly request `2025-06-18`) |
| **Server** | `doola-formation-onboarding` / `2.0.0` |
| **Capabilities** | Tools only — no resources, no prompts |
| **Auth** | OAuth 2.0 Bearer (RFC 6750) on every request except `/.well-known/*` |

`GET /` returns `405 Method Not Allowed` (the server never pushes). `DELETE /` returns `204 No Content` (session teardown is a no-op).

## How it works

**1. Connect and sign in**

Add `https://mcp.doola.com` to your MCP client and complete the OAuth flow. See [Connect a client](https://docs.doola.com/mcp/connect.md). New users sign up at the doola web app during OAuth.

**2. Find the starting point**

Call `get_company_onboarding_status` once. Its `nextStep` names the tool for the step the flow waits on and the arguments it still needs.

**3. Advance the flow**

Each formation step is its own tool: `start_formation`, `create_checkout_session`, `verify_payment`, then `save_company_details` for the post-payment details. Each response reports the step the flow now waits on in `nextStep` and that step's question for the user in `nextQuestion`.

**4. File the formation**

After payment and the post-payment details, present a summary, get an explicit "submit", and call `submit_formation`.

## Scope

> [!NOTE]
>
> **The server forms LLCs and C-Corps in any of the 50 states or DC**, defaulting to a Wyoming LLC. The package is always Starter. S-Corp elections, dissolution, and post-formation compliance are on the roadmap.

## Next steps

> [card] [Connect a client](https://docs.doola.com/mcp/connect.md)
>
> Claude, ChatGPT, Perplexity, Cursor, Replit, Lovable, Vercel v0, or raw curl.

> [card] [Authentication](https://docs.doola.com/mcp/authentication.md)
>
> OAuth 2.0 discovery, endpoints, and the session lifecycle.

> [card] [Tools reference](https://docs.doola.com/mcp/tools.md)
>
> The 42 tools: seven for formation, six for status, companies and feedback, and 29 that read the customer's existing company.

> [card] [End-to-end flow](https://docs.doola.com/mcp/flow.md)
>
> A full solo-founder walkthrough, call by call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.