# Docupilot — how to use (mcp.ai)

Connect your Docupilot account and use 4 tools for documents straight from your AI agent. Connect with your own API key. Docupilot is a document automation tool that enables users to generate PDFs, DOCX files, contracts, invoices, and more by integrating with various online services.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_docupilot?ms=1787293380000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `docupilot_create_folder`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/docupilot`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/docupilot/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/docupilot/create/folder` — Tool to create a new folder. Use when organizing documents into custom workspace folders after confirming workspace context.
  - body: { name: string }
- `POST https://api.mcp.ai/api/docupilot/folders/create` — Tool to create a new folder. Use when organizing documents into custom workspace folders after confirming workspace context.
  - body: { name: string }
- `POST https://api.mcp.ai/api/docupilot/folders/list` — Tool to list all folders. Use after authentication to fetch available workspace folders.
- `POST https://api.mcp.ai/api/docupilot/get/authenticated/user` — Tool to retrieve information about the authenticated user. Use after authentication to confirm identity and fetch user account details.

## Example prompts
- "What can I do in Docupilot?"
- "Show me a summary of my Docupilot account"

## More
- Page: https://mcp.ai/docupilot
- Agent spec (llms.txt): https://mcp.ai/docupilot/llms.txt
- Postman collection: https://mcp.ai/docupilot/postman.json
