npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

all-in-one-wp-migration-rest-api-mcp

v1.4.0

Published

All-in-One WP Migration for REST API MCP — manage WordPress backups through Claude AI

Downloads

274

Readme

All-in-One WP Migration for REST API MCP

Manage WordPress backups through Claude AI using the Model Context Protocol. Works with any WordPress site that has the All-in-One WP Migration plugin installed and activated — regardless of hosting provider.

Claude AI  ──►  MCP Connector  ──►  All-in-One WP Migration REST API  ──►  WordPress Site

Prerequisites

| Requirement | Notes | |---|---| | Node.js ≥ 18 | For running the connector locally | | All-in-One WP Migration plugin | Installed & activated on your WordPress site | | WordPress Application Password | Generated in WP Admin → Users → Profile → Application Passwords | | Claude Desktop or Claude Code | To connect the MCP server |


Quick Start

1. Install

# Run directly with npx (recommended — no global install needed)
npx all-in-one-wp-migration-rest-api-mcp

# Or install globally
npm install -g all-in-one-wp-migration-rest-api-mcp

2. Generate a WordPress Application Password

  1. Log in to your WordPress admin dashboard
  2. Go to Users → Profile
  3. Scroll to Application Passwords
  4. Enter a name (e.g. "Claude MCP") and click Add New Application Password
  5. Copy the generated password — you'll only see it once

3. Configure Claude Desktop

Add this block to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "all-in-one-wp-migration": {
      "command": "npx",
      "args": ["-y", "all-in-one-wp-migration-rest-api-mcp"],
      "env": {
        "WP_SITE_URL": "https://your-wordpress-site.com",
        "WP_USERNAME": "your_admin_username",
        "WP_APPLICATION_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
      }
    }
  }
}

Restart Claude Desktop. The connector is now available.

4. Configure Claude Code (CLI)

claude mcp add all-in-one-wp-migration \
  --env WP_SITE_URL=https://your-wordpress-site.com \
  --env WP_USERNAME=your_admin_username \
  --env "WP_APPLICATION_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx" \
  -- npx -y all-in-one-wp-migration-rest-api-mcp

Available Tools

| Tool | Description | |---|---| | list_backups | List all backup files with name, size, date, and type | | export_backup | Trigger a full site export; returns a job ID and download URL | | import_backup | Restore a site from a .wpress file URL | | get_backup_status | Check progress of an ongoing export or import |


Example Prompts

"List all backups on my WordPress site."

"Export a backup of my site, but skip the media files."

"Export a backup of my site and encrypt it with password: mypassword"

"Import the backup from last Tuesday."

"Is my backup export complete yet? The job ID is abc123."

"Delete backup filename.wpress from my WordPress site."


Export Options

You can exclude specific content to reduce backup size:

| Option | Description | |---|---| | no_media | Exclude media library files | | no_spam | Exclude spam comments | | no_post_revisions | Exclude post revisions | | no_cache | Exclude cache files | | no_database | Exclude the database | | no_plugins | Exclude all plugins | | no_themes | Exclude all themes | | no_inactive_plugins | Exclude inactive plugins | | no_inactive_themes | Exclude inactive themes | | no_security | Exclude security options (passwords, keys, credentials) | | no_must_use_plugins | Exclude must-use plugins (mu-plugins) |


Running Locally (Development)

git clone https://github.com/dugyen/all-in-one-wp-migration-rest-api-mcp.git
cd all-in-one-wp-migration-rest-api-mcp

npm install

# Configure credentials
cp .env.example .env
# Edit .env with your WordPress site details

npm run dev   # run with tsx (no build step)
# or
npm run build && npm start

Environment Variables

| Variable | Required | Description | |---|---|---| | WP_SITE_URL | Yes | Full URL of your WordPress site (no trailing slash) | | WP_USERNAME | Yes | WordPress admin username | | WP_APPLICATION_PASSWORD | Yes | WordPress Application Password (spaces are stripped automatically) |


Architecture

┌─────────────────────────────────────┐
│            Claude AI                │
│  (Natural Language Interface)       │
└────────────────┬────────────────────┘
                 │ MCP Protocol (stdio)
┌────────────────▼────────────────────┐
│   All-in-One WP Migration           │
│      for REST API MCP               │
│  ┌──────────────────────────────┐   │
│  │  Tool Definitions            │   │
│  │  Authentication Handler      │   │
│  │  WordPress REST API Client   │   │
│  └──────────────────────────────┘   │
└────────────────┬────────────────────┘
                 │ HTTPS + Basic Auth
┌────────────────▼────────────────────┐
│         WordPress Site              │
│  All-in-One WP Migration Plugin     │
│  REST API: /wp-json/ai1wm/v1/       │
└─────────────────────────────────────┘

Security Notes

  • Credentials are passed as environment variables — never hard-coded
  • All communication uses HTTPS + WordPress Application Passwords
  • Application Passwords can be revoked at any time from the WordPress admin
  • The connector never stores credentials beyond the current process lifetime

Roadmap

  • [ ] Export to cloud storage (Google Drive, Dropbox, Amazon S3)
  • [ ] Scheduled backup management
  • [ ] Multi-site support
  • [ ] Restore to staging environment

License

MIT License


Acknowledgements