mcp-server-wikijs

mcp-server-wikijs

An MCP server that lets Claude (or any MCP client) manage a Wiki.js instance through its GraphQL admin API — read and write pages, manage navigation and groups, and trigger Git storage syncs.

Category
访问服务器

README

mcp-server-wikijs

CI PyPI Python License: MIT

An MCP server that lets Claude (or any MCP client) manage a Wiki.js instance through its GraphQL admin API — read and write pages, manage navigation and groups, and trigger Git storage syncs.

Published on PyPI as mcp-server-wikijs; the source repo is margus/wikijs-mcp. The admin focus (navigation, groups, Git sync, raw GraphQL) sets it apart from content-authoring Wiki.js MCP servers.

How it works: MCP does not run inside Wiki.js. This is a small stdio server your MCP client launches locally; it talks to https://<your-wiki>/graphql. If your Wiki.js is on a private network, the machine running this needs network reach to it.

Tools

Tool What it does
execute_graphql(query, variables?) Run any Wiki.js GraphQL query/mutation (escape hatch)
list_pages(locale?, limit?) List pages (id, locale, path, title)
get_page(path?, locale?, id?) Get a page's content + metadata
create_page(path, title, content, …) Create a page
update_page(id, content?, title?, …) Update a page — only passed fields change
delete_page(id) Delete a page
get_navigation() Current nav mode + tree
set_navigation_mode(mode) NONE / TREE / MIXED / STATIC
list_groups() / get_group(id) Groups + their permissions/page rules
trigger_git_sync() Re-sync the Git storage target (re-import content repo)

Prerequisites

  1. A running Wiki.js 2.x instance.
  2. An API key: Administration → API Access → enable the API → New API Key (full access; the 2.x API isn't finely scoped). Copy the token.

Quick start

Run it on demand with uvx (no install) — set the two environment variables and go:

export WIKIJS_URL="https://wiki.example.com"
export WIKIJS_TOKEN="your-api-key"
uvx mcp-server-wikijs

Or install it:

pip install mcp-server-wikijs     # or: uv tool install mcp-server-wikijs
mcp-server-wikijs

The server speaks MCP over stdio, so running it directly just waits for a client — that's expected. Wire it into a client below.

Configuration

Variable Required Description
WIKIJS_URL ✅ Base URL of your Wiki.js instance (e.g. https://wiki.example.com). The GraphQL endpoint is <URL>/graphql.
WIKIJS_TOKEN ✅ Wiki.js API key. Aliases also accepted: WIKIJS_API_TOKEN, WIKI_JS_MCP_API_TOKEN.

For standalone runs you can instead drop a .env next to where you launch it (cp .env.example .env); it's loaded automatically.

Register with an MCP client

Claude Code

claude mcp add wikijs --env WIKIJS_URL=https://wiki.example.com --env WIKIJS_TOKEN=your-api-key -- uvx mcp-server-wikijs

…or add it to .mcp.json / your settings:

{
  "mcpServers": {
    "wikijs": {
      "command": "uvx",
      "args": ["mcp-server-wikijs"],
      "env": {
        "WIKIJS_URL": "https://wiki.example.com",
        "WIKIJS_TOKEN": "your-api-key"
      }
    }
  }
}

Tip: keep secrets out of committed files — reference an env var that's already in your shell, e.g. "WIKIJS_TOKEN": "${WIKIJS_TOKEN}", and start the client from a shell where it's set.

Claude Desktop

Add the same block to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude Desktop.

Examples

Once registered, ask your assistant things like:

  • "List every page under clients/ in the en locale."
  • "Create a page at guides/onboarding titled 'Onboarding' with this content: …"
  • "Update page 31 — append a 'Troubleshooting' section, leave everything else."
  • "Trigger a Git sync so the wiki re-imports the content repo."

Security

The Wiki.js API key is full-admin — treat it as a privileged credential. Keep it in your secrets manager / environment, never commit it, and revoke or rotate it anytime from Wiki.js → API Access. Every write tool acts with that key's full authority, so review mutations before approving them.

Development

git clone https://github.com/margus/wikijs-mcp
cd wikijs-mcp
uv sync                # install runtime + dev deps
uv run pytest          # run the test suite (no live wiki needed — httpx is mocked)
uv run ruff check .    # lint

The Wiki.js logic lives in src/wikijs_mcp/client.py (WikiJSClient), unit-tested against httpx.MockTransport. src/wikijs_mcp/server.py is a thin layer of MCP tool wrappers over it. See CONTRIBUTING.md.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选