MainWP MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAINWP_URL | No | Base URL of your MainWP Dashboard | |
| MAINWP_USER | No | WordPress admin username | |
| MAINWP_SAFE_MODE | No | Block destructive operations. Default false. | false |
| MAINWP_ALLOW_HTTP | No | Allow HTTP URLs (credentials sent in plain text). Default false. | false |
| MAINWP_MAX_RETRIES | No | Total retry attempts including initial request. Default 2. | 2 |
| MAINWP_APP_PASSWORD | No | WordPress Application Password | |
| MAINWP_ALLOWED_TOOLS | No | Whitelist of tools to expose (string, e.g., comma-separated). | |
| MAINWP_BLOCKED_TOOLS | No | Blacklist of tools to hide (string). | |
| MAINWP_RETRY_ENABLED | No | Enable automatic retry for transient errors. Default true. | true |
| MAINWP_RETRY_MAX_DELAY | No | Maximum delay between retries in milliseconds. Default 2000. | 2000 |
| MAINWP_SKIP_SSL_VERIFY | No | Skip SSL verification (dev only). Default false. | false |
| MAINWP_RETRY_BASE_DELAY | No | Base delay between retries in milliseconds. Default 1000. | 1000 |
| MAINWP_SCHEMA_VERBOSITY | No | standard or compact. Default standard. | standard |
| MAINWP_REQUIRE_USER_CONFIRMATION | No | Require 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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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