wiki-mcp
MCP server for managing a personal markdown wiki. Provides search, navigation, read, write, delete, and move tools with automatic index.md management.
README
wiki-mcp
English · 한국어
MCP (Model Context Protocol) 기반 개인 마크다운 위키 관리 서버입니다. 검색, 탐색, 읽기, 쓰기, 삭제, 이동 도구를 제공하며, AGENTS.md 규칙에 따라 index.md를 자동으로 관리합니다.
OpenCode 및 모든 MCP 호환 클라이언트에서 사용 가능합니다.
기능
- 검색 — 제목, 헤딩, 본문 전체 텍스트 검색
- 탐색 — 디렉터리 목록 보기, 전체 문서 트리 표시
- 읽기 — 모든 마크다운 문서 열기
- 쓰기 — 새 문서 생성 시
index.md에 자동 등록 - 수정 — 문서 편집; 제목 변경 시
index.md자동 갱신 - 삭제 — 문서 삭제 시
index.md항목 및 빈 섹션 자동 정리 - 이동 — 문서 이동 시 원본/대상
index.md모두 갱신 - 디렉터리 생성 — 새 디렉터리와 기본
index.md생성 - Path traversal 방어 — 모든 경로를 위키 루트 기준으로 검증
사전 요구사항
- Python 3.11+
mcp>=1.0.0(자동 설치됨)
설치
방법 A: 클론 + editable install (개발/수정 필요 시 권장)
git clone https://github.com/icarus-inte01/wiki-mcp.git
cd wiki-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e .
방법 B: pip 직접 설치 (읽기 전용)
pip install git+https://github.com/icarus-inte01/wiki-mcp.git
설정
OpenCode의 ~/.config/opencode/opencode.jsonc에 MCP 서버를 등록합니다:
{
"mcp": {
"wiki": {
"type": "local",
"command": ["/path/to/wiki-mcp/.venv/bin/python", "-m", "wiki_mcp", "/path/to/wiki/docs"],
"enabled": true
}
}
}
/path/to/wiki/docs를 실제 마크다운 위키 디렉터리의 절대 경로로 변경하세요.
도구
| 도구 | 설명 |
|---|---|
wiki_search |
키워드로 문서 검색 (제목/헤딩/본문 범위 지정 가능) |
wiki_list |
디렉터리의 마크다운 문서 목록 표시 |
wiki_read |
문서 전체 내용 읽기 |
wiki_tree |
디렉터리별 전체 문서 트리 표시 |
wiki_write |
새 문서 생성 (index.md에 자동 추가) |
wiki_update |
문서 내용 업데이트 (제목 변경 시 index.md 갱신) |
wiki_delete |
문서 삭제 (index.md에서 자동 제거) |
wiki_move |
문서 이동/이름 변경 (원본/대상 index.md 모두 갱신) |
wiki_create_dir |
새 디렉터리와 기본 index.md 생성 |
index.md 관리 규칙
서버는 AGENTS.md 규칙을 자동으로 따릅니다:
- 새 파일 생성 → 같은 디렉터리의
index.md에 항목 추가 - 제목 변경 →
index.md항목 갱신 - 파일 삭제 →
index.md에서 항목 제거; 빈 섹션도 함께 정리 - 파일 이동 → 원본
index.md에서 제거, 대상index.md에 추가 index.md자체는 자기 자신의 목록에 포함되지 않음
프로젝트 구조
wiki-mcp/
├── wiki_mcp/
│ ├── __init__.py
│ ├── __main__.py # CLI 진입점: python -m wiki_mcp <wiki_root>
│ └── server.py # MCP 서버 (9개 도구)
├── pyproject.toml
├── .gitignore
└── README.md
라이선스
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.