Connect Claude Code

Connect Claude Code to DocuWriter.ai with MCP so you can browse spaces, search documents, and generate or update documentation directly from your command line.

Prerequisites

  • A DocuWriter.ai account
  • Claude Code CLI installed

Step 1 - Add the MCP server

Run:

claude mcp add --transport http docuwriter https://app.docuwriter.ai/mcp --scope user

The --scope user flag makes DocuWriter.ai available across your Claude Code projects. Use a project scope instead if you want the configuration to live with one project.

Step 2 - Authenticate

After adding the server, start the OAuth flow if Claude Code does not open it automatically:

claude mcp login docuwriter

Then:

  1. Sign in to DocuWriter.ai in the browser.
  2. Approve access.
  3. Return to Claude Code.

No manual API token is required.

Step 3 - Verify installation

Check the configured servers:

claude mcp list

You should see docuwriter in the list.

Step 4 - Validate the connection

Ask Claude Code:

List my DocuWriter spaces with IDs.

If the connection is successful, Claude Code will return the spaces available to your account.

Configuration scopes

Claude Code supports multiple configuration scopes. Use the scope that matches how you want to share the server configuration:

  • User scope: available across your projects.
  • Project/local scope: limited to a specific project or shared project configuration.

Manual configuration

For advanced setups, configure DocuWriter.ai as an HTTP MCP server using this endpoint:

https://app.docuwriter.ai/mcp

Example shape:

{
  "mcpServers": {
    "docuwriter": {
      "type": "http",
      "url": "https://app.docuwriter.ai/mcp",
      "headers": {}
    }
  }
}

Useful prompts

List my DocuWriter spaces with IDs.
Search all my spaces for "getting started".
Search space 22854 for "MCP".
Generate documentation for this file and save it to space 22854 as "API overview".
Create a document called "Deployment guide" in space 22854.
List pending repository sync suggestions for space 22854.

Learn more

For more information about Claude Code MCP support, see the official Claude Code MCP documentation.