Claude Code Integration

Connect Outpost to Claude Code and upload pages directly from your terminal.

Step 1: Create an API Token

First, create an API token to authenticate with Outpost.

Create API Token

Step 2: Configure Claude Code

Add Outpost to your Claude Code MCP configuration. Edit your config file:

macOS/Linux: ~/.claude.json
Windows: %USERPROFILE%\.claude.json

Your claude.json file should look like this (you may have other settings too):

{
  // ... other settings ...
  "mcpServers": {
    // ... other MCP servers you may have ...
    "outpost": {
      "type": "http",
      "url": "https://outpost.click/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Add this snippet inside your "mcpServers" object:

"outpost": {
  "type": "http",
  "url": "https://outpost.click/mcp",
  "headers": {
    "Authorization": "Bearer YOUR_API_TOKEN"
  }
}

Replace YOUR_API_TOKEN with your actual token (starts with op_).
If you already have other MCP servers, add a comma after the previous entry before pasting.

Step 3: Start Using

Restart Claude Code, then try these commands:

Upload a folder:

"Upload ./dist to Outpost as 'My Dashboard'"

List your pages:

"Show my Outpost pages"

Update visibility:

"Make my Outpost page abc123 private with passcode 'secret'"

Delete a page:

"Delete Outpost page abc123"

Available Tools

Tool Description
outpost_upload_url Get a signed URL to upload files (used with curl)
outpost_list List all your pages
outpost_get Get details of a specific page
outpost_update Update page name, visibility, or passcodes
outpost_delete Delete a page

How Upload Works

When you ask Claude to upload files, it:

  1. Calls outpost_upload_url to get a signed upload URL
  2. Zips your local files using bash
  3. Uploads the zip using curl to the signed URL
  4. Returns the live page URL

Signed URLs expire after 5 minutes and can only be used once.