Skip to main content
Glama

mofox-docs-mcp

Neo-MoFox 公式ドキュメント MCP サーバー: Model Context Protocol により MoFox-Bot-Docs ドキュメントサイトの検索・閲覧機能を提供し、Claude、Cursor、Neo-MoFox などの MCP クライアントが公式ドキュメントを直接検索・閲覧できるようにします。

データソースはドキュメントサイトの JSON API(https://docs.mofox-sama.com/api/docs/*)で、MoFox プラグインマーケットの mofox_docs プラグインと同一の llms.json インデックスを共有しており、動作も同じです。

機能

ツール

ツール

説明

search_docs(query, limit?, offset?)

キーワードでドキュメントを検索します。クエリは空白で単語に分割され、ヒットしたキーワード数の多い順で返します(例: "Windows 部署 安装" は guides/deployment/deployment_guide を優先的にヒットします)。ページネーション対応

list_docs(limit?, offset?)

ドキュメントの一覧を返します。section 順に並び、デプロイガイド(guides/deployment)が最前面になります。各ドキュメントには title / description / preview / section が含まれます

get_doc(doc_id)

指定したドキュメントの完全な本文(プレーンテキスト)を取得します。doc_id は guides/deployment/deployment_guide のような形式です

リソース

リソース

説明

mofox://docs

全量インデックス(llms.json。各ドキュメントのタイトル / 概要 / 本文プレビューを含みます)

mofox://docs/{id}

単一ドキュメントの完全な内容(例:mofox://docs/guides/configuration/bot_config_guide)

Related MCP server: mdbook-mcp-server

クイックスタート

方法1:npx で直接実行(推奨)

npx -y mofox-docs-mcp

方法2:クローン / ローカルビルド

npm install
npm run build
npm start

Neo-MoFox への接続

config/mcp.toml を編集します:

[mcp.stdio_servers.mofox-docs]
command = "npx"
args = ["-y", "mofox-docs-mcp"]
instructions = "提供 Neo-MoFox 官方文档的搜索与阅读功能,当用户询问框架功能、配置、插件开发、API 用法时使用"

Neo-MoFox を再起動すると有効になります。

その他の MCP クライアント

{
  "mcpServers": {
    "mofox-docs": {
      "command": "npx",
      "args": ["-y", "mofox-docs-mcp"]
    }
  }
}

設定オプション

パラメータ

説明

デフォルト値

--base-url <url>

ドキュメントサイトの URL

https://docs.mofox-sama.com

--timeout <秒>

リクエストのタイムアウト

30

--cache-ttl <秒>

インデックスキャッシュの時間(llms.json)

300

同じ名前の環境変数にも対応しています: MOFOX_DOCS_BASE_URL、MOFOX_DOCS_TIMEOUT、MOFOX_DOCS_CACHE_TTL。

開発

npm run build   # 编译到 dist/
npm start       # 运行

License

MIT

Available Tools

3 tools
get_docA

获取指定文档的完整正文(纯文本)。doc_id 形如 guides/deployment/deployment_guide,可从 search_docs / list_docs 结果的 id 字段获取。

Inputs: doc_id (required).

list_docsA

列出 Neo-MoFox 官方文档。按 section 排序,部署指南(guides/deployment)排最前,每篇含 title / description / preview / section。支持 offset 分页。

Inputs: limit, offset.

search_docsA

按关键词检索 Neo-MoFox 官方文档。查询按空白拆分为多个关键词,按「命中关键词数量」降序返回(命中全部关键词的文档排最前,至少命中一个即返回)。匹配标题 / 简介 / 正文预览 / 分类 / id / 路径。结果不含完整正文,需要全文时再用 get_doc 获取。

Inputs: query (required), limit, offset.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: search_docs finds relevant docs by keywords, list_docs provides browsable pagination, and get_doc returns complete content for a specific doc. There is no meaningful overlap between them.

    Naming Consistency5/5

    All tool names follow a clean verb_noun pattern: search_docs, list_docs, and get_doc. The slight singular/plural difference between docs and doc is natural and does not create confusion.

    Tool Count5/5

    With only three tools, the server covers the core documentation workflow of search, browse, and retrieve without redundancy. This is an appropriately minimal surface for a docs-focused server.

    Completeness5/5

    The tools form a complete documentation lifecycle: discover content through search and listing, then fetch the full text via get_doc. There are no obvious gaps, as the server's documented purpose is fully supported.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers