Skip to content

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

Credits: Dunkel Cloud GmbHUpdated: 2026-03-29

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

Last reviewed: 2026-03-29

How do you configure the DokuWiki DADL?

  1. Ensure the Remote API is enabled in DokuWiki: Admin → Configuration → Authentication → enable 'remote' option
  2. Optionally restrict remote access: set 'remoteuser' to limit which users/groups can use the API
  3. Use an existing DokuWiki user account with appropriate permissions
  4. The API uses HTTP Basic Authentication with your DokuWiki username and password

Environment variable: CREDENTIAL_DOKUWIKI_USERNAME and CREDENTIAL_DOKUWIKI_PASSWORD

Authentication docs ↗

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-here

What 30 tools does the DokuWiki DADL expose?

POSTget_api_versionGet the DokuWiki JSON-RPC API version number
POSTget_wiki_versionGet the DokuWiki software version string
POSTget_wiki_titleGet the wiki title
POSTget_wiki_timeGet the current server Unix timestamp
POSTwho_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 page
POSTget_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 page
POSTsave_pageCreate or update a page. Replaces the entire page content with the provided text.
POSTappend_pageAppend text to an existing page without replacing existing content
POSTlock_pagesLock pages to prevent concurrent editing
POSTunlock_pagesUnlock previously locked pages
POSTlist_mediaList media files in a namespace. Returns file ID, size, modification time, and permissions.
POSTget_recent_media_changesGet recently changed media files
POSTget_mediaDownload a media file as base64-encoded content
POSTget_media_infoGet metadata about a media file (size, modification time, permissions)
POSTsave_mediaUpload a media file (base64-encoded)
POSTdelete_mediaPermanently delete a media file
POSTlist_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=admin
POSTdelete_aclRemove an ACL rule
POSTcreate_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.