Plug the PrestaShop developer documentation into your AI assistant
The new DevDocs MCP server lets your AI tools read the official PrestaShop 9 documentation instead of guessing.
You ask your AI assistant which hook to use to push new orders to a CRM. The answer comes back quickly and confidently, with a code sample that would have worked fine on PrestaShop 1.7. On PrestaShop 9, running on Symfony 6.4 and PHP 8.1+, part of it is outdated and part of it is simply made up. The assistant did not lie on purpose: it answered from memory, and its memory is a blend of a decade of tutorials, forum threads, and documentation for versions that are no longer supported.

Today, we are making it much easier for your AI tools to get it right. The PrestaShop developer documentation now has its own MCP server, available at https://devdocs-mcp.prestashop.com/mcp. Add it to your AI assistant once, and from then on it can search and read the official PrestaShop 9 documentation by itself, instead of guessing.
What is MCP?
MCP stands for Model Context Protocol, an open standard that defines how AI applications connect to external tools and data sources. A good way to think about it is a USB port for AI assistants: a tool or a data source that speaks MCP once can be plugged into every assistant that supports the protocol, without a custom integration for each of them.
In practice, an MCP server exposes a small set of tools, each with a name, a description, and typed parameters. When you ask your assistant a question, it sees that these tools exist, decides on its own when calling one would help, and reads the result before answering. You do not need to learn any new commands: you keep asking questions in plain language, and the assistant does the lookups.
MCP is supported today by most of the tools PrestaShop developers already use, including Claude Code, Claude Desktop, Cursor, VS Code with GitHub Copilot, OpenAI Codex, Gemini CLI, Windsurf, and many others.
Why the documentation needs one
Large language models learn from a snapshot of the public web. For PrestaShop, that snapshot is twenty years deep, and most of it describes older versions. PrestaShop 9 changed a lot under the hood (Symfony 6.4, PHP 8.1+, the Admin API, the new Back Office pages, Hummingbird, and much more), and the documentation keeps evolving every week as the team and the community document new features. No model trained months ago can know about a page that was merged last Tuesday.
An MCP server closes that gap in a very simple way. Instead of relying on what the model remembers, the assistant fetches the current page from the official documentation and grounds its answer in it. That brings a few concrete benefits:
- Answers based on PrestaShop 9, not on whatever version happened to be most popular in the training data.
- Answers you can verify. Every result comes with the URL of the page it was read from, so you can open it and check.
- No delay. The server reads the live documentation, so new and updated pages are available to your assistant as soon as they are published.
- Fewer hallucinated APIs. When the documentation does not cover something, the server says so explicitly, and the assistant is told to treat approximate matches as leads to verify rather than facts.
- Your tool, your choice. MCP is an open standard, so the same server works with every compatible tool. We are not asking anyone to switch editors or AI providers.
What the server can do
The server is intentionally small. It exposes three read-only tools:
| Tool | What it does |
|---|---|
search_docs |
Keyword search across the PrestaShop 9 developer documentation, using the same search index as the devdocs website. Returns matching pages, the heading path of each match, and the doc path to read next. It can be restricted to one section (modules, themes, webservice, admin-api, and so on). |
get_doc |
Returns the full Markdown source of a documentation page, from a doc path or a full devdocs URL. Long pages can be read in chunks. |
list_sections |
Lists the top-level sections of the documentation, or every page inside one section. Useful to get an overview, or to go through a topic exhaustively. |
The whole PrestaShop 9 documentation is covered: basics, core development reference, testing, modules, themes, the Webservice API, the Admin API, contribution guides, and the FAQ. That is close to 1,200 pages at the time of writing.
It is free, read-only, and requires no authentication. There is no API key to create and no account to sign up for. The server does not store anything: it only reads the documentation that is already public on devdocs.prestashop-project.org.
How to connect it
The server uses the Streamable HTTP transport. Its address is:
https://devdocs-mcp.prestashop.com/mcp
Below are the setups for the most popular tools. If yours is not listed, look for “MCP” or “remote MCP server” in its documentation: any client that supports Streamable HTTP will work with the URL above.
Claude Code
Run this once in your terminal:
claude mcp add --transport http prestashop-devdocs https://devdocs-mcp.prestashop.com/mcp
Add --scope user to make it available in all your projects, or --scope project to share it with your team through a .mcp.json file committed in your repository.
Claude Desktop and claude.ai
Open Settings › Connectors, click Add custom connector, name it PrestaShop DevDocs, and paste the server URL.
Cursor
Add the server to ~/.cursor/mcp.json (for all projects) or .cursor/mcp.json (for one project):
{
"mcpServers": {
"prestashop-devdocs": {
"url": "https://devdocs-mcp.prestashop.com/mcp"
}
}
}
VS Code (GitHub Copilot)
Create a .vscode/mcp.json file in your workspace:
{
"servers": {
"prestashop-devdocs": {
"type": "http",
"url": "https://devdocs-mcp.prestashop.com/mcp"
}
}
}
OpenAI Codex
Add the server to ~/.codex/config.toml:
[mcp_servers.prestashop-devdocs]
url = "https://devdocs-mcp.prestashop.com/mcp"
Using it for a module or a theme project?
If you work on a PrestaShop module or theme with a team, commit the project-level configuration (.mcp.json, .cursor/mcp.json, or .vscode/mcp.json) to your repository. Everyone who opens the project gets the documentation server automatically, with no setup step to remember.
See it in action
Let’s go back to the question from the beginning of this article. With the server connected, you can ask your assistant:
I’m writing a PrestaShop 9 module that sends every new order to our CRM. Which hook should I use, and what parameters will I receive?
The assistant starts by searching the documentation. Here is the actual response of search_docs for actionValidateOrder:
3 page(s) matching "actionValidateOrder" in the PrestaShop 9 developer documentation:
1. /9/modules/concepts/hooks/list-of-hooks/actionvalidateorderbefore/
url: https://devdocs.prestashop-project.org/9/modules/concepts/hooks/list-of-hooks/actionvalidateorderbefore/
• Hook actionValidateOrderBefore › Informations
• Hook actionValidateOrderBefore › Located in
• Hook actionValidateOrderBefore › Call of the Hook in the origin file
2. /9/modules/concepts/hooks/list-of-hooks/actionvalidateorderafter/
url: https://devdocs.prestashop-project.org/9/modules/concepts/hooks/list-of-hooks/actionvalidateorderafter/
• Hook actionValidateOrderAfter › Informations
• Hook actionValidateOrderAfter › Located in
• Hook actionValidateOrderAfter › Parameters details
3. /9/modules/concepts/hooks/list-of-hooks/actionvalidateorder/
url: https://devdocs.prestashop-project.org/9/modules/concepts/hooks/list-of-hooks/actionvalidateorder/
• Hook actionValidateOrder › Informations
• Hook actionValidateOrder › Located in
• Hook actionValidateOrder › Parameters details
Call `get_doc` with one of the paths above to read the full page.
It then calls get_doc on the most relevant page and reads it in full, including the parameters the hook receives:
array(
'cart' => (object) Cart,
'order' => (object) Order,
'customer' => (object) Customer,
'currency' => (object) Currency,
'orderStatus' => (object) OrderState
);
From there, the answer you get is built on the real page: actionValidateOrder is the right hook, here is what $params contains, here is how to register it in your install() method, and here is the link to the documentation if you want to check. It can also point out that actionValidateOrderBefore and actionValidateOrderAfter exist, in case your integration needs to act earlier or later in the process.
A few more prompts worth trying once the server is connected:
- “How do I add a column to the customers grid from a module in PrestaShop 9?”
- “Explain how authentication works in the Admin API, and show me how to get an access token.”
- “What changed for admin controllers in modules with PrestaShop 9 and Symfony 6.4?”
- “List every page about Hummingbird in the developer documentation and summarize the JavaScript conventions.”
- “I’m upgrading my module from PrestaShop 8 to 9. What should I check?”
Getting the best results
Most assistants call MCP tools automatically when a question looks relevant. If yours answers from memory anyway, nudge it with something like “check the PrestaShop docs”, or ask it to cite the pages it used.
Keep in mind that search_docs matches keywords, not meaning. Precise terms such as a hook name (actionValidateOrder), a class name (GridDefinitionFactory), or a feature name (Admin API) give the best results. Assistants usually turn your question into these terms on their own, then read the full pages with get_doc. If the results look off, mentioning the exact hook, class, or component you are interested in helps a lot. You can also add a line such as “Use the prestashop-devdocs MCP server for any PrestaShop question” to your project instructions file (CLAUDE.md, AGENTS.md, .cursorrules, and so on).
Not using MCP? The docs are AI-friendly anyway
The MCP server sits on top of a few things the documentation site now publishes, and you can use them directly:
/llms.txtis an index of the whole PrestaShop 9 documentation following the llms.txt convention. Paste it into a chat, or point a tool that supports it to this file.- Every documentation page is also available as raw Markdown: add
index.mdto the end of a page URL. For example, /9/modules/concepts/hooks/index.md. This is handy when you want to paste a specific page into a conversation without the navigation and layout around it.
The server itself is open source and lives in the mcp-server/ directory of the devdocs-site repository. It is a small stateless service that reads these files and uses the same search index as the documentation website, which is why documentation updates reach your assistant without any redeployment.
Part of a bigger picture
This server is one piece of a broader effort to make PrestaShop one of the most AI-friendly e-commerce platforms to build with. A few months ago, we explained how Repository Intelligence puts the project’s conventions in plain Markdown inside each repository, so that AI tools understand how the code is meant to be written. In parallel, the PrestaShop/skills repository provides reusable skills that let AI agents operate on a PrestaShop installation, starting with the Update Assistant.
The DevDocs MCP server covers the other side of the same problem: it gives your assistant access to what is documented, whichever repository you happen to be working in, including your own module or theme. The principles stay the same across all of these initiatives. Everything is open, everything is tool-agnostic, and everything builds on the content the community already maintains.
There is more to come, and we will keep sharing as it lands.
Give it a try, and tell us what you think
If you write PrestaShop code with an AI assistant, connecting the server takes less than a minute, and it should save you from a good share of outdated answers. Try it on your next module, your next theme customization, or the next time you dig into the Admin API.
This is a first version, and your feedback will shape what comes next. We would especially like to hear about:
- Questions where the assistant still gave a wrong or outdated answer even with the server connected.
- Searches that returned irrelevant pages, or missed the page you expected.
- Tools or setups where the connection did not work as described above.
- Ideas for new capabilities, for example covering older documentation versions or other parts of the ecosystem.
You can open an issue on the docs repository, or come and talk to us in the #general channel on the project’s Slack.
And if your assistant tells you that the documentation does not cover your question, that is valuable information too: it usually means a page is missing. The documentation is open source, and contributions to PrestaShop/docs make the answers better for every developer and every AI tool at the same time.
Happy coding!