hn / typo3-mcp-server
TYPO3 extension that provides a Model Context Protocol (MCP) server for interacting with TYPO3 pages and records
Package info
github.com/hauptsacheNet/typo3-mcp-server
Type:typo3-cms-extension
pkg:composer/hn/typo3-mcp-server
Requires
- php: >=8.2
- logiscape/mcp-sdk-php: ^2.0
- typo3/cms-backend: ^13.4 || ^14.3
- typo3/cms-core: ^13.4 || ^14.3
- typo3/cms-workspaces: ^13.4 || ^14.3
Requires (Dev)
- b13/container: ^4.0
- brianium/paratest: ^7.4
- friendsoftypo3/headless: ^4.8 || ^5.0@rc
- georgringer/news: ^14.0
- typo3/cms-install: ^13.4 || ^14.3
- typo3/testing-framework: ^8.2 || ^9.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v0.8.0
- v0.7.0
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-claude/project-thread-8m7cig
- dev-feature/oauth-lifetimes-in-hours
- dev-fix/datetime-type-fields
- dev-fix/schema-required-displaycond
- dev-fix/colpos-tceform-disabled
- dev-fix/search-limit
- dev-feature/headless-urls-without-coupling
- dev-fix/relation-counts-in-read
- dev-fix/embedded-child-required-fields
- dev-feature/beautiful-brown-yeervm
- dev-fix/expected-exceptions-as-warning
- dev-docs/inline-relations
- dev-feature/oauth-refresh-tokens
- dev-feature/ecstatic-curie-hscgo0
- dev-fix/array-to-string-warnings
- dev-chore/update-llm-test-models
- dev-fix/workspace-collection-refindex
- dev-fix/123yxuaw420/expose-translation-record-uids
- dev-feature/lucid-volta-8skzc9
- dev-feature/sharp-einstein-p4xqyd
- dev-feature/festive-carson-pomoyc
- dev-fix/123yxuav6jv/reject-language-change-on-update
- dev-fix/keep-inline-children-tstamp
- dev-feature/gracious-edison-3i94j8
- dev-feature/workspace-parent-versioning
- dev-claude/stoic-brahmagupta-bejnwj
- dev-fix/search-invalid-utf8-snippets
- dev-fix/workspace-move-pointer-reads
- dev-fix/upload-pinning-tests-and-size-limit
- dev-claude/stoic-brahmagupta-z8se83
- dev-claude/stoic-brahmagupta-9urjtk
- dev-claude/stoic-brahmagupta-81x8h2
- dev-claude/stoic-brahmagupta-skgrsx
- dev-fix/124-url-upload-online-media-helper
- dev-claude/stoic-brahmagupta-rtyopd
- dev-claude/stoic-brahmagupta-t8h49s
- dev-claude/github-issue-115-review-ojxmeq
- dev-claude/stoic-brahmagupta-cx7skz
- dev-claude/stoic-brahmagupta-psvtto
- dev-claude/typo3-mcp-image-discovery-hqyyj0
- dev-claude/stateless-mcp-php-sdk-5as9cy
- dev-feature/compassionate-lamport-gg83nx
- dev-claude/investigate-oauth-registration-Bjeqd
- dev-claude/review-pr-85-dynamic-registration-yuprsd
- dev-claude/stoic-brahmagupta-90jxpc
- dev-claude/cortecs-llm-tests-s4dsnm
- dev-feature/more-explcit-worksapce-note
- dev-claude/vibrant-carson-c9evo9
- dev-claude/confident-bohr-56u99y
- dev-claude/add-html-write-table-h7HBa
- dev-claude/add-copy-move-commands-PId8m
- dev-claude/improve-mcp-docs-EukMI
- dev-claude/add-test-statistics-gSf3H
- dev-claude/complete-user-activity-check-GjOKI
- dev-claude/investigate-typo3-colpos-r6NtU
- dev-claude/fix-flaky-llm-tests-Sb3Hq
- dev-claude/review-merge-llm-tests-3t6XC
- dev-claude/debug-llm-file-reference-gFzRI
- dev-claude/fix-relation-stealing-WBQZU
- dev-claude/fix-translate-data-fields-uDxxK
- dev-claude/investigate-reports-extension-uO00Q
- dev-claude/rename-tool-tags-LYBvF
- dev-feature/marketing-website
- dev-fix/oauth-token-security4
- dev-fix/workspace-overlay-in-page-tools
- dev-claude/review-workspace-overlay-fix-uhFDR
- dev-claude/fix-mcp-tool-defaults-ctpsM
- dev-claude/improve-error-messages-n8HWv
- dev-claude/investigate-issue-19-11Nuz
- dev-claude/fix-writetable-content-4fIPM
- dev-claude/optimize-page-tree-requests-pWSWB
- dev-claude/optimize-page-tree-depth-fYXVl
- dev-claude/add-field-selection-aK1lH
- dev-claude/symfony-ai-integration-RUCV0
- dev-claude/add-sysnote-support-i9YGx
- dev-claude/add-typo3-mcp-tools-01SjXR6E4nHm3R8cwzKnsaRY
- dev-claude/tsconfig-api-filtering-01BiRUbPYiRa4e5FiHWTSTjp
This package is auto-updated.
Last update: 2026-12-01 14:10:06 UTC
README
This extension provides a Model Context Protocol (MCP) server implementation for TYPO3 that allows AI assistants to safely view and manipulate TYPO3 pages and records through TYPO3's workspace system.
๐ Safe AI Content Management with Workspaces
All content changes are automatically queued in TYPO3 workspaces, making it completely safe for AI assistants to create, update, and modify content without immediately affecting your live website. Changes require explicit publishing to become visible to site visitors.
๐งช Continuously Tested With Real LLMs
Every push to main runs a benchmark that has the latest models from Anthropic, OpenAI, Mistral, and Google, plus open-weight models from Z.ai, DeepSeek, and Qwen, actually use this MCP to perform real TYPO3 tasks. That's how we stay vendor-independent and prove the tool descriptions convey what they claim across very different prompting styles โ your AI assistant of choice should just work, not only ours. Click any badge for the full run-by-run history.
What Can You Do?
With the TYPO3 MCP Server, your AI assistant can help you:
๐ Content Management
- Translate Pages: "Translate the /about-us page to German" - The AI reads your content, translates it, and creates proper language versions
- Import Documents: "Create a news article from this Word document" - Transform external documents into TYPO3 content with proper structure
- Bulk Updates: "Update all product descriptions to include our new sustainability message" - Make consistent changes across multiple pages
๐ Content Analysis & SEO
- SEO Optimization: "Add meta descriptions to all pages that don't have them" - Automatically generate missing SEO content based on page content
- Tone Analysis: "Review the tone of our product pages and make them more friendly" - Get suggestions for improving content voice and style
- Content Audit: "Find all pages mentioning our old company name" - Quickly locate content that needs updating
๐ Productivity Boosters
- Template Application: "Apply our standard legal disclaimer to all service pages" - Consistently apply content patterns
- Content Migration: "Copy all news articles from 2023 to the archive folder" - Reorganize content efficiently
- Multi-language Management: "Ensure all German pages have English translations" - Identify and fill translation gaps
๐ผ๏ธ Images, Videos & Files
- Add Images From the Web: "Put this image on our homepage: https://example.org/press/team.jpg" - The AI downloads the file into your file storage and creates the content element that shows it
- Embed Videos: "Put this video on the home page: https://www.youtube.com/watch?v=..." - YouTube and Vimeo links become proper TYPO3 online media assets
- Add Text-Based Documents: "Add this price list as a CSV download on the service page" - Text formats like SVG, CSV or subtitles can be uploaded directly as content
- Upload From Your Machine: "Upload the team photo from my Desktop and add it to the about page" - You get a single-use upload link, so the file goes directly to TYPO3 instead of through the AI's context
All these operations happen safely in workspaces, giving you full control to review before publishing!
๐ก Want to know how it works? Check out our Technical Overview for detailed information about the implementation, available tools, and real-world examples with actual tool calls.
Project Status
| Feature | Status | Notes |
|---|---|---|
| MCP Connection | โ Ready | HTTP and stdin/stdout protocols (thanks to logiscape/mcp-sdk-php) |
| Authentication | โ Ready | OAuth for Backend Users |
| Page Tree Navigation | โ Ready | Page tree view similar to the TYPO3 backend |
| Page Content Discovery | โ Ready | Similar to the List or Page module with backend layout support |
| Record Reading/Writing | โ Ready | Read and write any workspace-capable TYPO3 table (core & extensions) with full schema inspection |
| Content Translation | โ ๏ธ Experimental | Implemented, needs real-world testing |
| File Upload | โ Ready | From a URL, a YouTube/Vimeo link, raw text content, or a local file via single-use upload URL. Create-only: never overwrites or deletes, identical content is detected, executable files are refused |
| File Discovery & References | โ ๏ธ Partial | Browse sys_file and metadata within the user's file mounts (incl. public URLs), edit metadata, create file references. No visual or semantic image search yet |
| Workspace Selection | โ Missing | Currently uses the first writable workspace of the user |
While there are a lot of automated tests, TYPO3 instances are widely different and Language Models are also widely different. Feel free to create issues here on GitHub or share experiences in the typo3-core-ai channel.
๐ผ๏ธ Files and Images
Your assistant can bring new files into TYPO3, and it picks the right of these four ways on its own:
- From a URL: the TYPO3 server downloads the file itself, so the file never has to pass through the AI.
- From YouTube or Vimeo: those links become proper TYPO3 online media assets โ the video itself stays where it is.
- Directly as content: text-based documents like SVG, CSV or subtitle files can be uploaded as content, without a URL or a separate upload.
- From your own computer: the assistant hands out a single-use upload link, and your MCP client sends the file directly to TYPO3. Binary data never travels through the AI's context, which keeps large photos both cheap and private.
Uploading is deliberately create-only โ nothing you already have can be overwritten or deleted. A name that is already taken is resolved by renaming (image.jpg becomes image_01.jpg), and uploading content that already exists returns the existing file instead of creating a duplicate. Files that could be executed, by the server or by a visitor's browser, are refused, as are files that reconfigure the web server. Downloads only work from public http(s) addresses, and your backend user's file mounts and file permissions apply throughout.
Unlike records, files are not workspace-versioned in TYPO3, so an uploaded file lands in your file storage right away. It only becomes visible on the website once a record references it โ and that reference is workspace-staged, so the usual review before publishing still applies.
๐ก See Put this image on the homepage in the Technical Overview for the actual tool calls, and Image/File Handling for the upload-token flow and the current limits.
Installation
composer require hn/typo3-mcp-server
Requirements:
- TYPO3 v13.4+
- TYPO3 Workspaces extension (automatically installed as dependency)
Configuration
The defaults work out of the box. All settings live in the extension configuration (Admin Tools โ Settings โ Extension Configuration โ mcp_server):
| Setting | Default | Purpose |
|---|---|---|
maxFileSizeMb |
500 |
Upper limit in MiB for files fetched from a URL or received through an upload link |
additionalReadOnlyTables |
sys_file |
Non-workspace-capable tables exposed read-only โ this is what lets the AI browse your files |
additionalStandaloneTables |
sys_file_metadata |
hideTable tables exposed as independent tables โ this is what makes file metadata such as titles and alt texts editable |
excludedTables |
(empty) | Tables the MCP never exposes, whatever the backend user may access (admins included). A trailing * matches a prefix. For tables with personal data that editors still need in the backend, e.g. tx_powermail_domain_model_mail,tx_powermail_domain_model_answer |
allowedTables |
(empty) | If set, the MCP only exposes these tables (prefix * allowed), so tables of extensions added later stay hidden until listed. excludedTables wins. Empty means every table the user may access |
workspacePreviewLinks |
1 |
Adds login-free workspace preview links to pages and records with unpublished changes, so the AI can show the result of its edits. Anyone with such a link sees all unpublished changes of the workspace until it expires |
oauthAccessTokenHours |
1 |
Access token lifetime for MCP clients that support refresh tokens (e.g. Claude). They renew it automatically |
oauthAccessTokenHoursWithoutRefresh |
12 |
Access token lifetime for MCP clients without refresh tokens: the user authorizes them again once per working day |
oauthRefreshTokenHours |
720 |
How long a client may stay unused before the user has to authorize it again (720 = 30 days); every refresh starts this period anew |
oauthMaxSessionHours |
0 |
Upper limit from the authorization on, however actively a client is used; after it the user authorizes again (e.g. to pass SSO group checks). 0 = no limit |
manualTokenHours |
720 |
Lifetime of tokens created in the backend module or with mcp:oauth create, for tools that cannot do OAuth (e.g. n8n) |
All token lifetimes are in hours and may have decimals (0.5 = 30 minutes).
Records other than pages and content elements (news, events, ...) get a frontend URL once
TCEMAIN.preview.<table> is configured in Page TSconfig โ the same setting that powers the
"View" button in the backend. See Record URLs.
Decoupled frontends (EXT:headless)
With EXT:headless, page and record URLs should
point at the site's frontendBase, not at the JSON API, and GetPage should accept them.
- TYPO3 14 + EXT:headless 5: works out of the box for the HTTP MCP endpoint, nothing to
configure. EXT:headless only rewrites URLs during backend requests, so the deprecated stdio
command (
mcp:server) keeps handing out URLs on the site base. - TYPO3 13 + EXT:headless 4: add this listener to your site package:
<?php namespace Vendor\SitePackage\EventListener; use FriendsOfTYPO3\Headless\Utility\HeadlessModeInterface; use FriendsOfTYPO3\Headless\Utility\UrlUtility; use Hn\McpServer\Event\AfterRecordUrlGeneratedEvent; use TYPO3\CMS\Core\Attribute\AsEventListener; use TYPO3\CMS\Core\Http\ServerRequest; use TYPO3\CMS\Core\Utility\GeneralUtility; #[AsEventListener] final class HeadlessRecordUrlListener { public function __invoke(AfterRecordUrlGeneratedEvent $event): void { $request = $GLOBALS['TYPO3_REQUEST'] ?? new ServerRequest($event->getUrl()); $request = GeneralUtility::makeInstance(HeadlessModeInterface::class) ->withRequest($request->withoutHeader('Accept')) ->overrideBackendRequestBySite($event->getSite(), $event->getLanguage()); $event->setUrl( GeneralUtility::makeInstance(UrlUtility::class) ->withRequest($request) ->getFrontendUrlWithSite($event->getUrl(), $event->getSite()) ); } }
The attribute registers the listener when the site package's Configuration/Services.yaml
autoconfigures its classes (_defaults: autoconfigure: true plus a resource: '../Classes/*'
entry). Without that, register it explicitly:
services: Vendor\SitePackage\EventListener\HeadlessRecordUrlListener: tags: - name: event.listener
The listener rewrites URLs the way EXT:headless 4 rewrites the backend's view button in the
live workspace, and does so for workspace previews too. The ADMCMD_prev token is appended
after the listener ran, so the frontend has to accept it and pass it on to TYPO3.
Other decoupled frontends can rewrite URLs the same way, through the core
AfterPageUriGeneratedEvent (TYPO3 14) or AfterRecordUrlGeneratedEvent.
Usage
Quick Start
There are two ways to connect AI assistants like Claude Desktop to your TYPO3 installation:
Option 1: OAuth Authentication (Recommended)
For secure remote access with proper authentication:
- Go to [Username] โ MCP Server in your TYPO3 backend
- Copy the Server URL (and optionally the Integration Name)
- Add the Integration to whatever MCP Client you are using.
The HTTP endpoint runs with the permissions of the logged-in backend user: DB mounts, table and field permissions, and workspaces apply as in the TYPO3 backend.
MCP clients register themselves through OAuth dynamic client registration (/mcp_oauth/register), which needs no login. It accepts 20 registrations per IP address within 15 minutes; a client registers once or twice when a connection is set up. To change the limit, override it in config/system/additional.php:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['rateLimiter']['mcp-oauth-register'] = [ 'limit' => 50, 'interval' => '15 minutes', ];
Option 2: Local Command Line Connection (Deprecated)
Warning
The stdio command is deprecated. Use the HTTP endpoint (Option 1) instead.
The stdio command always runs with admin privileges. This is intended: running it requires shell access to the server, which already means full control over the TYPO3 installation. It also only works where the MCP client can start a process on the server. To use it anyway, add this to the MCP config file of Claude Desktop or whatever client you are using:
{
"mcpServers": {
"[your-typo3-name]": {
"command": "php",
"args": [
"vendor/bin/typo3",
"mcp:server"
]
}
}
}
The client keeps this process running for the whole session, while TYPO3 takes
its request time ($GLOBALS['EXEC_TIME'], ACCESS_TIME, SIM_EXEC_TIME,
SIM_ACCESS_TIME and the Context's date aspect) once when a process starts.
The server therefore resets the request time to the current time before every
tool call. Each call gets its own tstamp/crdate, sys_log and
sys_history time, and starttime/endtime checks use the time of the call,
as they would in a separate web request.
Development
Running Tests
# Functional tests (PHPUnit) composer test # E2E tests โ spins up MySQL, TYPO3, and Playwright in Docker Build/runTests.sh -s e2e # E2E without Docker (host PHP + SQLite + local Playwright). # Auto-selected when Docker is unavailable. Build/runTests.sh -s e2e --no-docker # E2E against an existing TYPO3 instance TYPO3_BASE_URL=https://my.ddev.site Build/runTests.sh -s e2e # See all options Build/runTests.sh -h
Adding New Tools
Tools are defined in the Classes/MCP/Tool directory. Each tool follows the MCP tool specification and maps to specific TYPO3 functionality.
Learn More
- ๐ Technical Overview - Comprehensive guide covering architecture, implementation details, and advanced usage
- ๐๏ธ Architecture Documentation - Deep dives into specific implementation aspects:
- Workspace Transparency - How workspace complexity is hidden from AI
- Language Overlays - Multi-language content handling
- Inline Relations - Managing TYPO3's complex relation types
- Record URLs - Frontend URLs of records and workspace preview links
License
GPL-2.0-or-later
