Skip to main content

MCP Setup Guide

This guide walks you through connecting the Votel Publisher MCP tool to your AI client. There are two ways to connect:

MethodHow it worksBest for
Remote (OAuth)Connect via URL — no install needed. Your AI client handles login automatically.Claude.ai, ChatGPT, VS Code, web-based clients
Local (API Key)Run the tool on your machine with an API key. Requires Node.js.Claude Code, Claude Desktop, Cursor, Windsurf, Cline

Pick the tab that matches your client below.

Remote Setup (OAuth)

No API key or Node.js required. Your AI client connects to the Votel MCP server directly and authenticates via OAuth.

Requirements: Claude Pro, Max, Team, or Enterprise plan.

  1. Go to Claude.ai Settings > Integrations > MCP Servers
  2. Click Add Server and enter this URL:
https://app.votel.ai/mcp
  1. Claude will open a Votel login page — sign in and click Allow
  2. Done! Ask Claude "List my websites" to verify
Free plan

Claude.ai Free tier does not support remote MCP servers. Use the Local setup with Claude Code or Claude Desktop instead.

Local Setup (API Key)

Run the Votel MCP tool locally on your machine. This works with any client that supports stdio MCP servers.

Before You Start

  1. Make sure Node.js 18+ is installed — run node --version to check
  2. Go to Settings > API Keys in Votel
  3. Click Create API Key, give it a name like "AI Publishing", 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
Remote OAuth with Claude Code

Claude Code also supports remote OAuth servers. If you prefer not to manage an API key:

claude mcp add --transport http votel https://app.votel.ai/mcp

Client Compatibility

ClientLocal (API Key)Remote (OAuth)Notes
Claude.ai--YesPro+ plans only
ChatGPT--YesPro+ accounts
Claude CodeYesYesBoth modes supported
Claude DesktopYesYesRemote requires Pro+ plan
CursorYesYesBoth modes supported
WindsurfYesYesBoth modes supported
VS CodeYesYesBoth modes supported
ClineYesYesVS Code extension

Environment Variables Reference

VariableRequiredDefaultDescription
VOTEL_API_KEYYes (local only)--Your 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.

Available Tools

Once connected, your AI assistant can use these tools:

ToolDescription
list_websitesList all websites for your account
create_websiteCreate a new website with CDN provisioning
get_websiteGet website details, domains, and configuration
delete_websitePermanently delete a website and its resources
add_domainAdd a custom domain with DNS instructions
remove_domainRemove a custom domain
verify_domainCheck DNS propagation and SSL status
purge_cacheClear CDN cache (full or specific URLs)
get_analyticsView traffic, bandwidth, and cache stats
get_storage_credentialsGet credentials for direct file uploads

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. This only applies to the local (API key) setup — remote OAuth doesn't need Node.js.

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

OAuth login page doesn't appear

  • Make sure you're using a paid plan (Claude Pro+, ChatGPT Pro+)
  • Check that the URL is exactly https://app.votel.ai/mcp
  • Try clearing your browser cache and reconnecting

"Session not found" after connecting

The MCP server session may have expired. Disconnect and reconnect the server in your client settings.