MCP Server v1.0.0

Claude + WebsitePublisher

Let Claude Desktop build and publish websites for you. Just describe what you want, and watch it happen.

Get Started View on NPM

🔌 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:

📁
Config file location: Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following configuration:

claude_desktop_config.json
{
  "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_status

Get project status including page count, asset count, and domain info

list_pages

List all pages in your project

create_page

Create a new HTML page on your website

update_page

Update an existing page's content

delete_page

Delete a page from your website

list_assets

List all assets (images, CSS, JS files)

upload_asset

Upload a new asset to your website

💬 Example Usage

Here are some things you can ask Claude:

What is the status of my website?
Show me all the pages on my site
Create a homepage with a hero section, navigation, and footer
Build me a portfolio website with an about page and contact form
Update the about page with new content about our team
Delete the old test page

⚙️ 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:

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.

💡
Pro tip: You can test if the MCP server is working by asking Claude: "Use the get_status tool to check my website"

🔗 Resources