Skip to main content
Glama
mainwp

MainWP MCP Server

Official
by mainwp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAINWP_URLNoBase URL of your MainWP Dashboard
MAINWP_USERNoWordPress admin username
MAINWP_SAFE_MODENoBlock destructive operations. Default false.false
MAINWP_ALLOW_HTTPNoAllow HTTP URLs (credentials sent in plain text). Default false.false
MAINWP_MAX_RETRIESNoTotal retry attempts including initial request. Default 2.2
MAINWP_APP_PASSWORDNoWordPress Application Password
MAINWP_ALLOWED_TOOLSNoWhitelist of tools to expose (string, e.g., comma-separated).
MAINWP_BLOCKED_TOOLSNoBlacklist of tools to hide (string).
MAINWP_RETRY_ENABLEDNoEnable automatic retry for transient errors. Default true.true
MAINWP_RETRY_MAX_DELAYNoMaximum delay between retries in milliseconds. Default 2000.2000
MAINWP_SKIP_SSL_VERIFYNoSkip SSL verification (dev only). Default false.false
MAINWP_RETRY_BASE_DELAYNoBase delay between retries in milliseconds. Default 1000.1000
MAINWP_SCHEMA_VERBOSITYNostandard or compact. Default standard.standard
MAINWP_REQUIRE_USER_CONFIRMATIONNoRequire two-step confirmation for destructive operations. Default true.true

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
mainwp_get_setup_statusA

Report whether the MainWP MCP server is connected to a Dashboard yet, and return the setup instructions to show the user. Call this first when MainWP tools are missing. If the server has credentials but could not reach the Dashboard, this retries the connection.

mainwp_configureA

Connect this server to a MainWP Dashboard using credentials the user supplied in chat. Requires all three values at once. The credentials are verified against the Dashboard, then saved to ~/.config/mainwp-mcp/settings.json on this machine with owner-only permissions; the password is scrubbed from server logs and never echoed back. Only usable before the server is connected.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mainwp/mainwp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server