Title: WebSamurai
Author: Kiera Howe
Published: <strong>2026 年 1 月 14 日</strong>
Last modified: 2026 年 4 月 1 日

---

搜尋外掛

![](https://ps.w.org/websamurai/assets/icon.svg?rev=3448260)

# WebSamurai

 由 [Kiera Howe](https://profiles.wordpress.org/jxowe/) 開發

[下載](https://downloads.wordpress.org/plugin/websamurai.1.0.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/websamurai/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/websamurai/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/websamurai/#developers)

 [技術支援](https://wordpress.org/support/plugin/websamurai/)

## 外掛說明

WebSamurai brings AI capabilities to your WordPress site through a powerful Model
Context Protocol (MCP) server implementation. This plugin provides a secure interface
for your AI tools to interact with your WordPress installation.

The premium service will allow you to simply type your command on the front-end 
and it will update your pages or posts or other types based on your prompt.

#### Key Features

 * **Model Context Protocol (MCP) Server** – HTTP-based MCP server with JSON-RPC
   2.0 implementation
 * **Secure API Key Authentication** – Generate and manage API keys with enterprise-
   grade security
 * **Easy-to-Use Admin Interface** – React-based admin panel for managing API keys
 * **OAuth Integration** – Built-in OAuth support for secure authentication to the
   remote services
 * **Developer-Friendly** – Clean, extensible codebase following WordPress coding
   standards

#### Use Cases

 * Connect Claude Desktop, Claude Code, ChatGPT or your favorite AI Assistant to
   your WordPress site
 * AI-powered content management
 * Create custom AI tools that interact with WordPress
 * Automate WordPress tasks using AI
 * Run instructions directly from your site
 * Allow your clients an easy interface to AI driven content

#### Technical Highlights

 * JSON-RPC 2.0 over HTTP protocol
 * Stateless HTTP transport (no persistent connections required)
 * API key-based authentication (X-API-Key or Authorization Bearer)
 * Keys prefixed with `sk_` followed by 64 hexadecimal characters
 * Standard JSON-RPC error handling

#### Getting Started

 1. Install and activate the plugin
 2. Navigate to WebSamurai in your WordPress admin menu
 3. Generate an API key with a descriptive name
 4. Copy your API key immediately (you won’t be able to see it again)
 5. Use the API key to connect your AI tools to WordPress

### Premium Service

 1. Sign up for an account on WebSamurai.
 2. On your admin panel, Navigate to WebSamurai, OAuth Connection
 3. Connect to the server
 4. You will now see an “AI” tab on the front of your website that will allow you to
    make prompts to the AI.
 5. The will also be a “Generate Image” on the Media and on the Image block that will
    allow you to create images.

#### API Endpoints

 * Main MCP Endpoint: `/wp-json/websamurai/v1/mcp`
 * Server Info: `/wp-json/websamurai/v1/mcp/info`
 * API Key Management: `/wp-json/websamurai/v1/api-keys`

#### Claude Desktop Configuration

Take a look at https://www.websamurai.io/chatbot_setup/ to see how to setup various
chatbots

#### Developer Resources

 * Built with React and WordPress REST API
 * Follows WordPress coding standards
 * Extensible architecture for adding custom tools
 * Comprehensive MCP server implementation

#### Automatic Installation

 1. Log in to your WordPress admin panel
 2. Navigate to Plugins > Add New
 3. Search for “WebSamurai”
 4. Click “Install Now” and then “Activate”

#### Manual Installation

 1. Download the plugin ZIP file
 2. Log in to your WordPress admin panel
 3. Navigate to Plugins > Add New > Upload Plugin
 4. Choose the ZIP file and click “Install Now”
 5. Click “Activate Plugin”

#### Post-Installation Setup

 1. Navigate to WebSamurai in the admin menu
 2. Generate your first API key
 3. Copy the API key and store it securely
 4. Configure your AI tools to use the API key

### Privacy Policy

WebSamurai stores API keys in your WordPress database. No data is sent to external
servers unless you configure external AI tools to connect to your site.

### Support

For support, documentation, and updates, please visit:
 * Website: https://websamurai.
io * Documentation: Included in plugin (MCP-SERVER.md)

### Credits

WebSamurai is developed and maintained by the WebSamurai team.

Built with:
 * React * WordPress REST API * Model Context Protocol * Babel & Webpack

## 螢幕擷圖

 * [[
 * Front-end chat interface
 * [[
 * API Key management interface – Generate and manage your API keys

## 常見問題集

### What is the Model Context Protocol (MCP)?

The Model Context Protocol is a standardized way for AI assistants to interact with
external services. WebSamurai implements an MCP server that allows AI tools like
Claude to securely communicate with your WordPress site.

### How do I generate an API key?

 1. Go to the WebSamurai menu in your WordPress admin
 2. Enter a descriptive name for your API key
 3. Click “Generate API Key”
 4. Copy the key immediately – it will only be shown once!

### Can I use multiple API keys?

Yes! You can generate multiple API keys for different purposes, environments, or
applications. Each key is tracked independently with usage statistics.

### What happens if I lose my API key?

API keys are stored securely using one-way hashing, so they cannot be retrieved.
If you lose a key, you’ll need to generate a new one and delete the old one.

### Is this plugin secure?

Yes. WebSamurai implements enterprise-grade security:
 * API keys are securely hashed
before storage * All authentication uses secure key comparison * Built on WordPress
REST API security infrastructure * Supports HTTPS encryption * Regular security 
updates

### What PHP version do I need?

WebSamurai requires PHP 7.4 or higher. We recommend using the latest stable PHP 
version for optimal performance and security.

### How do I report a bug or request a feature?

Please visit our website at https://websamurai.io or contact our support team for
assistance.

### The AI is having difficulty accessing my site

Your site’s REST API for the MCP will need to be accessable to the AI. take a look
at the “Connection Failures” at https://www.websamurai.io/chatbot_setup/#connection_failures

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈WebSamurai〉的開發相關工作。

參與者

 *   [ Kiera Howe ](https://profiles.wordpress.org/jxowe/)

[將〈WebSamurai〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/websamurai)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/websamurai/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/websamurai/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/websamurai/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/websamurai/)。

## 變更記錄

#### 1.0.2

 * Update lingering old names of plugin
 * Fix oauth callback for WP sites in a subdirectory on the domain
 * Minor documentation updates

#### 1.0.1

 * Fix error messaging on front end
 * Fix recreate site if site config has been deleted
 * Fix assets images so the show properly
 * Add plugin thumbnail

#### 1.0.0

 * Initial release
 * Model Context Protocol (MCP) server implementation
 * API key generation and management
 * WordPress REST API integration
 * React-based admin interface
 * OAuth integration support
 * Echo tool for testing MCP connections
 * Secure API key authentication
 * Server info endpoint
 * Claude Desktop configuration support

## 中繼資料

 *  版本 **1.0.3**
 *  最後更新 **2 個月前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/websamurai/)
 * 標籤:
 * [AI](https://tw.wordpress.org/plugins/tags/ai/)[artificial intelligence](https://tw.wordpress.org/plugins/tags/artificial-intelligence/)
   [mcp](https://tw.wordpress.org/plugins/tags/mcp/)[model context protocol](https://tw.wordpress.org/plugins/tags/model-context-protocol/)
   [rest-api](https://tw.wordpress.org/plugins/tags/rest-api/)
 *  [進階檢視](https://tw.wordpress.org/plugins/websamurai/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/websamurai/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/websamurai/reviews/)

## 參與者

 *   [ Kiera Howe ](https://profiles.wordpress.org/jxowe/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/websamurai/)