- Explore MCP Servers
- wagtail-mcp
Wagtail Mcp
What is Wagtail Mcp
Wagtail-MCP is a read-only Model Context Protocol (MCP) server that provides access to a Wagtail CMS instance using its V2 API. It is designed to facilitate the retrieval of content from Wagtail in a standardized way.
Use cases
Use cases for Wagtail-MCP include displaying content on static websites, integrating Wagtail with other services that require read-only data access, and building front-end applications that consume Wagtail-managed content without modifying it.
How to use
To use Wagtail-MCP, clone the repository, install the dependencies, configure the environment variables (including Wagtail base URL and optional API key), build the TypeScript code, and start the server to begin serving the MCP.
Key features
Key features include compliance with the MCP specification, read-only access to Wagtail Pages, Images, and Documents, standard MCP actions for listing and searching, configurable environment settings, support for stdio transport, and enhanced type safety using TypeScript and Zod for validation.
Where to use
Wagtail-MCP can be used in web applications that require read-only access to content managed by Wagtail CMS, such as websites, content delivery systems, and applications that need to integrate with Wagtail’s content management capabilities.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Wagtail Mcp
Wagtail-MCP is a read-only Model Context Protocol (MCP) server that provides access to a Wagtail CMS instance using its V2 API. It is designed to facilitate the retrieval of content from Wagtail in a standardized way.
Use cases
Use cases for Wagtail-MCP include displaying content on static websites, integrating Wagtail with other services that require read-only data access, and building front-end applications that consume Wagtail-managed content without modifying it.
How to use
To use Wagtail-MCP, clone the repository, install the dependencies, configure the environment variables (including Wagtail base URL and optional API key), build the TypeScript code, and start the server to begin serving the MCP.
Key features
Key features include compliance with the MCP specification, read-only access to Wagtail Pages, Images, and Documents, standard MCP actions for listing and searching, configurable environment settings, support for stdio transport, and enhanced type safety using TypeScript and Zod for validation.
Where to use
Wagtail-MCP can be used in web applications that require read-only access to content managed by Wagtail CMS, such as websites, content delivery systems, and applications that need to integrate with Wagtail’s content management capabilities.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Wagtail MCP Server
This project implements a Model Context Protocol (MCP) server that provides read-only access to a Wagtail CMS instance using its V2 API.
It is built on FastMCP.
Configuration
Add the following JSON to the MCP configuration file for your environment (e.g. claude_desktop_config.json for Claude Desktop):
{
"mcpServers": {
"wagtail-mcp": {
"command": "npx",
"args": [
"-y",
"wagtail-mcp"
],
"env": {
"WAGTAIL_BASE_URL": "https://api.example.com"
}
}
}
}
Make sure to set WAGTAIL_BASE_URL to the base URL of your Wagtail API instance.
Implemented Tools
-
search_pages: Searches pages from the Wagtail CMS API.- Parameters:
query(string): The term to search for in page content.type(string, optional): Filters results to a specific page type (e.g.,blog.BlogPage,myapp.StandardPage).locale(string, optional, default:en): Filters pages by a specific locale code (e.g.,enfor English,esfor Spanish).search_operator(string, optional, values:and,or): Determines how multiple terms in thequeryare combined. Defaults based on the Wagtail search backend configuration.limit(integer, optional, default:50): The maximum number of page results to return.offset(integer, optional): The starting point for paginated results (e.g., anoffsetof10skips the first 10 results).fields(string, optional): A comma-separated list to control which fields are returned in the response for each page. Examples:title,body(returns only title and body),*,-summary(returns all fields except summary),_,custom_field_name(returns default fields plus a specific custom field). Refer to Wagtail API documentation for more on field selection syntax.
- Usage: Useful for finding pages matching certain keywords, potentially filtered by their type or language. For example, searching for all “news” articles in Spanish. Returns a list of pages with their details.
- Parameters:
-
get_page_details: Retrieves the full details of a specific Wagtail page.- Parameters (at least one of
id,slug, orurlis required; priority isid>slug>url):id(integer, optional): The unique numeric ID of the page.slug(string, optional): The slug (URL path component) of the page (e.g.,about-us/team).url(string, optional): The full public URL of the page.fields(string, optional): A comma-separated list to control which fields are returned in the response. This allows for fetching specific data points or excluding others.- Examples:
body,feed_image: Returns only thebodyandfeed_imagefields.*,-title: Returns all fields excepttitle._,my_custom_field: Returns default fields plusmy_custom_field. (Refer to Wagtail API documentation for more on field selection syntax).
- Examples:
- Usage: Use this to fetch comprehensive data for a known page, such as its content, metadata, or custom fields, after identifying it via
search_pagesor other means. Returns the full page object.
- Parameters (at least one of
-
search_documents: Searches for Wagtail documents (e.g., PDFs, images uploaded to the media library).- Parameters:
query(string, required): The search term to use for finding documents by their title or other indexed metadata.search_operator(string, optional, values:and,or, default:and): Specifies how multiple terms in thequeryare combined (andrequires all terms to match,orrequires at least one).
- Usage: Helps locate documents within the Wagtail CMS based on keywords. For instance, finding all PDF documents containing “annual report”. Returns a list of matching documents including their ID, title, and download URL.
- Parameters:
-
get_document_details: Retrieves detailed information for a specific Wagtail document.- Parameters:
id(integer, required): The unique numeric ID of the document.
- Usage: After finding a document’s ID (e.g., via
search_documents), use this to get its specific details, primarily its ID, title and download URL.
- Parameters:
Configuration Details
Environment variables can be passed in via the MCP configuration file for your environment (e.g. claude_desktop_config.json):
- Wagtail API Configuration:
WAGTAIL_BASE_URL: Required. The base URL of your Wagtail API instance (e.g.,https://api.example.com).WAGTAIL_API_PATH: (Optional) Path to the API endpoint. Defaults to/api/v2.WAGTAIL_API_KEY: (Optional) An API key if your Wagtail API requires bearer token authentication.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










