You created an application password, added it to your AI tool or MCP client, and WordPress still answers:
{"code":"rest_not_logged_in","message":"You are not currently logged in."}
This error means no valid credentials reached WordPress. That is different from a wrong password, which returns incorrect_password. Check these causes in order.
1. The username is empty or wrong
Application passwords belong to a user. If the username field in your MCP configuration or secret form is empty, the request goes out without proper Basic authentication and WordPress treats you as logged out. Fill in the exact WordPress username, not the display name.
2. The server strips the Authorization header
Some Apache and FastCGI setups never pass the Authorization header on to PHP, so WordPress never sees your credentials. The fix is a one-line server rule that forwards the header to PHP. It goes in your site’s server configuration file, above the WordPress rules. Ask your host to add it, or look up “pass Authorization header to PHP” for your server type: Apache with PHP-FPM and LiteSpeed each have their own version.
3. A security plugin or firewall is blocking you
Security plugins and host firewalls often block the REST API for unknown clients, or lock out an address after several failed attempts. While you are blocked, every request returns rest_not_logged_in, even with correct details. Stop retrying, because each retry can extend the block. Clear the lockout and allowlist your AI tool’s IP address for /wp-json/. More in why your AI assistant gets locked out.
4. Application passwords are disabled
A plugin or a line of code can switch application passwords off. Check that Users > Profile still shows the Application Passwords section, and that the site uses HTTPS.
5. The password was revoked or has spaces removed incorrectly
WordPress shows the password in groups with spaces. Most clients accept it with or without the spaces, but copy it exactly once. If you revoked and recreated it, update every client.
A quick test
Request /wp-json/wp/v2/users/me with your username and application password. A JSON answer with your user ID means authentication works. rest_not_logged_in means the credentials never arrived, so work through the list above.
Setting up from scratch? Read application passwords for AI agents.

