Install in Claude Code
Add DocketDrafter to Claude Code, sign in, and start drafting documents.
Claude Code is Anthropic's assistant that runs in a terminal window. DocketDrafter connects to it the same way it connects to Claude, but you add it with a command instead of a settings screen, and your finished documents are saved to a folder on your computer rather than appearing in the conversation.
Add DocketDrafter
Run this once, in a terminal:
claude mcp add --transport http docketdrafter https://api.docketdrafter.com/mcpThen start Claude Code by typing claude.
Sign in
Inside Claude Code, type /mcp and choose docketdrafter. A browser window opens; log in with the account you use for the DocketDrafter app. This authorizes Claude Code to draft documents on your behalf, and you can revoke it at any time (see Authentication & permissions).
Type /mcp again at any point to confirm DocketDrafter is connected.
Use it
Ask for a document in plain language, the same way you would anywhere else:
Using DocketDrafter, prepare a response to the complaint in the Chen matter.
Where your documents go
Claude Code works inside a folder on your computer: the one you were in when you typed claude. Finished Word documents are saved there, under the filename your firm's convention produces, and the assistant tells you the name when it hands one over. If you want all your drafts in one place, start Claude Code from that folder each time.
Start from the folder you want your documents in
cd to the folder you keep matter files in before running claude. Documents are delivered into whatever folder the session started in.
Approving the download
Claude Code asks your permission before it runs any command. The first time it delivers a document you will see a prompt asking to run a curl command, which is how the finished file is fetched onto your computer. Approve it and the document is saved.
Claude Code also asks before each step DocketDrafter itself takes, such as drafting in your firm's workspace or bringing one of your files into a case.
You will be asked each time unless you tell Claude Code that DocketDrafter's work is always fine. To do that, create or edit .claude/settings.json in your folder and add:
{
"permissions": {
"allow": [
"mcp__docketdrafter__*",
"Bash(curl -fL -o *api.docketdrafter.com/download*)",
"Bash(curl -f -F *api.docketdrafter.com/upload*)",
"Bash(unzip -o *documents-*.zip*)",
"Bash(tar -xf *documents-*.zip*)"
]
}
}The first line covers everything DocketDrafter does in your firm's workspace, and is the one most worth adding: without it you are asked to approve each drafting step. It must match the name you used when adding the connector, so if you named it something other than docketdrafter, use that name here.
The Bash lines cover receiving a document, sending one of your own files into a case, and opening a multi-document delivery. Each is pinned to DocketDrafter: the transfer lines only permit transfers to and from api.docketdrafter.com, and the last two only permit opening an archive DocketDrafter named. There are two of those because the tool that opens an archive differs between Windows and macOS; whichever your computer has is the one that runs. Any other download, upload, or archive still asks you first.
If you are still asked to approve a download
Permission rules match the whole command, so an unusual filename can fall outside the patterns above. Approve the prompt, choose the option to stop asking, and Claude Code writes a rule that fits your own setup.
If a download is blocked
If the assistant reports that it could not reach the download, the request was blocked before it left your machine. Approve the command when prompted, or check with whoever manages your computer's network settings that api.docketdrafter.com is reachable. The document is already prepared, so once the connection works, asking again delivers it immediately.
Still stuck?
See Troubleshooting, or email support@docketdrafter.com with what you were doing and what you saw.