DokuWiki MCP Server — 30 tools
contains code
The DokuWiki DADL turns DokuWiki's API into an MCP server that Claude, GPT or any MCP-compatible agent can consume directly. One YAML file declares all 30 tools — page, media, acl, wiki, user, recent, and more — and ToolMesh serves them at runtime. No Python boilerplate, no per-endpoint code, no separate MCP server process.
Below: the endpoint coverage matrix, a two-block ToolMesh setup, the full tool reference grouped by DokuWiki feature area, required credential scopes.
Source: DokuWiki Remote API
Which DokuWiki endpoints are covered?
94% (31 of ~33 endpoints)
Focus: pages, media, search, ACL, user management, wiki metadata
Missing: plugin-specific methods beyond acl and usermanager
How do you configure the DokuWiki DADL?
- Ensure the Remote API is enabled in DokuWiki: Admin → Configuration → Authentication → enable 'remote' option
- Optionally restrict remote access: set 'remoteuser' to limit which users/groups can use the API
- Use an existing DokuWiki user account with appropriate permissions
- The API uses HTTP Basic Authentication with your DokuWiki username and password
Environment variable: CREDENTIAL_DOKUWIKI_USERNAME and CREDENTIAL_DOKUWIKI_PASSWORD
DokuWiki is self-hosted. Replace the URL with your instance address. The JSON-RPC endpoint is at /lib/exe/jsonrpc.php. All API methods use POST. Page IDs use colon-separated namespaces (e.g. 'wiki:syntax', 'namespace:page').
How do you install the DokuWiki MCP server with ToolMesh?
Add to your backends.yaml:
- name: dokuwiki
transport: rest
dadl: /app/dadl/dokuwiki.dadl
url: "https://your-wiki.example.com/lib/exe/jsonrpc.php"
credentials:
dokuwiki_username: "${CREDENTIAL_DOKUWIKI_USERNAME}"
dokuwiki_password: "${CREDENTIAL_DOKUWIKI_PASSWORD}"
Set the credential:
CREDENTIAL_DOKUWIKI_USERNAME and CREDENTIAL_DOKUWIKI_PASSWORD=your-token-hereWhat 30 tools does the DokuWiki DADL expose?
POSTget_api_versionGet the DokuWiki JSON-RPC API version numberPOSTget_wiki_versionGet the DokuWiki software version stringPOSTget_wiki_titleGet the wiki titlePOSTget_wiki_timeGet the current server Unix timestampPOSTwho_am_iGet details about the currently authenticated user (login, name, email, groups, admin/manager status)POSTacl_checkCheck ACL permissions for a page or media file. Returns permission level (0=none, 1=read, 2=edit, 4=create, 8=upload, 16=delete, 255=admin)POSTlist_pagesList all pages in a namespace. Returns page ID, revision, modification time, and size for each page.POSTsearch_pagesFull-text search across all wiki pages. Returns matching pages with snippets.POSTget_recent_page_changesGet recently changed pages. Returns page ID, revision timestamp, author, and summary for each change.POSTget_pageGet the raw wiki syntax content of a page. Use getPageHTML for rendered HTML instead.POSTget_page_htmlGet the rendered HTML of a pagePOSTget_page_infoGet metadata about a page (last modified, author, locked status)POSTget_page_historyGet the revision history of a page. Returns list of revisions with timestamp, author, summary, and size.POSTget_page_linksGet all links contained in a page (internal and external)POSTget_page_backlinksGet all pages that link to the specified pagePOSTsave_pageCreate or update a page. Replaces the entire page content with the provided text.POSTappend_pageAppend text to an existing page without replacing existing contentPOSTlock_pagesLock pages to prevent concurrent editingPOSTunlock_pagesUnlock previously locked pagesPOSTlist_mediaList media files in a namespace. Returns file ID, size, modification time, and permissions.POSTget_recent_media_changesGet recently changed media filesPOSTget_mediaDownload a media file as base64-encoded contentPOSTget_media_infoGet metadata about a media file (size, modification time, permissions)POSTsave_mediaUpload a media file (base64-encoded)POSTdelete_mediaPermanently delete a media filePOSTlist_aclsList all ACL rules. Requires admin permissions.POSTadd_aclAdd an ACL rule. Permission levels: 0=none, 1=read, 2=edit, 4=create, 8=upload, 16=delete, 255=adminPOSTdelete_aclRemove an ACL rulePOSTcreate_userCreate a new DokuWiki user account. Requires admin permissions.POSTdelete_userPermanently delete user accounts. Requires admin permissions.What composite workflows does the DokuWiki DADL provide? ⚠ contains code
FNpage_search_and_replaceReplace all occurrences of a literal substring in a wiki page and save it. Internally: get_page → string replace → save_page. The full page content never leaves the ToolMesh server; only { success, replacements } is returned. The search is a literal match (no regex).
FNpage_append_sectionInsert content at the end of an existing section, before the next heading of equal or higher level. Useful for adding material between e.g. section 6.2 and 7 — which append_page cannot do because it only appends to EOF. Internally: get_page → parse headings → splice → save_page. The full page content never leaves the ToolMesh server.
FNchunked_save_pageStateful chunked save: buffers text chunks server-side in a hidden draft page and writes the assembled content to the target page in a single revision when finalized.
Workflow:
1. First chunk: chunk_index=0 (resets the buffer for this session_id).
2. Middle chunks: chunk_index=1..N-2 (each appended to the buffer).
3. Final chunk: chunk_index=N-1, finalize=true
— assembles buffer, writes target page in ONE revision, deletes draft.
Use this when the per-call payload of execute_code is too small to fit the full page text in a single save_page call (e.g. when the calling transport limits the size of tool-call arguments). Each call carries only one chunk so the per-call payload stays small, while the target page receives one clean revision.
All intermediate buffer operations (draft create, chunk appends, draft delete) are flagged as DokuWiki minor edits, so they are hidden from the default Recent Changes view. Only the final write to the target page surfaces — the noise stays out of the wiki's change history.
Caveats:
- session_id must be unique per upload — collisions corrupt the buffer.
- Abandoned sessions leave a draft at _chunked_uploads:<session_id>;
re-using the same session_id with chunk_index=0 cleans it up.
- Chunks must arrive in order; the composite does not reorder them.