Skip to main content

Setting up Clonra with Claude Code

Colm Doyle avatar
Written by Colm Doyle
Updated today

Prerequisites

  • A Clonra account with AI features enabled

  • Claude Code installed on your computer

Step 1: Create an API key

  1. Log in to Clonra and go to Profile

  2. Scroll to the API Keys section

  3. Click Create API Key

  4. Give it a name like "Claude Code"

  5. Optionally set an expiration date

  6. Click Create

Important: Copy your API key immediately. It starts with clnr_ and is only shown once. If you lose it, you'll need to create a new one.

Step 2: Add Clonra to Claude Code

Open your Claude Code MCP configuration file and add the Clonra server:

{
  "mcpServers": {
    "clonra": {
      "url": "https://clonra.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY_HERE"
      }
    }
  }
}

Replace YOUR_API_KEY_HERE with the API key you copied.

Step 3: Restart Claude Code

Restart Claude Code to load the new configuration. You should see Clonra's tools become available.

Step 4: Test the connection

Try asking Claude Code something like:

"List my recent Clonra logs"

or

"Create a new Clonra log about the feature I just finished"

If Claude can retrieve or create data, you're all set.

Troubleshooting

"Authentication failed" error

  • Check that your API key is correct and hasn't expired

  • Make sure there are no extra spaces in the key

"Record not found" errors

  • MCP can only access your own data β€” you can't view other users' logs

Tools not appearing

  • Restart Claude Code after updating the configuration

  • Check that the JSON syntax is valid

Security tips

  • Create separate API keys for different tools or devices

  • Set expiration dates for keys you won't need long-term

  • Revoke keys you're no longer using

For more details, see Managing API keys.

Did this answer your question?