github-wiki-mcp-server
GitHub Wiki MCP Server is a service that provides a local clone of a GitHub Wiki as a Model Context Protocol (MCP) compliant server, intended for use with the Cursor editor.
GitHub Wiki MCP Server
GitHub WikiのローカルクローンをModel Context Protocol対応サーバーとして提供するサービスです。Cursorエディタと連携して使用することを想定しています。
機能
- ローカルにクローンされたGitHub Wikiからコンテキスト情報を取得
- MCPプロトコルに準拠したAPIエンドポイントの提供
- クエリに基づいた関連Wiki情報の検索
必要条件
- Node.js 14以上
- ローカルにクローンされたGitHub Wikiリポジトリ
インストール方法
ローカルインストール
# リポジトリをクローン
git clone https://github.com/yourusername/github-wiki-mcp-server.git
cd github-wiki-mcp-server
# 依存関係をインストール
npm install
グローバルインストール (npmから)
# npmからグローバルにインストール
npm install -g github-wiki-mcp-server
設定
config/default.js
ファイルを編集して、GitHubのWikiパスなどを設定します。
module.exports = {
server: {
port: process.env.PORT || 3333
},
wiki: {
path: process.env.WIKI_PATH || './wiki' // ここを実際のWikiパスに変更
},
debug: process.env.DEBUG === 'true' || false
}
使用方法
ローカルインストールの場合
開発モード
npm run dev
本番モード
npm start
グローバルインストールの場合
# 基本的な起動
github-wiki-mcp
# ポート番号とWikiパスを指定して起動
github-wiki-mcp --port 4444 --wiki /path/to/your/wiki
環境変数での設定
# 環境変数を使用してポートとWikiパスを指定
PORT=4444 WIKI_PATH=/path/to/your/wiki github-wiki-mcp
APIエンドポイント
MCP Context API
POST /mcp
リクエスト例:
{
"query": "検索したい内容"
}
レスポンス例:
{
"contexts": [
{
"content": "# ページタイトル\n\nこのページの内容...",
"source": "ページ名.md"
}
]
}
ヘルスチェック
GET /health
Cursorとの連携方法
- このサーバーを起動
- Cursorの設定でMCPサーバーとして
http://localhost:3333/mcp
を指定
Cursorの設定例(JSON)
{
"contextSources": {
"externalServers": [
{
"name": "GitHub Wiki",
"url": "http://localhost:3333/mcp",
"enabled": true,
"priority": 1
}
]
}
}
npmパッケージとして公開する方法
-
package.jsonの情報を更新
-
npmにログイン
npm login
-
パッケージを公開
npm publish
ライセンス
MIT
Related MCP Servers
View all knowledge_and_memory servers →git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Knowledge Graph Memory Server
by modelcontextprotocol
A basic implementation of persistent memory using a local knowledge graph, allowing Claude to remember information about the user across chats.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.
mindmap-mcp-server
by YuChenSSR
A Model Context Protocol (MCP) server for converting Markdown content to interactive mindmaps.
algorand-mcp
by GoPlausible
This is a Model Context Protocol (MCP) implementation for Algorand blockchain interactions, providing a server package for blockchain interactions and a client package for wallet management and transaction signing.
basic-memory
by basicmachines-co
Basic Memory is a tool that allows users to build a persistent knowledge base through natural conversations with LLMs, storing information in Markdown files.
mcp-obsidian
by MarkusPfundstein
MCP server to interact with Obsidian via the Local REST API community plugin.