Logo de Shim MCP

Shim MCP

Communauté
justadityaraj

WordPress MCP server plugin, live on WordPress.org. Connect Claude Code, Cursor, or any MCP client to WordPress over stdio (WP-CLI) or HTTP. 56 abilities, self-contained, no cloud.

Éditeurjustadityaraj
Dépôtshim-mcp
LanguePHP
Forks
2
Étoiles
43
Outils disponibles
0
Type de transportstdio
LicenceGPL-2.0
Liens
  • Connectez des outils à vos workflows IA

    Shim MCP propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    43 étoiles et 2 forks sur le dépôt associé.

Shim MCP — WordPress MCP Server for Claude Code, Cursor, and any MCP client

PHP >= 8.0 WordPress >= 6.9 License GPL-2.0-or-later WordPress Plugin Version CodeRabbit Pull Request Reviews

A self-contained Model Context Protocol (MCP) server for WordPress, built for developers. Install one plugin and your WordPress site becomes an MCP server that Claude Code, Claude Desktop, Cursor, Windsurf, Cline, or any MCP-compatible AI client can drive — 57 abilities across posts, pages, media, users, plugins, menus, widgets, comments, options and system management.

No companion plugins. No cloud relay. No account anywhere. Your site talks to your AI client and nothing sits in between.

Who this is for

Developers who live in a terminal or an editor.

If you run wp commands, keep VS Code open all day, and want Claude Code or Cursor to work on a local WordPress install the same way it works on the rest of your codebase — that's the case this was built for. It works fine as a remote server for a production site too, but the local-first path is the one that got the attention.

Two ways to connect

1. Local, over stdio (WP-CLI) — the reason this plugin exists.

bash
wp shim-mcp serve --user=admin

That runs the MCP server as a plain stdio process: JSON-RPC in on STDIN, responses out on STDOUT. No HTTP, no ports, no tunnel, no application password, no OAuth dance. Point Claude Code or Cursor at that command and it connects the way any other local MCP server does.

Some WordPress MCP plugins go further and let the AI run WP-CLI commands on your server through an authenticated HTTP connection. Shim never runs WP-CLI commands for the AI.

Shim uses WP-CLI only to start the MCP server itself, the same way the official MCP Adapter's wp mcp-adapter serve does. The server runs as a local process on your machine and speaks MCP over a pipe. There is no HTTP request, no token to issue or revoke, and nothing listening on a port. For a site you have checked out locally, that removes the entire authentication surface rather than securing it.

2. Remote, over HTTP — for sites you aren't sitting in front of.

Generate an application password from Tools → Shim MCP, copy the config snippet, done. Streamable HTTP transport, MCP spec-compliant, capability-checked on every call.

Why "Shim"

In systems programming, a shim is a thin layer that sits between two interfaces so they can work together without either side changing.

That is exactly what this is. WordPress speaks the Abilities API. AI clients speak MCP. Shim translates between the two and does nothing else.

The name is a promise about scope. It is not an AI product. It does not bundle a chatbot, a content generator, a credits system, or a dashboard that wants to become your workflow. It does not phone home. It is the adapter, not the appliance — and when WordPress core ships the Abilities API natively, the plugin gets smaller, not bigger.

What makes it different

  • Local use needs no password and no port. wp shim-mcp serve runs the MCP server over stdio through WP-CLI, with no HTTP layer and no token, and Shim never runs WP-CLI commands on the AI's behalf.
  • Genuinely self-contained. The MCP server and all 57 abilities ship in one plugin. No companion plugin, no framework, no service to sign up for.
  • Abilities API native. Every ability is registered through WordPress's own wp_register_ability(). Nothing lives in a private tool registry, so abilities registered by other plugins are exposed too, automatically, with no adapter code.
  • Per-object permission checks, not just blanket ones. Every ability declares a capability, and every ability that touches a specific object re-checks the per-object capability (edit_post, delete_post, read_post, edit_user, delete_user, edit_comment) against that object before reading or mutating it. A contributor's client cannot edit an editor's post. Holding edit_posts is not treated as permission to edit any post.
  • 57 abilities, deliberately. This is not a race to the largest tool count. Every ability is documented with its required capability in the abilities reference.
  • Nothing leaves your server. No proxy, no relay, no telemetry, no vendor account.
  • The one dangerous ability is off by default. Rewriting wp-config.php stays disabled unless you opt in explicitly with define( 'SHIM_MCP_ALLOW_CONFIG_WRITES', true );.

Quick start

Local development (stdio)

bash
git clone https://github.com/justadityaraj/shim-mcp.git wp-content/plugins/shim-mcp
wp plugin activate shim-mcp
wp shim-mcp serve --user=admin

Then register it with your client. For Claude Code on macOS or Linux:

bash
claude mcp add shim-mcp -- wp shim-mcp serve --user=admin --path=/path/to/wordpress

Windows, Claude Desktop and Cursor need a slightly different command; the local setup guide has a tested configuration for each, plus a one-line check that the server answers before you connect a client.

Remote site (HTTP)

  1. Install the plugin — search for Shim MCP under Plugins → Add New, or download it from the WordPress.org listing.
  2. Go to Tools → Shim MCP and click Generate to create an application password.
  3. Copy the config snippet shown on the dashboard into your AI client's config.

Ready-made snippets for Claude Code, Claude Desktop and Cursor are on the dashboard.

Available commands

bash
wp shim-mcp serve [--server=<server-id>] [--user=<id|login|email>]   # run the MCP server over stdio
wp shim-mcp list  [--format=<format>]                                # list registered MCP servers

Features

  • 57 WordPress abilities across content, media, users, plugins, menus, widgets, comments, options and system management
  • Plugin abilities cover listing, activating, deactivating and deleting installed plugins, and installing from the WordPress.org directory by slug; installing from a URL or an uploaded archive is deliberately out of scope
  • MCP protocol 2024-11-05, 2025-03-26 and 2025-06-18 with automatic version negotiation
  • Two transports: stdio over WP-CLI, and Streamable HTTP
  • Admin dashboard with application password generation and revocation
  • Config export for Claude Code, Claude Desktop and Cursor
  • Detects other MCP server plugins and warns when two would compete

Requirements

  • WordPress 6.9 or higher (for the Abilities API, which core ships from 6.9)
  • PHP 8.0 or higher
  • WP-CLI, for the stdio transport only

Documentation

Status

Approved and live on the WordPress.org Plugin Directory. Install it directly from Plugins → Add New in wp-admin, or download the zip from the releases page here.

It is feature-complete and the abilities are documented, but it has not yet run across a broad range of hosting environments. Issues and reports are welcome.

Verification

Every push and pull request runs the smoke tests in GitHub Actions on WordPress 6.9 with PHP 8.0, the latest WordPress with PHP 8.5, and a multisite network. They install the release zip on a fresh site and drive it over stdio and Streamable HTTP: all 57 abilities registering through core's native Abilities API, permission checks, session handling, protocol errors, and stored data coming back unchanged. See Running the tests.

CheckResult
WordPress Plugin Check (all categories, including experimental and low-severity checks)0 errors, 0 warnings
PHP_CodeSniffer, WordPress-Extra0 violations
PHPStan level 5 with WordPress stubs0 issues
php -l, all filespass
PHPCompatibility, PHP 8.0 to 8.50 issues

Plugin Check is an automated scan of the directory's coding requirements. Passing it says the code meets those standards; it is not a review outcome and implies no endorsement by WordPress.org.

Development version

Stable releases come from main and are what the WordPress.org listing serves. Work in progress lives on dev.

If you want to try unreleased changes, take the newest pre-release from the releases page — those are built the same way as stable releases and install normally through Plugins → Add New → Upload Plugin.

To track dev directly instead:

bash
git clone -b dev https://github.com/justadityaraj/shim-mcp.git wp-content/plugins/shim-mcp

Clone into a directory named exactly shim-mcp. GitHub's "Download ZIP" button produces a shim-mcp-dev folder, which WordPress treats as a second, separate plugin.

Pre-release builds are unreleased by definition: they have not been through the release checks, and they are not on WordPress.org. Do not run them on a production site.

Running the tests

The smoke tests build the release zip, install it on a disposable WordPress site that runs on SQLite, and talk to the plugin over MCP. They need PHP 8.0+ with the pdo_sqlite and zip extensions, and network access for the first run. No database server or Docker is needed.

bash
composer install          # PHPCS, PHPStan and the WordPress stubs
composer lint             # PHP_CodeSniffer
composer analyse          # PHPStan
composer test:setup       # build the zip and create the test site
composer test             # run every suite against that site

php tests/run.php stdio runs only the suites whose name contains stdio. Set WP_VERSION before test:setup to test another WordPress release, WP_MULTISITE=1 to install a multisite network, and SHIM_TEST_ROOT to move the test site out of the system temp directory. The zip is built from git ls-files, so add a new file to git before rebuilding. GitHub Actions runs the same commands on every push and pull request, on the minimum supported pair (WordPress 6.9, PHP 8.0), on the latest WordPress with PHP 8.5, and on a latest-WordPress multisite network.

Maintainer

Built and maintained by Aditya Raj Singh at BNCW Enterprises.

Credits

Shim MCP builds on other people's GPL work. Its first version was built by an autonomous fleet of coding agents that took a good part of their code from Daniel Agrici's WP MCP Ultimate (GPL-2.0-or-later): the plugin bootstrap, the admin dashboard, the WP-CLI command and the layout of the ability classes. Everything under includes/Server/ is derived from the WordPress MCP Adapter (GPL-2.0), and the abilities are registered through WordPress's own Abilities API, which core ships from 6.9. Most of the ability code, the tests and the 1.1.0 changes were written for this plugin. See CREDITS.md for the full breakdown.

License

GPL-2.0-or-later. See LICENSE for the full text.

Utilisez le serveur MCP Shim MCP avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois Shim MCP connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez Shim MCP en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP Shim MCP.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "shim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de Shim MCP, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de Shim MCP.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser Shim MCP pour m’aider dans cette tâche ?
Shim MCP
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec Shim MCP.

Foire aux questions

À quoi sert le serveur MCP Shim MCP ?

Shim MCP est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP Shim MCP avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser Shim MCP avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP Shim MCP avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois Shim MCP connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP Shim MCP à TypingMind ?

Shim MCP fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP Shim MCP propose-t-il dans TypingMind ?

Shim MCP propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP Shim MCP ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si Shim MCP nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇