MCP Server

Overview

MULTIGURA has its own MCP server (Model Context Protocol). AI apps and agents such as Claude, ChatGPT, Claude Code, Cursor or VS Code connect to your WordPress site and work with its languages: they read the content, write translations, translate menus, terms, media files, SEO texts, forms, page builder texts and the texts of the theme, and check what is still missing.

 

The agent translates the texts itself and saves them through MULTIGURA. Every change goes through the same checks as in wp-admin: an agent can do only what its WordPress user may do, new translations are drafts until someone publishes them, large changes can be checked first with a dry run, and every change is written to the log.

 

Nothing has to be installed on the site besides MULTIGURA: the server is a module of the plugin. It is off by default, and while it is off none of its code is loaded.

                                        // Without authentication
$curl = curl_init('https://example.com/wp-json/multigura/v1/mcp');

curl_setopt_array($curl, [
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => '{"jsonrpc":"2.0","id":1,"method":"ping"}',
    CURLOPT_RETURNTRANSFER => true
]);

$response = json_decode(curl_exec($curl), true);

// HTTP 401
// WWW-Authenticate: Bearer realm="MULTIGURA", resource_metadata="https://example.com/wp-json/multigura/v1/oauth/resource", scope="read translate manage"
{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32001,
        "message": "Authentication required"
    }
}
                                    

Endpoint

The server has one address, the Server URL:

 

https://example.com/wp-json/multigura/v1/mcp

 

Settings → MULTIGURA → MCP Server → Connection shows the address of your site with a copy button. It is a REST route of WordPress, so a site with plain permalinks has it at /?rest_route=/multigura/v1/mcp.

 

The endpoint takes JSON-RPC 2.0 requests over HTTP POST and answers with JSON (the Streamable HTTP transport of MCP). A request without authentication gets HTTP 401: that is also how an app learns that it has to sign in first.

Requirements

Requirement
MULTIGURA 2.1.0 or later, with the MCP module turned on.
WordPress 6.6 or later (WordPress Abilities: 6.9 or later).
PHP 8.1 or later.
License An active MULTIGURA license. A site whose environment type is local or development (WP_ENVIRONMENT_TYPE) works without one.
Sign-in for apps Pretty permalinks. Claude, ChatGPT and other remote apps also need HTTPS.
User A WordPress user who may edit content (edit_posts). Tools that change settings need an administrator (manage_options).

Getting started

1. Settings → MULTIGURA → General: turn on the MCP module and save. The MCP Server tab appears.
2. MCP Server → Connection: choose your app. The tab shows the Server URL and the ready configuration for it.
3. Claude and ChatGPT: paste the Server URL in the app, sign in to your site and approve the connection. Other apps: create an API key under API keys and paste the configuration with the key.
4. Ask the agent, for example: Which pages are not translated into Japanese yet? or Translate the About page into Japanese as a draft.

 

The agent starts with get_site_overview: it learns the languages and their codes, what is translatable and what the connection may do. The server also gives the agent instructions of its own, so it knows how translations work in MULTIGURA without any setup on your side.

Connecting apps

Apps connect in one of two ways. Claude (claude.ai and the Claude apps) and ChatGPT connect with sign-in: you paste the Server URL, sign in to your WordPress site and approve the connection. No key is copied anywhere.

 

Agents in the terminal and in code editors connect with an API key: create one under MCP Server → API keys and paste the configuration of your app. The Connection section of the tab shows each configuration below with your Server URL, and the window of a new key shows it with the key already in it.

 

Replace https://example.com/wp-json/multigura/v1/mcp with the Server URL of your site and YOUR_API_KEY with your key.

                                        // Server URL
https://example.com/wp-json/multigura/v1/mcp
                                    

Claude

claude.ai and the Claude apps for desktop and mobile. Plugins → Add → Add custom connector: paste the Server URL, then sign in to your site and approve the connection. On Team and Enterprise plans an owner adds the connector for the organization.

 

The connection appears under MCP Server → Connected apps.

                                        // Server URL
https://example.com/wp-json/multigura/v1/mcp

// Authentication
OAuth
                                    

ChatGPT

Turn on Developer mode in the settings of ChatGPT (on Business and Enterprise plans a workspace admin allows it first). Create an app with the Server URL and OAuth authentication, then sign in to your site and approve the connection.

                                        // Terminal
claude mcp add --transport http multigura https://example.com/wp-json/multigura/v1/mcp --header "Authorization: Bearer YOUR_API_KEY"
                                    

Claude Code

Run the command in a terminal. With –scope user the server is available in every project.

                                        // claude_desktop_config.json
{
    "mcpServers": {
        "multigura": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-remote",
                "https://example.com/wp-json/multigura/v1/mcp",
                "--header",
                "Authorization:${AUTH_HEADER}"
            ],
            "env": {
                "AUTH_HEADER": "Bearer YOUR_API_KEY"
            }
        }
    }
}
                                    

Claude Desktop

With an API key, through mcp-remote (needs Node.js). Settings → Developer → Edit Config opens claude_desktop_config.json: add the server and restart Claude Desktop.

 

A site on plain HTTP other than localhost (a local development site such as http://example.loc) also needs –allow-http after the header.

                                        // mcp.json
{
    "mcpServers": {
        "multigura": {
            "url": "https://example.com/wp-json/multigura/v1/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_API_KEY"
            }
        }
    }
}
                                    

Cursor

In ~/.cursor/mcp.json for every project, or in .cursor/mcp.json of one project.

                                        // .vscode/mcp.json
{
    "servers": {
        "multigura": {
            "type": "http",
            "url": "https://example.com/wp-json/multigura/v1/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_API_KEY"
            }
        }
    }
}
                                    

VS Code

In .vscode/mcp.json of the project, or in the file that the command “MCP: Open User Configuration” opens.

                                        // mcp_config.json
{
    "mcpServers": {
        "multigura": {
            "serverUrl": "https://example.com/wp-json/multigura/v1/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_API_KEY"
            }
        }
    }
}
                                    

Windsurf

In ~/.codeium/windsurf/mcp_config.json, then refresh the MCP servers.

                                        {
    "mcpServers": {
        "multigura": {
            "url": "https://example.com/wp-json/multigura/v1/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_API_KEY"
            }
        }
    }
}
                                    

JetBrains IDEs

IntelliJ IDEA, PhpStorm, WebStorm and the other IDEs of JetBrains. Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add, then paste the configuration as JSON.

                                        // Terminal
export MULTIGURA_MCP_KEY="YOUR_API_KEY"
codex mcp add multigura --url https://example.com/wp-json/multigura/v1/mcp --bearer-token-env-var MULTIGURA_MCP_KEY
                                    

OpenAI Codex

Run the commands in a terminal. Codex reads the key from the variable, so keep the export line in your shell profile (~/.zshrc or ~/.bashrc).

                                        // settings.json
{
    "mcpServers": {
        "multigura": {
            "httpUrl": "https://example.com/wp-json/multigura/v1/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_API_KEY"
            }
        }
    }
}
                                    

Gemini CLI

In ~/.gemini/settings.json for every project, or in .gemini/settings.json of one project.

                                        // cline_mcp_settings.json
{
    "mcpServers": {
        "multigura": {
            "type": "streamableHttp",
            "url": "https://example.com/wp-json/multigura/v1/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_API_KEY"
            }
        }
    }
}
                                    

Cline

MCP Servers → Configure → Configure MCP Servers opens cline_mcp_settings.json.

                                        // settings.json
{
    "context_servers": {
        "multigura": {
            "url": "https://example.com/wp-json/multigura/v1/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_API_KEY"
            }
        }
    }
}
                                    

Zed

In the settings.json of Zed (the command “zed: open settings file”).

                                        URL: https://example.com/wp-json/multigura/v1/mcp
Authorization: Bearer YOUR_API_KEY
                                    

Other apps

Any app or library with the Streamable HTTP transport of MCP connects with the Server URL and the Authorization header. Apps that support OAuth for MCP can also connect with sign-in, like Claude and ChatGPT.

Authentication

Every request runs as a WordPress user. The server accepts three kinds of credentials:

 

Credentials Header Runs as
API key Authorization: Bearer multigura_… The administrator who created the key, limited to its access level, languages and tools.
Sign-in (OAuth 2.1) Authorization: Bearer multigura_at_… The user who approved the connection, limited to the access and languages chosen at approval.
Application Password Authorization: Basic … The user of the password, with every access level: the capabilities of the user decide.

 

Whatever the credentials, a connection never gets more than its user has in wp-admin: each tool also checks the WordPress capability it needs (edit_posts to work with content, manage_options to change settings) and the rights of the user on every post it touches.

                                        // An API key: multigura_{id}_{secret}
Authorization: Bearer multigura_1a2b3c4d_8f14e45fceea167a5a36dedd4bea2543b2c1f0e7
                                    

API keys

MCP Server → API keys → Create key. A key has:

 

Setting Description
Name Where the key is used, for example Claude Code on my laptop. Shown in the list and in the log.
Access Read, Translate or Manage (see Access levels).
Languages Every language, or only the languages the key may change. A key limited to languages has no tools that change the whole site.
Tools Every tool of its access level, or only the ones chosen.
Expires Never, in 30 days, in 90 days or in one year.

 

The key is shown once, right after it is created, together with the configuration of the chosen app. The site keeps only a SHA-256 hash of its secret: a lost key cannot be shown again, create a new one instead. The list shows when and by whom each key was created, when it was last used and by which app. Revoke stops a key at once.

 

A key belongs to the administrator who created it and runs as that user. It works only on the MCP endpoint, not on the rest of the REST API.

Access levels

Access Scope What the connection may do
Read read Read the site, its content and its texts. Nothing is changed.
Translate translate Also create and update translations and translate texts.
Manage manage Every tool, also the ones that change the site and its settings: linking translations, synchronization, language codes, import, storage names.

 

Each level includes the levels above it. A tool outside the access of a connection is not in its tools/list, and calling it answers Unknown tool, as if it did not exist. The attempt is written to the log as refused.

                                        // GET /.well-known/oauth-protected-resource/wp-json/multigura/v1/mcp
{
    "resource": "https://example.com/wp-json/multigura/v1/mcp",
    "authorization_servers": [
        "https://example.com/wp-json/multigura/v1/oauth"
    ],
    "scopes_supported": [
        "read",
        "translate",
        "manage"
    ],
    "bearer_methods_supported": [
        "header"
    ],
    "resource_name": "MULTIGURA"
}

// GET /.well-known/oauth-authorization-server/wp-json/multigura/v1/oauth
{
    "issuer": "https://example.com/wp-json/multigura/v1/oauth",
    "authorization_endpoint": "https://example.com/wp-json/multigura/v1/oauth/authorize",
    "token_endpoint": "https://example.com/wp-json/multigura/v1/oauth/token",
    "registration_endpoint": "https://example.com/wp-json/multigura/v1/oauth/register",
    "revocation_endpoint": "https://example.com/wp-json/multigura/v1/oauth/revoke",
    "response_types_supported": [
        "code"
    ],
    "response_modes_supported": [
        "query"
    ],
    "grant_types_supported": [
        "authorization_code",
        "refresh_token"
    ],
    "code_challenge_methods_supported": [
        "S256"
    ],
    "token_endpoint_auth_methods_supported": [
        "none",
        "client_secret_post"
    ],
    "revocation_endpoint_auth_methods_supported": [
        "none",
        "client_secret_post"
    ],
    "scopes_supported": [
        "read",
        "translate",
        "manage",
        "offline_access"
    ],
    "client_id_metadata_document_supported": true,
    "authorization_response_iss_parameter_supported": true,
    "service_documentation": "https://multigura.com/"
}
                                    

Sign-in for apps (OAuth 2.1)

Claude, ChatGPT and other apps that support OAuth for MCP connect without a key. The app finds the authorization server from the 401 answer, registers itself, and opens the consent page of your site in the browser. You sign in to WordPress, choose the access level and the languages, and approve. The app then gets its own tokens.

 

Value
Access token Valid for one hour.
Refresh token Valid for 30 days, replaced at every use. A refresh token used twice ends the connection.
Unused connection Removed after 90 days without use.
PKCE Required, S256.
Client registration Client ID Metadata Documents and Dynamic Client Registration.

 

MCP Server → Connected apps lists the approved connections with their access, languages and last use. Revoke ends a connection at once. Sign-in for apps turns the sign-in off for the whole site (API keys keep working), and New apps stops apps from registering themselves.

 

The server follows the authorization of the MCP specification: OAuth 2.1 with Protected Resource Metadata (RFC 9728), Authorization Server Metadata (RFC 8414), Resource Indicators (RFC 8707), the iss parameter of the answer (RFC 9207) and Token Revocation (RFC 7009).

 

Endpoint Address
Protected resource metadata /.well-known/oauth-protected-resource/wp-json/multigura/v1/mcp
/wp-json/multigura/v1/oauth/resource
Authorization server metadata /.well-known/oauth-authorization-server/wp-json/multigura/v1/oauth
Authorization /wp-json/multigura/v1/oauth/authorize
Token /wp-json/multigura/v1/oauth/token
Registration /wp-json/multigura/v1/oauth/register
Revocation /wp-json/multigura/v1/oauth/revoke
                                        $curl = curl_init('https://example.com/wp-json/multigura/v1/mcp');

curl_setopt_array($curl, [
    CURLOPT_POST           => true,
    CURLOPT_USERPWD        => 'editor:abcd efgh ijkl mnop qrst uvwx',
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => '{"jsonrpc":"2.0","id":1,"method":"ping"}',
    CURLOPT_RETURNTRANSFER => true
]);

$response = json_decode(curl_exec($curl), true);

// Response
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {}
}
                                    

Application Passwords

A WordPress Application Password (Users → Profile → Application Passwords) also works, with Basic authentication. The connection runs as that user with every access level, so the capabilities of the user decide what it may do. WordPress offers Application Passwords on sites with HTTPS and on local sites.

                                        // .htaccess
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
                                    

When the header does not arrive

Some servers remove the Authorization header before PHP sees it, and every request then gets 401 although the key is right. On Apache, the rule below in .htaccess (above the rules of WordPress) passes the header on. Nginx with PHP-FPM passes it by default.

Protocol

Transport

The server speaks the Streamable HTTP transport of MCP in its simplest form: every message is one HTTP POST with one JSON-RPC 2.0 request, and the answer is one JSON response. There is no event stream and no session, so every request stands alone and any number of PHP processes or servers can answer it.

 

Request Answer
POST with a request (has an id) HTTP 200 with the JSON-RPC result, or an HTTP error status with the JSON-RPC error.
POST with a notification (no id) HTTP 202, no body.
POST with a batch (a JSON array) HTTP 400, -32600: batches are not supported.
GET or DELETE HTTP 405 with Allow: POST (no event stream, no sessions to end).
A browser request from another site HTTP 403, -32600 Forbidden origin. Requests without an Origin header (apps, agents, scripts) are not affected.

Protocol versions

The same endpoint serves the current version of MCP and the earlier versions of Streamable HTTP, so older apps keep working. Apps choose the version themselves; nothing has to be set on the site.

 

Version How it starts
2026-07-28 Every request carries its version, the app and its capabilities in params._meta and in the headers. server/discover tells which versions the server supports.
2025-11-25 The app opens with initialize; later requests send the MCP-Protocol-Version header.
2025-06-18 As 2025-11-25.
2025-03-26 initialize; later requests have no version header (a request without one is taken as 2025-03-26).
                                        const MCP_URL = 'https://example.com/wp-json/multigura/v1/mcp';
const MCP_KEY = 'YOUR_API_KEY';

/**
 * One MCP request (protocol version 2026-07-28).
 */
function mcp(string $method, array $params = [], ? string $name = null) : array {

    $params['_meta'] = [
        'io.modelcontextprotocol/protocolVersion' => '2026-07-28',
        'io.modelcontextprotocol/clientInfo'      => ['name' => 'my-script', 'version' => '1.0']
    ];

    $headers = [
        'Content-Type: application/json',
        'Accept: application/json',
        'Authorization: Bearer ' . MCP_KEY,
        'MCP-Protocol-Version: 2026-07-28',
        'Mcp-Method: ' . $method
    ];

    // tools/call and prompts/get: the name; resources/read: the URI
    if ( ! is_null($name) ) {
        $headers[] = 'Mcp-Name: ' . $name;
    }

    $curl = curl_init(MCP_URL);

    curl_setopt_array($curl, [
        CURLOPT_POST           => true,
        CURLOPT_HTTPHEADER     => $headers,
        CURLOPT_POSTFIELDS     => json_encode(['jsonrpc' => '2.0', 'id' => 1, 'method' => $method, 'params' => $params]),
        CURLOPT_RETURNTRANSFER => true
    ]);

    return json_decode(curl_exec($curl), true);

}

$response = mcp('server/discover');

// Response
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "resultType": "complete",
        "supportedVersions": [
            "2026-07-28",
            "2025-11-25",
            "2025-06-18",
            "2025-03-26"
        ],
        "capabilities": {
            "tools": {
                "listChanged": false
            },
            "resources": {},
            "prompts": {
                "listChanged": false
            }
        },
        "instructions": "MULTIGURA manages the languages of this WordPress site. Start with get_site_overview: ...",
        "ttlMs": 300000,
        "cacheScope": "private",
        "_meta": {
            "io.modelcontextprotocol/serverInfo": {
                "name": "multigura",
                "title": "MULTIGURA",
                "version": "2.1.0"
            }
        }
    }
}
                                    

Requests in version 2026-07-28

A request carries the protocol version and the app in params._meta, and the same facts in headers, so that proxies and firewalls can route it without reading the body. The server checks that they match.

 

Header Value
MCP-Protocol-Version The same version as io.modelcontextprotocol/protocolVersion in _meta.
Mcp-Method The method of the request, for example tools/call.
Mcp-Name tools/call and prompts/get: the name of the tool or prompt. resources/read: the URI. A value that is not ASCII is sent as =?base64?{value}?=.
Authorization Bearer with an API key or an access token, or Basic with an Application Password.

 

Results carry resultType: complete and the name and version of the server in _meta. The lists (tools, resources, resource templates, prompts) also carry ttlMs (300000: an app may keep a list for five minutes) and cacheScope: private (the list depends on the connection).

 

The function on the right is used in the examples of this page.

Methods

Method Versions Description
server/discover 2026-07-28 Supported versions, capabilities and the instructions for agents.
initialize earlier Starts the conversation: the version, the capabilities, the server and the instructions.
ping earlier An empty result.
tools/list all The tools this connection may use, with their input schemas and annotations.
tools/call all Runs a tool: params.name and params.arguments.
resources/list all The resources.
resources/templates/list all The resource templates (URIs with an id).
resources/read all The contents of a resource: params.uri.
prompts/list all The prompts.
prompts/get all The messages of a prompt: params.name and params.arguments.

 

Notifications such as notifications/initialized and notifications/cancelled are accepted with HTTP 202. The capabilities are tools, resources and prompts; the lists do not change during a conversation (listChanged: false), and the server does not send requests of its own to the app.

 

The instructions tell the agent how MULTIGURA works: start with get_site_overview, use the language codes as given, translate the texts itself, save translations as drafts, use dry_run for large changes, and keep to the rate limits. They also mention what the site needs at the moment: a missing license, the data of another multilingual plugin to import, or language codes that MULTIGURA does not know.

                                        $curl = curl_init('https://example.com/wp-json/multigura/v1/mcp');

curl_setopt_array($curl, [
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json', 'Authorization: Bearer YOUR_API_KEY'],
    CURLOPT_POSTFIELDS     => json_encode([
        'jsonrpc' => '2.0',
        'id'      => 1,
        'method'  => 'initialize',
        'params'  => [
            'protocolVersion' => '2025-11-25',
            'capabilities'    => (object) [],
            'clientInfo'      => ['name' => 'my-script', 'version' => '1.0']
        ]
    ]),
    CURLOPT_RETURNTRANSFER => true
]);

$response = json_decode(curl_exec($curl), true);

// Response
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "protocolVersion": "2025-11-25",
        "capabilities": {
            "tools": {
                "listChanged": false
            },
            "resources": {},
            "prompts": {
                "listChanged": false
            }
        },
        "serverInfo": {
            "name": "multigura",
            "title": "MULTIGURA",
            "version": "2.1.0"
        },
        "instructions": "MULTIGURA manages the languages of this WordPress site. Start with get_site_overview: ..."
    }
}
                                    

Earlier versions: initialize

An app of an earlier version opens with initialize and gets the version, the capabilities, the server and the instructions. No session is created: the following requests send only the MCP-Protocol-Version header (2025-06-18 and later) and stand alone.

 

In the earlier versions an unknown method or an invalid parameter is answered with HTTP 200 and the JSON-RPC error, and a resource that does not exist has the code -32002, as those versions expect.

Tools

                                        $response = mcp('tools/call', [
    'name'      => 'list_languages',
    'arguments' => (object) []
], 'list_languages');

// Response
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "resultType": "complete",
        "content": [
            {
                "type": "text",
                "text": "{"languages":[{"code":"en","name":"English","native":"Englis..."
            }
        ],
        "structuredContent": {
            "languages": [
                {
                    "code": "en",
                    "name": "English",
                    "native": "English",
                    "locale": "en_US",
                    "default": true,
                    "prefix": "/en"
                },
                {
                    "code": "ka",
                    "name": "Georgian",
                    "native": "ქართული",
                    "locale": "ka_GE",
                    "default": false,
                    "prefix": "/ka"
                },
                {
                    "code": "ja",
                    "name": "Japanese",
                    "native": "日本語",
                    "locale": "ja",
                    "default": false,
                    "prefix": "/ja"
                }
            ]
        },
        "isError": false,
        "_meta": {
            "io.modelcontextprotocol/serverInfo": {
                "name": "multigura",
                "title": "MULTIGURA",
                "version": "2.1.0"
            }
        }
    }
}
                                    

The tools are what an agent does on the site. tools/list returns only the tools the connection may use: its access level, the tools of its API key, the switches of MCP Server → Tools and what the site has (a tool of an integration appears only with its plugin, the tools of block themes only with a block theme). Each tool has a title, a description written for agents, an input schema and annotations (readOnlyHint, destructiveHint, idempotentHint), so that apps can ask before a change.

 

Arguments that many tools share:

 

Argument Description
language A language code exactly as list_languages gives it, for example ja.
dry_run true: check everything and say what would change, without saving. Every tool that writes has it.
status Status of a new translation: draft (default), pending, publish or private.
machine google or deepl: texts the agent leaves out are translated by the AI Translation module of the site (with its key) instead of copied.
missing_in Only the items that have no translation in this language yet.
limit, cursor Lists come in pages: pass next_cursor of the answer as cursor to get the next page.

 

Tools that take a list save up to 100 items in one call (texts and builder or form texts: 200 to 500), and check every item before they save any. A tool that works long (synchronization, import, a language code change) works for up to 20 seconds and tells the agent to call it again until it is done.

                                        $response = mcp('tools/call', [
    'name'      => 'list_content',
    'arguments' => ['type' => 'page', 'missing_in' => 'ja', 'limit' => 1]
], 'list_content');

// Response: structuredContent
{
    "type": "page",
    "language": "en",
    "total": 5,
    "items": [
        {
            "id": 2581,
            "type": "page",
            "language": "en",
            "original": true,
            "status": "publish",
            "title": "Refund and Returns Policy",
            "parent": 0,
            "modified": "2026-11-21T19:51:08+04:00",
            "url": "https://example.com/en/refund-returns/",
            "edit_url": "https://example.com/wp-admin/post.php?post=2581&action=edit&lang=en",
            "translations": {
                "ka": {
                    "id": 2590,
                    "status": "publish"
                }
            }
        }
    ],
    "next_cursor": "1"
}

$response = mcp('tools/call', [
    'name'      => 'create_translation',
    'arguments' => [
        'source_id' => 2581,
        'language'  => 'ja',
        'title'     => '返金・返品ポリシー',
        'content'   => '<!-- wp:paragraph --><p>返金・返品ポリシーは30日間有効です。</p><!-- /wp:paragraph -->',
        'dry_run'   => true
    ]
], 'create_translation');

// Response: structuredContent
{
    "dry_run": true,
    "message": "A draft Page in ja would be created from 2581.",
    "fields": [
        "title",
        "content"
    ],
    "objects": [
        {
            "type": "page",
            "id": 0,
            "language": "ja",
            "action": "create",
            "source": 2581
        }
    ]
}

// A tool error
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "resultType": "complete",
        "content": [
            {
                "type": "text",
                "text": "Invalid arguments: language must be one of: en, ka, ja"
            }
        ],
        "isError": true,
        "_meta": {
            "io.modelcontextprotocol/serverInfo": {
                "name": "multigura",
                "title": "MULTIGURA",
                "version": "2.1.0"
            }
        }
    }
}
                                    

Results

A tool answers with structuredContent (the result as an object) and the same result as JSON text in content, for apps that read only text. A tool that writes returns a message, the objects it changed (type, id, language, action) and, with dry_run, what it would do.

 

A problem with the call itself, such as invalid arguments, a post the user may not edit or a missing license, is a result with isError: true and a message for the agent, so that it can correct the call. Errors of the protocol are JSON-RPC errors (see Errors).

Site

The site and its settings. Agents call get_site_overview first.

 

Tool Access Description
get_site_overview Read Languages, default language, translatable types and taxonomies, modules and integrations of the site, and what this connection may do.
list_languages Read The languages with their codes, names, locales and URL prefixes.
get_storage_names Read Names of the tables and meta keys of MULTIGURA in the database, and data still under the names before 2.1.0.
change_storage_names Manage Renames those tables or meta keys and moves their data; after an update from 2.0 it moves the data from the earlier names.

Content

Posts, pages and every other translatable type. A translation is a post of its own, linked to its original in a translation group.

 

Tool Access Description
list_content Read Items of one type in one language; missing_in finds originals without a translation, outdated_in translations older than their original.
get_content Read The texts of an item: title, content with its block or builder markup, excerpt, slug, SEO texts and, with meta, text custom fields.
get_translation_group Read Every language version of an item side by side, and the languages still missing.
create_translation Translate Creates a translation from an original with the texts the agent gives: a copy of the original (custom fields, terms, featured image) with the translated texts.
update_translation Translate Changes the texts or the status of an existing translation.

Groups

Fixing translation groups.

 

Tool Access Description
link_translation Manage Makes a post the translation of another, for example two pages written separately in two languages.
unlink_translation Manage Takes a translation out of its group: it becomes an original of its own.
set_language Manage Changes the language of a post; its address moves to that language.

Terms, menus and media

Tool Access Description
list_terms Read Terms of a translatable taxonomy with their name, description and translations.
translate_terms Translate Saves the names and descriptions of terms in a language, up to 100 at once.
list_menus Read Classic menus with their language, theme locations and versions in the other languages.
get_menu Read The items of a menu in order, what they link to and the translations of their pages.
translate_menu Translate Makes the menu of a language: the same items in the same order, each page or post pointing to its translation.
list_media Read Media files with alt text, title, caption and description and their translations; without_alt finds files without alt text.
translate_media Translate Saves the texts of media files in a language, up to 100 at once.

Block theme

Navigations, templates and template parts of a block theme (Site Editor). A translation of a template or template part is a copy for one language.

 

Tool Access Description
list_navigations Read Navigation menus with their language and their versions in the other languages.
get_navigation Read A navigation: its block markup and its links in order.
translate_navigation Translate Makes the navigation of a language, each page or post link pointing to its translation.
list_template_parts Read Template parts (header, footer …) with their translations.
get_template_part Read A template part with its block markup and patterns written out.
translate_template_part Translate Saves the copy of a template part for a language.
list_templates Read Templates (index, single, page, archive …) with their translations.
get_template Read A template with its block markup and patterns written out.
translate_template Translate Saves the copy of a template for a language.

SEO

The SEO module of MULTIGURA. The SEO texts of Yoast SEO, Rank Math and The SEO Framework have tools of their own.

 

Tool Access Description
get_seo Read The SEO texts of an item in every language and the description the page really outputs.
update_seo Translate Saves SEO texts of items, up to 100 at once.
audit_seo Read Items of one type and language with SEO issues: missing or untranslated texts, too long titles and descriptions, noindex, redirects, canonical elsewhere.
get_seo_defaults Read The default meta description in each language, default keywords and robots, and the title settings.
translate_seo_defaults Translate Saves the default meta description in the other languages.
get_plugin_seo Read SEO texts of Yoast SEO, Rank Math or The SEO Framework of posts or terms in every language, and what each language lacks.
translate_plugin_seo Translate Saves those texts in a language, up to 100 posts or terms at once.

Forms and page builders

Contact Form 7, Gravity Forms and Ninja Forms; Elementor, Divi, Avada and WoodMart.

 

Tool Access Description
list_forms Read Forms with the number of missing and outdated texts per language.
get_form_texts Read The texts of a form in order with their translations, and what each language lacks.
translate_form_texts Translate Saves the texts of a form in a language by key, up to 500 at once.
get_builder_texts Read The texts of a page built with a page builder in the order of the page, with their translations.
translate_builder_texts Translate Saves the texts of a translation of a built page by key, up to 500 at once.

Texts

The texts of the theme and the plugins (Text Translation), when the site keeps them in the database.

 

Tool Access Description
list_text_domains Read Text domains with the number of texts and how many are untranslated in each language.
search_strings Read The texts of a domain with their translations; missing_in finds the untranslated ones.
update_strings Translate Saves translations of texts, up to 200 at once.

Quality, language codes and import

Overview of the site and the operations that change it as a whole. The tools that change something show their report first and ask the user about a backup of the database.

 

Tool Access Description
translation_coverage Read How much of the site is translated: per type and language the published, unpublished, missing and possibly outdated translations.
sync_data Manage Gives the default language to content that has none yet, as Synchronize now in the settings.
language_code_report Read What changing a language code would do, without changing anything.
change_language_code Manage Changes a language code everywhere and redirects the old addresses (301).
import_report Read What an import from WPML, Polylang or TranslatePress would bring, without changing anything.
run_import Manage Imports the languages, translation groups and translations of that plugin.

ACF and WooCommerce

With Advanced Custom Fields and WooCommerce on the site.

 

Tool Access Description
get_acf_fields Read The ACF text fields of a post in every language (also inside repeaters, groups and flexible content), and what each translation lacks.
translate_acf_fields Translate Saves ACF text fields of a translation by path, up to 500 at once.
get_product Read The WooCommerce texts of a product in every language: purchase note, button text and variation descriptions.
translate_product Translate Saves those texts of a product translation.
list_emails Read WooCommerce emails with their subject, heading and additional content in each language.
translate_emails Translate Saves the texts of WooCommerce emails in a language, up to 100 at once.

Resources and prompts

                                        $response = mcp('resources/read', [
    'uri' => 'multigura://languages'
], 'multigura://languages');

// Response
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "resultType": "complete",
        "contents": [
            {
                "uri": "multigura://languages",
                "mimeType": "application/json",
                "text": "{"languages":[{"code":"en","name":"English","native":"English","locale":"en_US","default":true,"prefix":"/en"},{"code":"ka","name":"Georgian","native":"ქართული","locale":"ka_GE","default":false,"prefix":"/ka"},{"code":"ja","name":"Japanese","native":"日本語","locale":"ja","default":false,"prefix":"/ja"}]}"
            }
        ],
        "_meta": {
            "io.modelcontextprotocol/serverInfo": {
                "name": "multigura",
                "title": "MULTIGURA",
                "version": "2.1.0"
            }
        }
    }
}
                                    

Resources

Resources are data an app can read and attach to the conversation itself, without a tool call by the agent. They use the same rights as the tools: a resource appears only when the connection may use the tool behind it.

 

URI Description
multigura://site Languages, default language, translatable types and taxonomies, modules and integrations, and what this connection may do.
multigura://languages The languages with the codes to use in the tools.
multigura://coverage How much of the site is translated, per type and language.
multigura://content/{id} The translatable texts of an item by its ID (template).
multigura://group/{id} Every language version of an item with their texts side by side, and the languages still missing (template).

 

resources/list returns the first three, resources/templates/list the two templates. The contents are JSON (application/json). A URI that does not exist, or an item the user may not edit, is answered with -32602 and the URI in data.

                                        $response = mcp('prompts/get', [
    'name'      => 'translate_content',
    'arguments' => ['id' => '2581', 'language' => 'ja']
], 'translate_content');

// Response
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "resultType": "complete",
        "description": "Translate a post, page or other item into a language: reads the original, writes the translation as a draft (or updates the existing one).",
        "messages": [
            {
                "role": "user",
                "content": {
                    "type": "text",
                    "text": "Translate the page #2581 "Refund and Returns Policy" into Japanese (ja) on this WordPress site with the MULTIGURA tools.nn1. Read it: get_translation_group with id 2581 and fields: true. ..."
                }
            }
        ],
        "_meta": {
            "io.modelcontextprotocol/serverInfo": {
                "name": "multigura",
                "title": "MULTIGURA",
                "version": "2.1.0"
            }
        }
    }
}
                                    

Prompts

Prompts are ready tasks that an app offers to the user, for example as slash commands. The server fills in the item and the language and returns the instructions for the agent, step by step, with the tools to use.

 

Prompt Arguments Description
translate_content id, language, status Translate a post, page or other item into a language: reads the original and writes the translation as a draft (or updates the existing one).
audit_site language Check what is not translated, possibly outdated or missing SEO texts, and get a report with a plan. Changes nothing.
translate_strings domain, language Translate the missing texts of a text domain (theme, plugin) into a language.

Errors

                                        // HTTP 429, Retry-After: 20
{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "Rate limit: 30 writing calls a minute for this API key. Retry in 20 seconds.",
        "data": {
            "retryAfter": 20,
            "limit": 30,
            "kind": "write"
        }
    }
}

// HTTP 400
{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32022,
        "message": "Unsupported protocol version",
        "data": {
            "supported": [
                "2026-07-28",
                "2025-11-25",
                "2025-06-18",
                "2025-03-26"
            ],
            "requested": "2024-11-05"
        }
    }
}

// HTTP 400
{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32602,
        "message": "Unknown tool: change_language_code"
    }
}

// HTTP 401, WWW-Authenticate: Bearer realm="MULTIGURA", resource_metadata="...", scope="read translate manage", error="invalid_token"
{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32001,
        "message": "The API key has expired"
    }
}
                                    

Errors of the protocol are JSON-RPC errors with an HTTP status. In the earlier protocol versions an unknown method and invalid parameters have HTTP 200, as those versions expect.

 

Code HTTP Message Reason
-32700 400 Parse error The body is not JSON.
-32600 400 Invalid Request Not a JSON-RPC 2.0 request, or a batch.
-32600 403 Forbidden origin A browser request from another site (see multigura_mcp_origins).
-32601 404 Method not found An unknown method.
-32602 400 Invalid params Invalid parameters, an unknown tool or prompt (also a tool the connection may not use), a resource that does not exist.
-32603 500 Internal error An error on the site. The details go to the PHP error log, not to the answer.
-32001 401 Authentication required No credentials, or a key or token that is wrong, revoked or expired. The WWW-Authenticate header tells where to sign in.
-32000 429 Rate limit Too many calls this minute. Retry-After says how many seconds to wait.
-32020 400 Header mismatch The headers do not match the body (version 2026-07-28).
-32022 400 Unsupported protocol version A version the server does not support; data lists the supported ones.
-32002 200 Resource not found A resource that does not exist, in the earlier protocol versions.

 

A problem inside a tool, such as invalid arguments, a post the user may not edit or a missing license, is not a protocol error: the tool answers with isError: true and a message for the agent (see Tools).

Limits, log and security

Rate limits

The server counts how many calls each API key, app connection or user makes in a minute, separately for reading and writing. An agent stuck in a loop or a leaked key cannot overload the site, run up the cost of machine translation or change much in a short time.

 

Calls Default Counted
Reading 120 a minute Tools that only read, and every other method (discover, lists, resources, prompts).
Writing 30 a minute Tools that change something, dry runs included.

 

MCP Server → Limits sets both (or no limit). Past the limit the answer is HTTP 429 with Retry-After; the instructions tell agents to wait that long and to send items in one call where a tool takes a list. With a persistent object cache (Redis, Memcached) the counter lives there; without one, it is one row of the options table and costs one query a request. The front end and wp-admin are not affected.

Log

MCP Server → Log shows the last 200 calls that changed something or were refused: the time, the tool, the result (Done, Error, Refused, Dry run) with its message, the app, the user with the key or app, and the objects it touched with links to edit them. Reading tools are not logged, and neither are the arguments nor IP addresses.

 

The log is one option that is not autoloaded, written under a database lock so that parallel calls do not lose entries. The filter multigura_mcp_log turns it off.

Security

  • A connection never gets more than its WordPress user: every tool checks its capability, and every post is checked with the rights of the user (edit_post).
  • API keys, tokens and client secrets are stored only as hashes. Keys can expire, connections end after 90 days without use, and both can be revoked at once.
  • Every argument is checked against the input schema of the tool. Texts are saved through WordPress with its sanitizing (kses for content, unless the user may post unfiltered HTML), and protected meta keys are never written.
  • New translations are drafts unless the agent is asked to publish. Tools that write have dry_run, and the tools that change the whole site (import, language codes, storage names) show their report first and need the confirmation of a database backup.
  • Tools can be turned off one by one under MCP Server → Tools; a tool that is off is not listed and cannot be called.
  • Browser requests are accepted only from the site itself. The consent page of the sign-in cannot be opened in a frame.
  • Errors inside PHP never reach the answer: the app gets -32603 and the details go to the error log.

WordPress Abilities

                                        // WordPress 6.9+
$ability = wp_get_ability('multigura/translation-coverage');

$result = $ability -> execute(['type' => 'page']);

// Turn the abilities off (in a must-use plugin)
add_filter('multigura_mcp_abilities', '__return_false');
                                    

On WordPress 6.9 and later every tool is also a WordPress ability (Abilities API), named multigura/{tool} with hyphens, for example multigura/get-site-overview, in the category multigura. So the tools are also offered by the official MCP Adapter of WordPress, by the REST API of the abilities and by the AI features of WordPress.

 

An ability has the same input schema, the same capability checks and the same switches of the Tools section as the tool, and its calls count toward the rate limits and appear in the log with the app WordPress Abilities. The own endpoint of MULTIGURA works without it.

 

The abilities are registered only when WordPress starts its abilities registry, never on an ordinary request. The filter multigura_mcp_abilities (false) turns them off.

For developers

                                        add_filter('multigura_mcp_tools', function (array $tools) : array {

    $tools['get_reading_time'] = [
        'name'        => 'get_reading_time',
        'title'       => 'Reading time',
        'description' => 'Reading time of a post in minutes, from the words of its content.',
        'inputSchema' => [
            'type'                 => 'object',
            'properties'           => [
                'id' => ['type' => 'integer', 'description' => 'ID of the post.', 'minimum' => 1]
            ],
            'required'             => ['id'],
            'additionalProperties' => false
        ],
        'annotations' => ['readOnlyHint' => true, 'idempotentHint' => true, 'openWorldHint' => false],
        'scope'       => 'read',
        'capability'  => 'edit_posts',
        'callback'    => function (array $args) {

            $post = get_post($args['id']);

            if ( ! $post || ! current_user_can('edit_post', $post -> ID) ) {
                return new WP_Error('not_found', 'No post with the ID ' . $args['id'] . ' that you can edit.');
            }

            $words = count(preg_split('/\s+/u', trim(wp_strip_all_tags($post -> post_content)), -1, PREG_SPLIT_NO_EMPTY));

            return ['id' => $post -> ID, 'words' => $words, 'minutes' => max(1, (int) ceil($words / 200))];

        }
    ];

    return $tools;

});
                                    

Your own tools

A theme or plugin adds tools with the filter multigura_mcp_tools (name => tool). The tool gets the same authentication, access levels, switch in the Tools section, rate limit, log and WordPress ability as the tools of MULTIGURA.

 

Key Description
name The name of the tool: letters, digits, _, – and . (up to 128 characters), the same as the key in the array.
title A short title for people.
description What the tool does, written for an agent: when to use it and what it returns.
inputSchema JSON Schema of the arguments, type object. The server checks the arguments against it and fills in the defaults.
annotations readOnlyHint, destructiveHint, idempotentHint, openWorldHint. A tool without readOnlyHint counts as writing (rate limit, log).
scope read, translate or manage (default manage).
capability The WordPress capability the user needs (default manage_options), or a callback that returns whether the tool is available.
group The group in the Tools section (default other; groups: multigura_mcp_tool_groups).
callback Gets the arguments and returns an array (structuredContent) or a WP_Error (a result with isError: true).

 

The callback also checks the rights on each object it touches, as the tools of MULTIGURA do.

                                        // Higher limits for one API key
add_filter('multigura_mcp_rate_limits', function (array $limits, ? array $key, int $user) : array {

    if (($key['name'] ?? '') === 'Translation agency') {
        $limits['write'] = 120;
    }

    return $limits;

}, 10, 3);

// A web app on another domain may call the endpoint from the browser
add_filter('multigura_mcp_origins', function (array $origins) : array {

    $origins[] = 'https://app.example.com';

    return $origins;

});

// Japanese: a note for agents on this site
add_filter('multigura_mcp_instructions', function (string $instructions) : string {
    return $instructions . ' Japanese texts use the polite form (です・ます).';
});
                                    

Filters

Filter Description
multigura_mcp_tools Add, change or remove tools (name => tool).
multigura_mcp_tool_groups Groups of the Tools section (key => label).
multigura_mcp_resources Add, change or remove resources and resource templates.
multigura_mcp_prompts Add, change or remove prompts.
multigura_mcp_instructions The instructions the server gives to agents (string).
multigura_mcp_rate_limits The limits of a request: read => int, write => int (0: no limit), with the API key and the user ID.
multigura_mcp_origins Browser origins allowed to call the endpoint, besides the site itself.
multigura_mcp_log false: the call is not logged (with the tool).
multigura_mcp_log_object The title and edit link of an object of your own type in the log.
multigura_mcp_meta_key false: a custom field is left out of get_content and update_translation (with the key and the post ID).
multigura_mcp_abilities false: the tools are not registered as WordPress abilities.
multigura_mcp_seo_plugins SEO plugins of get_plugin_seo and translate_plugin_seo.
multigura_mcp_forms Form plugins of the Forms tools.
multigura_mcp_builders Page builders of the page builder tools.
multigura_elementor_mcp_skip true: a setting of an Elementor widget is left out of the texts (with the setting name and the widget type).
multigura_divi_mcp_modules Divi modules whose texts the page builder tools read: block name => title and attributes.
multigura_avada_mcp_shortcodes Avada shortcodes whose texts the page builder tools read: tag => content and attributes.
multigura_woodmart_mcp_attributes Settings of WoodMart blocks that are texts: block => setting => long.

 

After a change through MCP the usual MULTIGURA actions run, so a page cache can clear what changed: multigura_translations_changed, multigura_texts_changed, multigura_seo_changed, multigura_terms_changed and multigura_media_changed.