wiki-helper
mcp-wiki-helper-tools
用于查询存储在 Git 仓库中的 Wiki 的 MCP 服务器。
它会同步 Wiki、索引 Markdown 文件,并提供工具在 Codex 或 VS Code 中列出、搜索和阅读文档。
功能
工具 | 作用 |
| 检查 MCP 是否正常工作。 |
| 列出 Wiki 中的文档。 |
| 按文档名称或路径搜索。 |
| 在文档内容中搜索。 |
| 读取完整的 Markdown 文档。 |
Related MCP server: knowledge-mcp
工作原理
MCP 克隆或更新 Wiki 的 Git 仓库。
查找所有
.md文件。在内存中创建索引。
通过 HTTP 路由
/mcp提供工具。定期更新 Wiki。
WIKI_LOCAL_PATH定义的文件夹会通过git reset --hard更新。请勿手动修改该文件夹,否则更改将被丢弃。
1. 配置服务器
在运行 MCP 的机器上,进入项目文件夹:
cd "/caminho/para/mcp-wiki-helper"安装依赖:
npm install创建 .env 文件:
cp .env.example .env填写 .env:
WIKI_REPOSITORY_URL=git@github.com:empresa/wiki.git
WIKI_LOCAL_PATH=./data/wiki
WIKI_BRANCH=main
WIKI_SYNC_INTERVAL_MS=1800000
MCP_HTTP_HOST=0.0.0.0
MCP_HTTP_PORT=3000
MCP_HTTP_ROUTE=/mcp为了方便在本地网络中进行首次测试,请不要配置 MCP_API_KEY。
2. 启动服务器
编译:
npm run build启动:
npm run start:http保持该终端窗口打开。预期消息为:
[MCP] HTTP ativo em http://0.0.0.0:3000/mcp查找机器的 IP:
hostname -I如有必要,请在本地网络中开放端口:
sudo ufw allow from 192.168.0.0/16 to any port 3000 proto tcp3. 测试连接
在另一台机器上执行:
curl http://IP_DO_SERVIDOR:3000/health示例:
curl http://192.168.3.233:3000/health预期响应:
{
"status": "ok",
"documents": 100
}documents 字段应大于零。
4. 在 Codex 中连接
在 Codex 中:
打开 设置。
进入 MCP 服务器。
点击 + 添加服务器。
选择 URL/HTTP 类型。
使用名称
wiki-helper。仅填写 URL:
http://IP_DO_SERVIDOR:3000/mcp示例:
http://192.168.3.233:3000/mcp将以下字段完全留空:
Bearer token 环境变量
Headers
来自环境变量的 Headers
不要在认证字段中填写 none。
然后:
保存服务器。
启用
wiki-helper旁边的开关。在 Codex 中打开新对话。
发送:
Use list_documents do MCP wiki-helper e mostre os primeiros 10 documentos.如果 Codex 提示环境变量 none 不存在:
打开 设置 > MCP 服务器 > wiki-helper。
点击 卸载。
重新添加,仅填写 URL。
将所有认证字段留空。
5. 在 VS Code/Copilot 中连接
在 VS Code 中:
按
Ctrl+Shift+P。执行
MCP: Open User Configuration。在
mcp.json文件中添加:
{
"servers": {
"wiki-helper": {
"type": "http",
"url": "http://IP_DO_SERVIDOR:3000/mcp"
}
}
}然后执行 MCP: List Servers,选择 wiki-helper 并选择 Start Server。
6. 使用示例
检查服务器:
Use a ferramenta Server do MCP wiki-helper.列出文档:
Use list_documents do wiki-helper e mostre os primeiros 10 documentos.按名称搜索:
Use search_documents do wiki-helper para procurar "autenticação".在 Wiki 中搜索:
Use search_content do wiki-helper para pesquisar "JWT", com limite 5.读取文档:
Use read_document do wiki-helper para ler "caminho/documento.md" e faça um resumo.常见问题
错误 ECONNREFUSED ...:80
URL 缺少端口或路由。请始终使用:
http://IP_DO_SERVIDOR:3000/mcp打开了 /authorize 路由
客户端尝试使用 OAuth。此 MCP 不支持 OAuth。请移除认证,并将 Bearer 和 Headers 字段留空。
MCP 无法连接
在服务器机器上检查:
npm run start:http
ss -lntp | grep 3000在客户端机器上再次测试:
curl http://IP_DO_SERVIDOR:3000/healthWiki 不返回文档
检查配置的文件夹是否包含 Markdown 文件:
find ./data/wiki -type f -name '*.md' | head同时检查 WIKI_REPOSITORY_URL 中配置的 Git 仓库访问权限。
安全
仅在受控的本地网络中使用此无认证模式。
不要将
3000端口直接暴露到互联网。如需外部访问,请使用 HTTPS、认证和反向代理。
切勿在
.env中版本化密钥或凭据。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables querying and interacting with a Markdown wiki generated from Confluence pages, with search and MCP server for LLM access.104MIT
- FlicenseNot gradedqualityCmaintenanceServes markdown knowledge from a git repository over MCP, providing tools to list, search, and retrieve documents.
- AlicenseNot gradedqualityBmaintenanceTurns a git-backed markdown directory into an MCP-compatible knowledge server, enabling any MCP client to read, search, ingest, and maintain a persistent wiki that compounds across sessions.MIT
- AlicenseNot gradedqualityAmaintenanceServes local Markdown wikis as a read-only knowledge source with MCP tools for agent context retrieval.6Apache 2.0
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.
Self-hostable team wiki; agents read & write it via MCP; Atlas turns your repo into a cited wiki.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jarrelllong573-rgb/mcp-wiki-helper-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server