Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to the WordPress MCP server

Vendor MCP
Open markdown

The WordPress MCP connector routes your AI agent's tool calls to WordPress's own MCP server through Scalekit. Each user signs in to WordPress once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 6 tools.

Tools
6
What they doRead · write · destructive
3 · 3 · 03 read3 write0 destructive
Users sign in with
OAuth app
Scalekit's or your own

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the WordPress MCP connection

    In AgentKit > Connections, create a WordPress MCP connection. The name you give it is the connection_name your code passes. See Configure connections.

    Scalekit credentials are available for WordPress MCP server, so you don't need to register an OAuth app.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'wordpressmcp'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize WordPress MCP:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'wordpressmcp_wpcom_ai_agent_sites_list',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user signs in once. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • wordpressmcp_wpcom_ai_agent_sites_listLists public production WordPress.com sites whose owners enabled AI Agent Access.Read-only

    List AI Agent Access Sites

    Lists public production WordPress.com sites whose owners enabled AI Agent Access. Use this when the user asks to list, find, discover, or show sites/blogs that opted into AI agents, AI Agent Access, Blog Talks Back, or sites available for Jetpack Search Voice. Pass query or keywords to filter by what a site is about, matched against existing site metadata like title, description, site vertical, and site intent. This is the discovery/listing tool; it does not search within a blog. Page with after_blog_id/per_page until pagination.has_more is false.

    Inputs

    after_blog_idinteger
    Keyset cursor into the AI Agent Access discovery index. Returns sites with blog_id strictly greater than this value. Use pagination.next_after_blog_id from the previous response when pagination.has_more is true; omit or pass 0 to start from the beginning.default 0
    keywordsarray
    Optional topic keywords to filter opted-in sites by. Matched against existing site metadata including title, description, site_vertical, site_intent, and vertical stickers.
    per_pageinteger
    Number of sticker-indexed site candidates to evaluate per page. Returned sites can be fewer because private, staging, test, coming-soon, and otherwise ineligible candidates are filtered out.default 25
    querystring
    Optional natural-language topic query for discovering opted-in sites, such as "food blogs", "education", or "newsletter". Matched against existing site metadata, not post content.
  • wordpressmcp_wpcom_mcp_jetpack_search_voiceReturns search results from a public, opted-in blog plus its Guidelines (site + additional) in a single call.Read-only

    Search Blog Voice (Jetpack Search)

    Returns search results from a public, opted-in blog plus its Guidelines (site + additional) in a single call. Use this only for reader-facing requests to answer from a public blog URL in that blog's voice, for example "Talk to this blog <blog_url>" or "Chat with this blog <blog_url>". Do not use this for private/internal content, WordPress.com site or account management, or owner/admin content operations. Use keyword-focused search queries, then compose answers in the blog author's voice with grounded citations.

    Inputs

    blog_urlstringrequired
    Full URL of the blog to search (e.g. https://example.wordpress.com/).
    querystringrequired
    Keyword-focused search query derived from the reader's question. Short, specific, noun-heavy queries work best because this is backed by Jetpack Search rather than semantic retrieval. Prefer place names, post topics, and distinctive terms over conversational filler. If a first call returns no search_results, retry once with a shorter keyword-only query.
    num_resultsinteger
    Max number of search results (default 5, max 20).default 5
  • wordpressmcp_describeExplains the inputs, effects, and results of one to five exact abilities discovered through search, such as creating a website, publishing a post, changing a theme, or inspecting site statistics.Write

    Describe

    Explains the inputs, effects, and results of one to five exact abilities discovered through search, such as creating a website, publishing a post, changing a theme, or inspecting site statistics. Returns each ability's complete description, input schema with required and optional fields, instructions, annotations, and approval requirements; declared output schemas are optional. Results follow request order and share one target site. Remote: contracts come from that site. This reads contracts without running the abilities. An unavailable name fails the entire request.

    Inputs

    namesarrayrequired
    One to five unique name values returned by search, including the full namespace, for example "wpcom-mcp/site-create-from-spec" or "wpcom/user-sites". These are ability names, not labels or search terms. Names beginning with "remote:" require the wpcom_site where they were discovered. All names in this request share that site context.
    include_output_schemaboolean
    Adds the declared output_schema for each ability, describing its result fields and types. False (the default) still includes the full input schema and approval requirements.default false
    wpcom_sitestring
    Existing target site: a site ID encoded as a string, a domain, or a full site URL. Site IDs and URLs are returned by wpcom/user-sites. Sets the site context for discovery or execution and is required for remote: abilities. Without a site, discovery covers only WordPress.com-defined abilities; account operations and creation of a new website need no existing site. Any site selector also present in the ability input must identify the same site.
  • wordpressmcp_docsProvides guides for selecting a site, getting started, connecting Jetpack, creating a website, creating or editing content, and updating account preferences.Write

    Docs

    Provides guides for selecting a site, getting started, connecting Jetpack, creating a website, creating or editing content, and updating account preferences. Empty arguments return topic IDs, titles and summaries. Selected topics return complete guides with tool usage notes, in request order. This curated workflow library does not list every available capability or search site content.

    Inputs

    topicsarray
    Guide IDs from the topic index. Omitting topics returns the index; an empty array is invalid.
  • wordpressmcp_executeRuns one discovered ability, from creating a new website or publishing content to changing site design, managing an account, or reading site data.Write

    Execute

    Runs one discovered ability, from creating a new website or publishing content to changing site design, managing an account, or reading site data. The exact name and input schema come from search with detailed=true or describe. WordPress.com abilities return their own result structure; remote: abilities return the site's result inside data. Permissions and site access are checked at execution. Explicitly read-only abilities run without approval. Other abilities require approval unless describe reports that the user's approval bypass applies: the user's answer in an MCP confirmation form when the client supports one, otherwise user_confirmed. A confirmation form is bound to the requested action, input, and target; declined or cancelled approval leaves the operation unexecuted.

    Inputs

    inputstringrequired
    JSON value matching the selected ability's input_schema. WordPress.com-defined abilities require an object, including {} when there are no input fields. For example, new-site creation accepts {"spec":{"title":"Harbor Oven"}}. Remote abilities may accept an object, array, scalar, or null as declared by their schema; an ability with no input takes null. Ability-specific fields belong here; summary and user_confirmed are separate outer properties.
    namestringrequired
    Exact name returned by search or describe, including its namespace, for example "wpcom-mcp/site-create-from-spec". A "remote:" prefix identifies an ability on the specified connected site. Display labels and legacy facade operation names are not accepted.
    summarystring
    Optional explanation of the intended action, named target, and consequence, shown in the confirmation form and included in the Approval required error, for example "Create a WordPress.com website titled Harbor Oven in Coming Soon mode." At most 500 characters of plain text on one line, without markup. This caller-provided text is not server-verified and does not itself authorize execution.
    user_confirmedboolean
    Set true only after the user accepted this exact change, either by asking for it exactly or by approving what you showed them, including any content you wrote for it.
    wpcom_sitestring
    Existing target site: a site ID encoded as a string, a domain, or a full site URL. Site IDs and URLs are returned by wpcom/user-sites. Sets the site context for discovery or execution and is required for remote: abilities. Without a site, discovery covers only WordPress.com-defined abilities; account operations and creation of a new website need no existing site. Any site selector also present in the ability input must identify the same site.