AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Wiki As An Mcp

mcp-taikunudel-wiki-as-an-mcp · by taikunudel

First general Wiki MCP following google's Open Knowledge Format. Let your agent to use, manage, maintain, and health check the wiki (knowledge base) for you. The wiki is general purpose.

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add mcp-taikunudel-wiki-as-an-mcp

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-taikunudel-wiki-as-an-mcp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Wiki As An Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

wiki-as-an-mcp

[](https://github.com/taikunudel/wiki-as-an-mcp/blob/main/LICENSE)

English | [中文](#中文版)

Overall Design

To our best knowledge, this is the first general purpose MCP for building and using your own personal wiki (knowledge base), following the Google proposed Open Knowledge Format and Andrew Karpahyt's LLM wiki design philosophy. This MCP is task-agnostic.

Open Knowledge Format

Andrew Karpahyt's LLM wiki

  1. Git enabled the MCP to manage more than one versions of WIKI.
  2. 2 modes (user, manager) allows the WIKI stay aways from unintentional contamination.
  3. Regular health check ensures the correctness of the wiki index.

Why

  • Frozen reads. Read mode pins one git commit at startup and serves it, so a consumer

stays frozen for its whole session even while the curator keeps editing.

  • Safe edits. Manage mode edits a working tree; kb_snapshot commits a new version.

Earlier commits never change, so a published version cannot be corrupted by an edit.

  • Rules travel with the data. The rulebook (AGENT_RULES.md) ships inside the server as

the MCP instructions and via a kb_rules() tool, and the write tools enforce it.

  • Portable. It self-locates, ships a setup script, a health doctor that runs on every

start, and a portability test.

Example knowledge base

[](https://taikunudel.github.io/knowledge-iosapp/)

knowledge-iosapp is a real OKF knowledge base served and maintained by this server — the development wiki for an iOS app. Open the live, interactive graph » — the graph.html it ships is regenerated on every manage-mode edit, so the live view always reflects the current state of the base.

Serve that example against this server yourself:

git clone https://github.com/taikunudel/wiki-as-an-mcp
git clone https://github.com/taikunudel/knowledge-iosapp wiki-as-an-mcp/knowledge
cd wiki-as-an-mcp/knowledge-mcp && ./setup.sh && ./start.sh --mode read --version v1

Quick start

git clone https://github.com/taikunudel/wiki-as-an-mcp
cd wiki-as-an-mcp/knowledge-mcp

# bring an OKF knowledge repo next to the server as ../knowledge (see below),
# or point --registry at one anywhere.

./setup.sh # checks git + Python >= 3.10, builds the venv, localizes configs
./doctor.sh # health check (git, venv, knowledge repo, configs)

./start.sh --mode read --version  # serve one frozen version to an agent
./start.sh --mode manage # edit a working tree, then kb_snapshot

Agents usually connect through one of the knowledge-mcp/mcp.read*.json / mcp.manage.json configs rather than launching start.sh by hand.

The two modes

  • read — 5 tools (kb_index, kb_list, kb_get, kb_grep, kb_rules), pinned to one

commit, content served straight from git, read-only. The write tools are not registered, so a read session cannot even see them.

  • manage — all 14 tools. Checks out a branch and edits its working tree; kb_snapshot

commits a new version.

The 9 manage tools add: kb_add, kb_update, kb_remove, kb_new_folder, kb_reindex, kb_validate, kb_versions, kb_snapshot, kb_set_current. Full input/output examples are in knowledge-mcp/USER_MANUAL.md; the rulebook is knowledge-mcp/AGENT_RULES.md.

Bring your own knowledge repo

The wiki is its own git repo, separate from this server, so the two version independently and neither nests inside the other. Its root is an OKF v0.1 bundle:

  • folders of markdown pages, each non-reserved page carrying YAML frontmatter with a non-empty

type,

  • a reserved index.md catalog in every folder, plus a reserved log.md,
  • editions/versions are git branches and commits (a project can keep several arms as branches).

Place it next to the server as knowledge/, or pass --registry /path/to/your/knowledge.

Git versioning

A version is a git commit; an edition is a branch. Read resolves a ref to one commit at startup and serves that commit, so the consumer is frozen. Manage edits the working tree and kb_snapshot commits a new point; earlier commits are untouched. kb_versions is git branch

  • git log, kb_set_current is git checkout.

Robustness and portability

  • setup.sh checks prerequisites, builds the venv, and rewrites the MCP configs to wherever

you cloned the project.

  • doctor.sh runs before every start (and on demand): git on PATH, the venv works, the

knowledge repo is present with its branches, the configs are valid JSON. A problem stops the start with a fixable message.

  • portability_test.sh copies the project to a new path and re-runs the smoke test, catching

any machine-specific absolute path.

  • Rule of thumb: clone or move it anywhere, run setup.sh once, then start it. A Python venv

cannot be moved, so setup.sh must be re-run after a move.

An example project (the auto-insurance branch)

The auto-insurance branch uses this server to run an LLM-agent benchmark: it serves a Tweedie/GLM insurance-modeling wiki across a good arm and silent-defect arms, hands a task and a grading rubric to agents, scores their models through a sealed evaluator, and collects the logs. It is a worked example of "a knowledge base as an MCP" inside a real experiment.


wiki-as-an-mcp(作为 MCP 的维基)

[English](#wiki-as-an-mcp) | 中文

整体设计(Overall Design)

据我们所知,这是首个用于构建和使用你自己的个人维基(personal wiki,即知识库 knowledge base)的通用 MCP,它遵循 Google 提出的开放知识格式(Open Knowledge Format)以及 Andrew Karpahyt 的 LLM 维基(LLM wiki)设计理念。本 MCP 与具体任务无关(task-agnostic)。

开放知识格式(Open Knowledge Format)

Andrew Karpahyt 的 LLM 维基(LLM wiki)

  1. Git 使该 MCP 能够管理一个以上版本的维基(WIKI)。
  2. 两种模式(用户 user、管理者 manager)让维基(WIKI)远离意外污染(unintentional contamination)。
  3. 定期的健康检查(health check)确保维基索引(wiki index)的正确性。

为什么(Why)

  • 冻结读取(Frozen reads)。 读取模式(Read mode)在启动时固定一个 git 提交(git commit)并提供它,因此即使管理者(curator)持续编辑,使用者在其整个会话期间也保持冻结状态。
  • 安全编辑(Safe edits)。 管理模式(Manage mode)编辑一个工作树(working tree);kb_snapshot 提交一个新版本。更早的提交永远不会改变,因此已发布的版本不会被一次编辑破坏。
  • 规则随数据同行(Rules travel with the data)。 规则手册(rulebook,即 AGENT_RULES.md)作为 MCP 的 instructions 内置于服务器中,并通过一个 kb_rules() 工具提供,写入工具会强制执行这些规则。
  • 可移植(Portable)。 它能自我定位,附带一个安装脚本(setup script)、一个在每次启动时运行的健康检查器 doctor,以及一个可移植性测试(portability test)。

示例知识库(Example knowledge base)

[](https://taikunudel.github.io/knowledge-iosapp/)

knowledge-iosapp 是由本服务器提供并维护的一个真实 OKF 知识库 —— 某 iOS 应用的开发维基。打开在线交互式图谱 » —— 它附带的 graph.html 会在每次管理模式(manage-mode)编辑后重新生成,因此在线视图始终反映知识库的当前状态。

用本服务器亲自运行该示例:

git clone https://github.com/taikunudel/wiki-as-an-mcp
git clone https://github.com/taikunudel/knowledge-iosapp wiki-as-an-mcp/knowledge
cd wiki-as-an-mcp/knowledge-mcp && ./setup.sh && ./start.sh --mode read --version v1

快速开始(Quick start)

git clone https://github.com/taikunudel/wiki-as-an-mcp
cd wiki-as-an-mcp/knowledge-mcp

# bring an OKF knowledge repo next to the server as ../knowledge (see below),
# or point --registry at one anywhere.

./setup.sh # checks git + Python >= 3.10, builds the venv, localizes configs
./doctor.sh # health check (git, venv, knowledge repo, configs)

./start.sh --mode read --version  # serve one frozen version to an agent
./start.sh --mode manage # edit a working tree, then kb_snapshot

代理(Agents)通常通过 knowledge-mcp/mcp.read*.json / mcp.manage.json 配置之一进行连接,而不是手动启动 start.sh

两种模式(The two modes)

  • read(读取) —— 5 个工具(kb_indexkb_listkb_getkb_grepkb_rules),固定到一个提交(commit),内容直接从 git 提供,只读。写入工具未被注册,因此读取会话甚至看不到它们。
  • manage(管理) —— 全部 14 个工具。检出一个分支(branch)并编辑其工作树(working tree);kb_snapshot 提交一个新版本。

这 9 个管理工具新增了:kb_addkb_updatekb_removekb_new_folderkb_reindexkb_validatekb_versionskb_snapshotkb_set_current。完整的输入/输出示例见 knowledge-mcp/USER_MANUAL.md;规则手册为 knowledge-mcp/AGENT_RULES.md

带上你自己的知识库(Bring your own knowledge repo)

维基是它自己的 git 仓库(own git repo),独立于本服务器,因此两者各自独立地进行版本管理,互不嵌套。它的根目录是一个 OKF v0.1 包(bundle):

  • 由 markdown 页面组成的文件夹,每个非保留页面(non-reserved page)都带有 YAML frontmatter,其中含有一个非空的 type
  • 每个文件夹中都有一个保留的 index.md 目录,外加一个保留的 log.md
  • 各个版次/版本(editions/versions)是 git 分支和提交(一个项目可以将多个分支(arms)保留为分支)。

将它放在服务器旁边作为 knowledge/,或传入 --registry /path/to/your/knowledge

Git 版本管理(Git versioning)

一个版本(version)是一个 git 提交(commit);一个版次(edition)是一个分支(branch)。读取在启动时将一个引用(ref)解析为一个提交并提供该提交,因此使用者被冻结。管理编辑工作树,并由 kb_snapshot 提交一个新的节点;更早的提交不受影响。kb_versionsgit branch + git logkb_set_currentgit checkout

健壮性与可移植性(Robustness and portability)

  • setup.sh 检查先决条件,构建虚拟环境(venv),并将 MCP 配置重写到你克隆项目的位置。
  • doctor.sh 在每次启动前(以及按需)运行:PATH 上的 git、虚拟环境(venv)可用、知识库及其分支存在、配置是有效的 JSON。出现问题时会以一条可修复的消息停止启动。
  • portability_test.sh 将项目复制到一个新路径并重新运行冒烟测试(smoke test),以捕捉任何与机器相关的绝对路径。
  • 经验法则:将它克隆或移动到任何地方,运行一次 setup.sh,然后启动它。Python 虚拟环境(venv)不能被移动,因此移动后必须重新运行 setup.sh

一个示例项目(auto-insurance 分支)

auto-insurance 分支使用本服务器来运行一个 LLM 代理基准测试(LLM-agent benchmark):它在一个正常分支(good arm)和若干静默缺陷分支(silent-defect arms)上提供一个 Tweedie/GLM 保险建模维基,将一个任务和一份评分标准(grading rubric)交给代理,通过一个封闭的评估器(sealed evaluator)对它们的模型评分,并收集日志。它是在一个真实实验中"将知识库作为一个 MCP"的实际示例。

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.