Skip to main content
This guide walks you through connecting your AI assistant to Moxn Documents over MCP so it can search, read, and write documentation. For CLI-based setup (API key, no MCP), see CLI Quick Start.

Prerequisites

  • A Moxn account (get one at moxn.dev)
  • An AI assistant that supports MCP:
    • Web apps: Claude.ai, ChatGPT, Gemini
    • Cloud environments: Claude Cowork
    • CLI tools: Claude Code, Gemini CLI
    • Desktop apps: Cursor, Claude Desktop, ChatGPT Desktop
No coding required. This setup involves copying a configuration snippet — that’s it.

Step 1: Get Your Configuration

  1. Sign in to moxn.dev
  2. Go to Knowledge Base
  3. Click MCP Setup to expand the configuration panel
  4. Copy the configuration snippet for your connection type (stdio or http)
MCP Setup panel showing configuration
Local (stdio) — runs on your machine via npx:
{
  "mcpServers": {
    "knowledge-base": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@moxn/mcp-kb",
        "--workspace=your-workspace-slug"
      ]
    }
  }
}
Remote (http) — connects directly to Moxn’s servers:
{
  "mcpServers": {
    "knowledge-base": {
      "type": "http",
      "url": "https://your-workspace-slug.moxn.dev/api/mcp/http"
    }
  }
}

Step 2: Add to Your AI Assistant

Choose your assistant below:
Claude.ai supports MCP servers through its Integrations settings.
  1. Go to claude.ai
  2. Click your profile iconSettingsIntegrations
  3. Click Add Integration and select MCP
  4. Enter the remote URL:
    https://your-workspace-slug.moxn.dev/api/mcp/http
    
  5. Save the integration
Replace your-workspace-slug with your actual workspace slug (visible in your Moxn dashboard URL).Once connected, you can use Moxn tools in any Claude.ai conversation.

Understanding Connection Types

Not sure which setup to use? Here’s the difference:
TypeHow It WorksApps That Use It
Local (stdio)Runs on your machine via npxClaude Code, Cursor, Claude Desktop, Gemini CLI
Remote (http)Connects to Moxn’s serversClaude.ai, ChatGPT, Gemini, Claude Cowork, ChatGPT Desktop
Local is better when available. It supports all features including file uploads, and keeps data flowing through your machine. Remote is required for web and cloud environments. Web apps and cloud VMs can’t execute local commands. The upload_url tool doesn’t work reliably in remote mode.

Using Multiple AI Assistants

If you use several AI tools (e.g., Claude Code on your laptop and Claude.ai in the browser), you can configure both connections. Use different server names so each tool knows which to use:
{
  "mcpServers": {
    "knowledge-base": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@moxn/mcp-kb",
        "--workspace=your-workspace-slug"
      ]
    },
    "knowledge-base-remote": {
      "type": "http",
      "url": "https://your-workspace-slug.moxn.dev/api/mcp/http"
    }
  }
}

Step 3: Authenticate

The first time you use Moxn Documents with your AI:
  1. Ask your AI something like “List my Moxn documents”
  2. A browser window will open for authentication
  3. Sign in with your Moxn account
  4. Return to your AI assistant
Your session persists across restarts — you only need to authenticate once.

Try It Out

Once connected, try these prompts with your AI: Read documents:
“What documents do I have in Moxn?”
“Read the API documentation from my knowledge base”
Create content (on a branch):
“Create a new document called ‘Meeting Notes’ with today’s discussion points”
“Update the onboarding guide to include the new security requirements”
Your AI will create a branch for any changes. You can review and merge in the Moxn web app.

Troubleshooting

  • Make sure you saved the config file and restarted Claude Desktop completely (not just closed the window)
  • Check that the JSON is valid (no trailing commas, matching braces)
  • On Mac, you can find the config file at ~/Library/Application Support/Claude/claude_desktop_config.json
  • On Windows, it’s at %APPDATA%\Claude\claude_desktop_config.json
  • Make sure your default browser isn’t blocking popups from Moxn
  • Try running the MCP server manually to see errors: npx @moxn/mcp-kb --workspace=your-workspace-slug
You need Node.js installed. Download it from nodejs.org (choose the LTS version).After installing, restart your terminal/computer and try again.