Security
PrestaShop MCP Server secures access to your store through an OAuth 2.0 authentication system and member management.
OAuth 2.0 Authentication
The module exclusively uses PrestaShop OAuth to authenticate users. This approach ensures that only valid PrestaShop accounts can access your MCP Server.
Authentication follows the OAuth 2.0 standard, a secure authorization protocol widely used in the industry.
How Authentication Works
Here's how the authentication process works when you connect an AI application to your store:
- You are redirected to the PrestaShop OAuth login page
- You authenticate with your PrestaShop credentials
- PrestaShop OAuth issues an access token with the following scopes:
mcp.discover: Discovery of available toolsmcp.read: Reading store datamcp.write: Modifying store dataemail: Access to your email for member verification
- With each request, the AI application sends this token in the
Authorizationheader - The MCP Server validates the token with PrestaShop OAuth and checks your email against the members list
- If the token is valid and the email is authorized, the request is processed
Each token is cryptographically signed and has a limited validity period. Expired tokens are automatically rejected.
Member Management
The Members page in the module configuration adds an additional security layer. Even with a valid PrestaShop account, you must be explicitly authorized in this list to access the MCP Server through an AI application.
By default, your PrestaShop account email address is automatically added during onboarding. You can then add or remove members as needed.
This dual verification (valid OAuth token + authorized email) ensures that only people of your choice can interact with your store through AI applications.
Why Only PrestaShop OAuth?
The module relies on PrestaShop OAuth because it is designed to integrate into the PrestaShop ecosystem:
- The
ps_accountsmodule handles authentication and token validation - OAuth scopes (
mcp.discover,mcp.read,mcp.write) are specific to the MCP Server - The email extracted from the OAuth token is used to verify authorizations in the members list
- The system integrates with other PrestaShop services (CloudSync, EventBus)
Using another OAuth provider would require recreating all this infrastructure and would lose integration with the existing PrestaShop ecosystem.
Recommendations
To maintain the security of your installation:
- Regularly review the members list and remove unnecessary access
- Use strong passwords for your PrestaShop accounts
- Keep the module and its dependencies, such as the
ps_accountsmodule, up to date to benefit from security fixes