Token导航 LogoToken导航TokenDH.com
marten MCP logo
搜索检索未说明官方级别未说明来源级核验

marten MCP

MCP Server

Marten Docs MCP Server是一个本地文档检索服务,用于快速检索Marten文档,支持渐进式细化搜索和特定部分读取。

工具数

8

提示词数

0

GitHub Stars

0

资源数

0
文档检索TypeScript搜索工具

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

stijnVanHorenbeek

提供方

stijnVanHorenbeek

最后核验

2026/5/17 20:23

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Marten Docs MCP服务器

本地MCP服务器,用于集中检索Marten文档。

它缓存 https://martendb.io/llms-full.txt,构建一个局部索引,并公开一个狭窄的检索表面,以便代理首先搜索,然后逐渐缩小到特定的部分。

快速安装

macOS/Linux

# Install latest release
curl -fsSL https://raw.githubusercontent.com/stijnVanHorenbeek/marten_mcp/master/scripts/quickinstall.sh | sh

# Print a Copilot-compatible config snippet
curl -fsSL https://raw.githubusercontent.com/stijnVanHorenbeek/marten_mcp/master/scripts/quickinstall.sh | sh -s -- --client copilot

Windows PowerShell

# Install latest release
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/stijnVanHorenbeek/marten_mcp/master/scripts/quickinstall.ps1)))

# Print a Copilot-compatible config snippet
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/stijnVanHorenbeek/marten_mcp/master/scripts/quickinstall.ps1))) -Client copilot

SKILL.md示例

示例 技能.md 包括

MCP配置示例

开源代码

{
  "mcp": {
    "marten-docs": {
      "type": "local",
      "command": ["marten-docs-mcp"],
      "environment": {
        "MARTEN_MCP_CACHE_DIR": "~/.cache/marten-docs-mcp",
        "MARTEN_MCP_STORAGE_MODE": "auto",
        "MARTEN_MCP_SQLITE_PATH": "~/.cache/marten-docs-mcp/cache.db"
      }
    }
  }
}

GitHub Copilot 聊天助手

{
  "mcpServers": {
    "marten-docs": {
      "type": "local",
      "command": "marten-docs-mcp",
      "args": [],
      "env": {
        "MARTEN_MCP_CACHE_DIR": "~/.cache/marten-docs-mcp",
        "MARTEN_MCP_STORAGE_MODE": "auto",
        "MARTEN_MCP_SQLITE_PATH": "~/.cache/marten-docs-mcp/cache.db"
      },
      "tools": ["*"]
    }
  }
}

MCP工具

  • search_docs(query, limit?, offset?)
  • search_within_page(path, query, limit?, offset?)
  • list_headings(path)
  • read_section(id, segmentIndex?, offset?, maxChars?) (返回一个本地段加上压缩 neighbors.before/after 参考文献)
  • read_context(id, before?, after?) (仅限附近参考文献)
  • list_pages(prefix?, limit?) (仅在搜索不足时发现)
  • get_status()
  • refresh_docs(force?)

推荐检索流程

  1. search_docs(...)
  2. 窄与 list_headings(...)search_within_page(...)
  3. 阅读一个区块 read_section(...)
  4. 使用 read_context(...) 仅供附近参考

宽页面转储故意不受支持。

1. search_docs(query="aggregate projections", limit=3)
2. search_within_page(path="/events/projections/aggregate-projections.md", query="lifecycle", limit=3)
3. read_section(id="", offset=0, maxChars=1200)
4. read_context(id="", before=1, after=1)
5. repeat read_section(..., offset=) while hasMore=true

配套文件

目录标签

目录标签

文档检索TypeScript搜索工具本地部署本地索引Marten文档

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

8

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP