🔌 What is MCP?
MCP (Model Context Protocol) is an open standard by Anthropic that allows AI assistants like Claude to connect with external tools and services. Our MCP server lets Claude directly interact with your WebsitePublisher.ai projects.
✨ What you can do
Just tell Claude things like "Build me a portfolio website" or "Add a contact page" - and Claude will create the actual pages on your live website!
📦 Installation
Get your API credentials
Log into WebsitePublisher.ai and get your Project ID and API Token from the dashboard.
Make sure Node.js is installed
Open a terminal and check with node --version. If not installed, download from nodejs.org (LTS version).
Configure Claude Desktop
Open the Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"websitepublisher": {
"command": "npx",
"args": ["-y", "websitepublisher-mcp"],
"env": {
"WPA_PROJECT_ID": "your-project-id",
"WPA_TOKEN": "your-api-token"
}
}
}
}
Replace your-project-id and your-api-token with your actual credentials.
Restart Claude Desktop
Completely quit Claude Desktop and reopen it. The MCP server will now be available!
🛠️ Available Tools
Once connected, Claude has access to these tools:
Get project status including page count, asset count, and domain info
List all pages in your project
Create a new HTML page on your website
Update an existing page's content
Delete a page from your website
List all assets (images, CSS, JS files)
Upload a new asset to your website
💬 Example Usage
Here are some things you can ask Claude:
⚙️ Environment Variables
| Variable | Required | Description |
|---|---|---|
WPA_PROJECT_ID |
Yes | Your WebsitePublisher.ai project ID |
WPA_TOKEN |
Yes | Your API token |
WPA_API_BASE |
No | API base URL (default: https://api.websitepublisher.ai) |
🔧 Troubleshooting
Claude doesn't recognize the tools
Make sure Node.js is installed and working. Test in terminal:
npx -y websitepublisher-mcp
You should see: WebsitePublisher MCP server running on stdio
"Missing WPA_PROJECT_ID or WPA_TOKEN" error
Double-check your claude_desktop_config.json file. Make sure the environment variables are set correctly and the JSON is valid.
Changes not taking effect
Make sure to completely quit Claude Desktop (check the system tray on Windows) before restarting it.