Skip to main content

MCP Setup Guide

This guide walks you through configuring the Votel Publisher MCP tool for each supported AI client. You only need to set up one client — pick the one you use.

Before You Start

  1. Go to Settings > API Keys in Votel
  2. Click Create API Key
  3. Give it a name like "AI Publishing" and select the Admin role
  4. Copy the sk_... key — you'll need it below

Installation

Claude Code is a terminal-based AI assistant. Setup takes one command.

Run this in your terminal:

claude mcp add votel-mcp \
-e VOTEL_API_KEY=sk_your_api_key_here \
-e VOTEL_API_URL=https://app.votel.ai \
-- npx -y votel-mcp@latest

Replace sk_your_api_key_here with your actual API key.

Verify it works:

claude mcp list

You should see votel-mcp in the list. Start a new Claude Code session and ask "List my websites".

To remove:

claude mcp remove votel-mcp

Environment Variables Reference

VariableRequiredDefaultDescription
VOTEL_API_KEYYesYour Votel API key (sk_...). Create at Settings > API Keys.
VOTEL_API_URLNohttps://app.votel.aiBase URL of the Votel API. Only change for development setups.

Verifying Your Setup

After configuring any client, test with these prompts:

  1. "List my websites" — should return your existing sites (or say none found)
  2. "Create a website called Test Site" — should provision a new site and return the CDN URL
  3. "Delete the Test Site website" — should clean up the test site

If all three work, your setup is complete.

Common Issues

npx not found

Make sure Node.js (v18+) is installed. Run node --version to check. Install from nodejs.org if needed.

Permission denied

On macOS/Linux, you may need to allow the npx command in your system security settings the first time it runs.

API key not working

  • Make sure you copied the full key (starts with sk_)
  • Check that the key hasn't expired (Settings > API Keys shows expiration)
  • Verify the key has Admin or higher role