Skip to content

Public MCP

Free built-in module. A read-only MCP server that anyone can connect an AI app to, without signing in. It can search and read your public pages, posts and store products, and nothing else. Your admin MCP server stays private.

Open it from Automation > Public MCP in the OG AI Core rail (admin.php?page=ogaie_public_mcp). It is off by default.

Turn it on

  1. Open Public MCP.
  2. Tick Turn on the Public MCP server.
  3. Choose the tools to offer and save.
  4. Give people the Server address shown on the screen:
https://your-site.example/wp-json/ogaie-public/v1/mcp

Tools

Tool Title Arguments Returns
site_info Site information none Site name, description, address, language, store address and currency (with WooCommerce), and a link to llms.txt.
search_content Search the site query (required, up to 200 characters), type (any, page, post, product), limit (1 to 20, default 10), lang Title, type, address, a 40-word excerpt and date of each match.
get_page Read a page url (required, must be on your site) The page's text, starting with a "Source:" line. If the site serves a Markdown copy of the page, that copy is used.
list_products List store products search, category (slug or name), limit (1 to 20), lang ID, name, price, currency, address, stock, categories and a short summary.
get_product Product details url or id Everything above, plus the description, product type and up to 20 variation options.

The two product tools only appear when WooCommerce is active. Each answer is cut at 60,000 characters.

What it shares

  • Every request runs as a signed-out visitor, so it sees only what a guest sees.
  • Only published posts, pages and products that are not password-protected. Products must be visible in the catalogue.
  • Developers can keep any post out with the ogaie_public_mcp_can_share filter (below).

Settings

Setting Key in ogaie_module_public_mcp Default
Turn on the Public MCP server enabled Off
List it in /.well-known/mcp/server-card.json advertise On
Requests per caller every 5 minutes rate_limit 120 (10 to 1000)
Tools (one tick box per tool) tools All on

Discovery

With List it in /.well-known/mcp/server-card.json on, the site serves /.well-known/mcp/server-card.json and /.well-known/mcp/server.json, so AI apps can find the server. Only the public server is listed there, never the admin server.

Rate limit

Each caller (by IP address) gets the set number of requests in a 5-minute window. Over the limit, the server answers HTTP 429 with Retry-After: 300. Addresses are counted under a salted hash and are not stored, and questions are not logged.

Technical details

  • Transport: Streamable HTTP, POST only. GET and DELETE answer 405.
  • JSON-RPC 2.0, one request per call (batches are refused).
  • Methods: initialize, ping, tools/list, tools/call. Resources and prompts return empty lists.
  • CORS is open (*), and every answer is sent with Cache-Control: no-store.
  • It never calls the admin server's ogaie_mcp_tools or ogaie_mcp_callback filters, so admin tools cannot leak into it.
// Keep one page out of the Public MCP.
add_filter( 'ogaie_public_mcp_can_share', function ( $share, $post ) {
    return $post->ID === 123 ? false : $share;
}, 10, 2 );

MCP · MCP tools · Modules