I wanted to hook up Claude Code to be able to interact with my local wordpress-develop core development environment via MCP (Model Context Protocol). I couldn’t find documentation specifically for doing this, so I’m sharing how I did it here.
Assuming you have set up the environment (with Docker) and started it via npm run env:start.
1. Install & Activate the MCP Adapter plugin
The MCP adapter is not currently available as a plugin to install from the plugin directory. You instead have to obtain it from GitHub and install it from the command line. I installed it as a plugin instead of as a Composer package:
cd src/wp-content/plugins
git clone https://github.com/WordPress/mcp-adapter
cd mcp-adapter
composer install
Next, activate the plugin. Naturally, you can also just activate the “MCP Adapter” plugin from the WP admin. You can also activate it via WP-CLI (but from the project root working directory, since you can’t run this command from inside of the mcp-adapter directory:
npm run env:cli -- plugin activate mcp-adapter
2. Register the MCP server with Claude
Here’s the command I used to register the wordpress-develop MCP server with Claude:
claude mcp add-json wordpress-develop --scope user '{"command":"npm", "args":["--prefix", "~/repos/wordpress-develop/", "run", "env:cli", "--", "mcp-adapter", "serve", "--server=mcp-adapter-default-server", "--user=admin"]}'
Here’s the JSON with formatting:
{
"command": "npm",
"args": [
"--prefix",
"~/repos/wordpress-develop/",
"run",
"env:cli",
"--",
"mcp-adapter",
"serve",
"--server=mcp-adapter-default-server",
"--user=admin"
]
}
You may want to remove --scope user if you just want to register the MCP server for the one project. I tend to re-use the same WP environment for multiple projects (core and plugins), so I think it may make it easier for me to install at the user level instead.
You will also need to change the --prefix arg’s ~/repos/wordpress-develop/ value to correspond to where the repo is actually cloned on your system. I include this arg here so that when I start claude inside of a plugin project (e.g. inside src/wp-content/plugins/performance), it is able to successfully run the npm command in the package.json in the ancestor directory. You can remove this --prefix arg if this is not relevant to you.
Change the user from admin according to your needs.
3. Expose all abilities to MCP
Registered abilities are not exposed to MCP by default. This is a safety measure so that AI agents have to be explicitly allowed to perform potentially sensitive actions. So without any plugins active other than the MCP Adapter, prompting Claude with “discover abilities” results in:
No abilities found. The MCP server connection may be unstable. Try reconnecting again with
/mcp.
However, since this is a local development environment, there is no concern about this (for me at least). To opt in all abilities to be exposed to MCP by default, you can use the following plugin code:
add_filter(
'wp_register_ability_args',
static function ( array $args ): array {
if ( wp_get_environment_type() === 'local' ) {
$args['meta']['mcp']['public'] = true;
}
return $args;
}
);
This is also available in a gist, to facilitate installation via Git Updater.
Note: This filter does not currently apply if your ability is registered by extending Abstract_Ability in the AI plugin.
At this point, I can now open Claude (or re-connect to the MCP server) and see that it is able to see all (er, most) abilities that are registered on my wordpress-develop env with the same prompt “discover abilities”:
3 WordPress abilities available:
core/get-environment-info — Returns runtime context (PHP, database, WordPress version) with the ability name.
core/get-site-info — Returns site information (all fields or filtered subset)
core/get-user-info — Returns current user profile details
When I prompt “what’s the environment info?” it executes the core/get-environment-info ability via MCP and prints out:
- Environment: local
- PHP Version: 8.3.26
- Database Server: 8.4.8 (MySQL)
- WordPress Version: 7.1-alpha-62161-src
Now the environment just needs more abilities! I’ve filed a Performance Lab issue for us at the Core Performance table to work on adding abilities during Contributor Day at WordCamp Asia tomorrow.
Where I’ve shared this:
The post Adding an MCP Server to the WordPress Core Development Environment appeared first on Weston Ruter.
Discover more from Complete Nursing Solution
Subscribe to get the latest posts sent to your email.
ProDentim is a modern oral-health supplement formulated with specialized probiotics and naturally sourced ingredients to help maintain firm teeth
ProDentim is a distinctive oral-care formula that pairs targeted probiotics with plant-based ingredients to encourage strong teeth, comfortable gums, and reliably fresh breath.
NerveCalm is a high-quality nutritional supplement crafted to promote nerve wellness, ease chronic discomfort, and boost everyday vitality.
AquaSculpt is a high-quality metabolic support supplement created to help the body utilize fat more efficiently while maintaining steady
GL Pro is a natural dietary supplement formulated to help maintain steady, healthy blood sugar levels while easing persistent sugar cravings.
PurDentix is a revolutionary oral health supplement designed to support strong teeth and healthy gums. It tackles a wide range of dental concerns, including gum inflammation and tooth decay
Backbiome is an advanced daily wellness supplement formulated to help support spinal comfort, reduce feelings of built-up tension, and promote freer, smoother movement throughout everyday life.
AquaSculpt is a high-quality metabolic support supplement created to help the body utilize fat more efficiently while maintaining steady
Boostaro is a modern mens wellness formula created to support daily vitality, stamina, and confidence through a practical, natural routine.
GL Pro is a natural dietary supplement formulated to help maintain steady, healthy blood sugar levels while easing persistent sugar cravings.
Backbiome is an advanced daily wellness supplement formulated to help support spinal comfort, reduce feelings of built-up tension, and promote freer, smoother movement throughout everyday life.
Alright, heard about pkrvipgames from a mate. Gave it a whirl and not bad at all! Games are decent enough, and the site’s pretty easy to get around. Could use a few more options, but I’m not complaining. Check it out for yourself! pkrvipgames
Needed to get on verabetlogin, and this site made it super easy. No messing about, straight to the point. Definitely a handy link to keep around if you’re a regular. Nice and simple. verabetlogin
30winbet anyone? Gave it a go, and it’s pretty standard stuff. If you’re looking for a new place to try your luck, it’s worth a punt. Just don’t go expecting miracles. More of the same. 30winbet
The CBD collection – [url=https://www.tillmanstranquils.com/products/relax-gummies ]cbd gummies calm[/url] offers a medley of formats that make appropriate different preferences, and each a certain feels grandly executed. The lubricant appears blameless and accordance, the packaging materials bear heavy-duty, and the connivance is simple besides elegant. The products are foolproof to store and treks with, thanks to sheltered lids and thick sizing. Entire, the label delivers a outstanding and carefully crafted sample without surplus extras.
The CBD amassment – https://www.tillmanstranquils.com/products/indica-gummies offers a assortment of formats that make appropriate singular preferences, and each a certain feels intimately executed. The lubricate appears clean and in conformance, the packaging materials feel durable, and the design is lucid besides elegant. The products are comfortable to assemble and travel with, thanks to obvious lids and thick sizing. Overall, the brand delivers a impeccable and carefully crafted feel without unnecessary extras.
The scent of this terpene blend – [url=https://terpenewarehouse.com/collections/botanical-terpenes ]botanical terpenes for sale[/url] is at bottom sanitary and natural, not too heady but still noticeable in the most way. It blends smoothly and adds a much bettor flavor study without compelling the entirety else. Even a slight amount makes a balance, which says a plight fro the quality. The packaging was solid, shipping was connected, and the mainly adventure felt reliable. Really decent product and one I’d happily uncalled-for again.
I’ve been exploring https://terpenewarehouse.com/collections/pinene-terpene recently, and I’m remarkably enjoying the experience. The scents are with, customary, and pleasant. They enlarge a outgoing caress to my constantly programmed, helping fasten on the feeling ready and atmosphere. A brobdingnagian find after anyone who appreciates pungent wellness tools.
The CBD amassment – [url=https://www.tillmanstranquils.com/products/relief-gummies ]cbd pain relief gummies[/url] offers a medley of formats that make appropriate exceptional preferences, and each undivided feels intimately executed. The lubricate appears unsoiled and consistent, the packaging materials feel long-lasting, and the design is unostentatious until now elegant. The products are easy to store and treks with, thanks to secure lids and compact sizing. Entire, the maker delivers a proficient and carefully crafted feel without dispensable extras.
References:
Legiano Casino sicher https://ocprof.ru/action.redirect/url/aHR0cHM6Ly9nZXRzaG9ydC5pbi9tb2hhbWVkNTlrOTg1MA
References:
Legiano Casino Zahlungsmethoden http://oluchi.yn.lt/load_file/index?url=vnn.bio/bellminnic
References:
Legiano Casino Zahlungsmethoden http://aktsh.ru/go.php?url=https://itapipo.ca/audreaison7102
References:
Legiano Casino Echtgeld https://plitkat.ru
References:
Legiano Casinio http://clients1.google.co.za/url?q=https://totalfreewebcams.chaturbate.com/external_link/?url=https://de.trustpilot.com/review/beyondjewellery.dehttp://clients1.google.co.za/url?q=https://totalfreewebcams.chaturbate.com/external_link/?url=https://de.trustpilot.com/review/beyondjewellery.de</a
References:
Legiano Casino Android http://nou-rau.uem.br/
References:
Legiano Casino Spielen https://moskraeved.ru/
References:
KingMaker Casino App Download Bonus https://s.nas.vn/lashondanichol
References:
Kingmaker casino mastercard einzahlen https://wsurl.link/byjmmy
References:
KingMaker Casino Einzahlung mit Klarna bion.ly
References:
Kingmaker casino apple pay einzahlung https://nfccardmaker.com/deneseflanery
References:
Kingmaker casino apple pay einzahlung maps.google.tl
References:
KingMaker skrill einzahlung clients1.google.com.gt
References:
KingMaker Casino schnelle Auszahlung http://www.google.com/url?q=https://de.trustpilot.com/review/beyondjewellery.de
References:
KingMaker einzahlung bonus code http://www.google.sm/url?sa=t&url=https://de.trustpilot.com/review/beyondjewellery.de
References:
KingMaker bonus code aktuell cse.google.rs
References:
KingMaker Casino Einzahlung mit Skrill http://cse.google.sh
References:
Kingmaker Casino Gutschein http://www.google.com.gt/url?q=https://mylinkbox.me/christenw9
References:
Kingmaker Casino Treueprogramm google.co.ug
References:
KingMaker Casino Einzahlung Freispiele http://clients1.google.com.sg/url?q=https://readeach.com/tommiebermingh
References:
KingMaker Casino Einzahlung und Bonus https://kaworu.jpn.org/vim/api.php?action=https://short.turtle.onl/tyrell33p8123
References:
KingMaker Casino VIP Bonus http://clients1.google.ht
References:
Ligiano Casino http://maps.google.com.sl
References:
KingMaker einzahlungsmethoden image.google.gm
References:
Kingmaker Casino Login Deutschland http://clients1.google.com.sv/
References:
Legiano Casino Tischspiele http://www.google.bj/url?q=https://telegra.ph/Legiano-Erfahrungen-2026-Test–Bewertung-06-07
References:
Legiano Casino Kontakt wartank.ru
References:
KingMaker Casino 20 Euro Bonus https://uz.goodinternet.org/uz/external-link/?next=https://vnn.bio/carmelotal
References:
Legiano Casino Bonus https://m.en.acmedelavie.com/
References:
Legiano Casino Cashback http://forum.xnxx.com/proxy.php?link=https://telegra.ph/Riesige-Bonus–sofortige-Auszahlungen-06-07
References:
KingMaker Casino 20 Euro Einzahlung images.google.com.nf
References:
KingMaker Casino Einzahlung mit Paysafecard https://www.flashback.org/
References:
Kingmaker casino sofortüberweisung einzahlung https://m.en.acmedelavie.com/member/login.html?returnUrl=https://short.turtle.onl/odellharriet02
References:
KingMaker Casino Treuebonus yandex.com.am
References:
Legiano Casino Auszahlungslimit https://forum.corvusbelli.com/proxy.php?link=https://telegra.ph/Legiano-Casino-2025-Ehrliche-Bewertung–Erfahrungen-06-07
References:
Kingmaker casino jetzt einzahlen http://maps.google.td/
References:
Legiano Casino Bonusbedingungen https://www.spbtalk.ru
References:
Hitnspin casino registrierung http://dreamwar.ru/
References:
Monro Casino Auszahlung kaptur.su
References:
Hitnspin casino anmeldung lj.rossia.org
References:
Hit’n’spin casino 25 euro bonus ohne einzahlung http://cse.google.mk/url?q=https://board-en.farmerama.com/proxy.php?link=https://de.trustpilot.com/review/der-wikinger-shop.de
References:
Monro Casino Blackjack https://smolbattle.ru/proxy.php?link=https://moonlinky.com/julianabes
References:
Hitnspin casino anmeldung maps.google.at
References:
Hitnspin casino bonus ohne einzahlung http://www.nashi-progulki.ru/bitrix/redirect.php?event1=&event2=&event3=&goto=https://wordpress.com/abuse/?report_url=https://de.trustpilot.com/review/der-wikinger-shop.de
References:
Hitnspin casino login https://www.hongcase.com
References:
Hitnspin casino bonus ohne einzahlung https://kalendar.vse.cz/event/show?date=4145&backlinkUrl=https://www.holycrossconvent.edu.na/profile/kastrupvwnwatson22605/profile
References:
Hitnspin casino ähnliche casinos http://mimi28.ahlamontada.com
References:
Hit’n’spin casino login https://faktor-info.ru/
References:
Hitnspin casino bonus code forexsklad.org
References:
Hit’n’spin casino no deposit bonus https://structurizr.com/help/theme?url=https://ancientroman.space/wiki/HitnSpin_Casino_Erfahrung_2026_800_Bonus_App_Spiele
References:
Hit and spin casino cocoleech.com
References:
Hit n spin bewertung http://ville.montreal.qc.ca/
References:
Hitnspin casino paysafecard http://www.spbtalk.ru/proxy.php?link=https://mylinkbox.me/olivependl
References:
Hitnspin casino bonuscode technoplus.ru
References:
Hitnspin casino test https://shatunamur.ru/proxy.php?link=https://briefjournal.space/item/zugang-zu-dieser-website-ist-eingeschr-nkt
References:
Hitnspin casino download board-hu.darkorbit.com
References:
Lollybet Casino Mindesteinzahlung http://maps.google.com.ec/url?q=https://book.douban.com/link2/?url=https://lollybet.com.de/
References:
Lollybet Casino 10 Euro Bonus maps.google.com.gi
References:
Lollybet Casino Bonusbedingungen http://cm-eu.wargaming.net
References:
Lollybet Spiele masteram.us
References:
Lollybet Casino Login http://maps.google.ae
References:
Lollybet Casino No Deposit https://digitalcollections.clemson.edu/single-item-view/?oid=CUIR:C49BD8260405677C379520F16590734F&b=http://bios-fix.com/proxy.php?link=https://lollybet.com.de/
References:
Hitnspin casino mit echtgeld clients1.google.lt
References:
Hitnspin casino einzahlung http://arduino-tex.ru/
References:
Hitnspin casino anmeldung http://cse.google.cg/
References:
Hitnspin casino auszahlungsdauer http://image.google.gm/
References:
Hitnspin casino test http://community.robo3d.com/proxy.php?link=https://www.giveawayoftheday.com/forums/profile/1947218
References:
Pokies net australia payid withdrawal https://isugar-dating.com/@micaelarollest
References:
Payid pokies aus jobzalert.pk
References:
Lollybet Registrierung portal.novo-sibirsk.ru
References:
Lollybet Casino Bonusbedingungen ogilvyspirits.com
References:
Kansas casinos https://etalent.zezobusiness.com/profile/bartgrillo8149
References:
Dakota dunes casino https://cleveran.com/profile/nydiazimmerman
References:
Video slots theskysupply.com
References:
Genting casino malaysia https://i-medconsults.com/companies/instant-casino-bewertung-instant-casino-2026/
References:
888 casino login remotejobs.website
References:
Hollywood casinos https://body-positivity.org/groups/online-casino-sofortuberweisung-instante-zahlungsmethode/
References:
Slotland no deposit bonus codes https://jobs.assist24-7.com/employer/schnell-starten-sofort-spielen/
References:
Bet365 mobile casino ophot.net
References:
The d casino las vegas https://phantom.everburninglight.org/archbbs/viewtopic.php?id=688272
References:
Lollybet Casino Seriös http://images.google.co.ve/url?sa=t&url=http%3A%2F%2Fa2znaukri.com%2Femployer%2Flollybet-casino-bonus-30-freispiele-ohne-einzahlung-bonus-ohne-einzahlung-2026%2F
References:
Lollybet Casino Bonusbedingungen https://wiki.wargaming.net/api.php?action=https://healthjobslounge.com/employer/deine-online-spielothek/
References:
Lollybet Casino Aktion https://fishing-ua.com/proxy.php?link=https://glofcee.com/employer/beste-paypal-casinos-in-deutschland-2026/
References:
Lollybet Casino Roulette http://images.google.com.ng/url?sa=t&url=http%3A%2F%2Fwww.kfz-eske.de%2F1-000-bonus-slots-schnelle-auszahlung
References:
Lollybet Casino Auszahlung http://wiki.s-classclinic.com/api.php?action=https://fresh-jobs.in/employer/deine-online-spielothek/
References:
Lollybet Casino Login https://yandex.ru/safety/?url=staging.marine-zone.com%2Femployer%2Fbeste-echtgeld-casinos-2026-online-echtes-geld-gewinnen%2F
References:
Lollybet Bonus http://xn--e1aaqjt5d.xn--p1ai/redirect?url=https://jandlfabricating.com/employer/lollybet-spielothek-slots-live-casino/
References:
Lollybet Login http://www.google.by/url?sa=t&source=web&rct=j&url=https://cyprusjobs.com.cy/companies/2-gb-internet-flat-daten-paket-s/
References:
Lollybet Casino Bonus https://tiwar.net/?channelId=946&extra=520&partnerUrl=vmcworks.com/employer/kontakt