wp_terms

MCP tool from Wp Db MCP by s3rgiosan

> wptermmeta (via termid)

How to use it

wp_terms is exposed by the Wp Db MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the wp_terms tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Wp Db MCP

$uvx --from wp-db-mcp wp-db-mcp
FULL WP DB MCP LISTING

Other tools in Wp Db MCP (21)

numeric_meta_ratio

fraction of all terms in that taxonomy that carry a numeric value for

post_id_resolution_ratio

of the numeric-valued terms, the fraction whose value actually

wp_describe_table

Show columns, types, keys, and indexes for a specific table. Accepts full name or core suffix (e.g. posts instead of wpposts). users, usermeta, and multisite's network tables (blogs, site, sitemeta, signups, registrationlog) always resolve against the base prefix, regardless of siteid.

wp_get_connected_posts

Get posts connected to a post via the posttopost table. Supports filtering by relationship

wp_get_meta

Get all meta key-value pairs for a post, user, or comment. Takes objecttype

wp_get_post_terms

Get all terms for a post, traversing the full relationship chain. Filter by taxonomy.

wp_get_relationships

Map how WordPress tables relate to each other:

wp_get_schema

Generate a complete database schema with all columns, indexes, and detected relationships. Outputs JSON or CSV. Toggle includeplugins to include non-core tables. Uses optimized batch queries. users/usermeta and network tables are included at the base prefix on every site.

wp_get_shadow_relations

Traverse a shadow taxonomy relationship in either direction, via entitytype

wp_get_term_posts

Get all posts for a term. Same default posttype/poststatus exclusions as wpsearchposts

wp_get_user_connections

Query the posttouser relationship table in either lookup direction, via entitytype

wp_list_connected_posts

List all post connections for a given relationship name. Returns all connection pairs with both posts' details (ID, title, type) and the relationship order.

wp_list_connection_names

Discover all relationship names registered in WP Content Connect. Queries both posttopost and posttouser tables to list distinct relationship names with their connection counts. Useful for exploring what relationships exist before querying specific connections.

wp_list_shadow_posts

List all posts using a shadow taxonomy relationship. Returns all posts assigned to shadow terms, with term info (ID, name) and source post details (ID, title, type).

wp_list_shadow_taxonomies

Discover candidate shadow taxonomies — this is heuristic, not verified. It finds

wp_list_tables

List all tables with engine, row count, and size. Supports multisite siteid filter.

wp_list_taxonomies

List all taxonomies registered in the database with term counts and total usage.

wp_posts

> wppostmeta (via postid)

wp_query

Execute raw SQL queries validated by validateselectonly() (a guardrail, not a security

wp_search_posts

Search posts by title or content using LIKE matching. Defaults exclude posttype IN

wp_users

> wpusermeta (via userid)