LLMS.txt探索服务器

一个用于探索和解析llms.txt文件的模型上下文协议服务器,帮助用户发现和分析符合llms.txt标准的网站。

  • by thedaviddias
  • JavaScript
  • 本地部署
  • 78 星标
  • 更新于
在 GitHub 查看 thedaviddias/mcp-llms-txt-explorer

使用说明

MCP LLMS.txt资源管理器

用于使用llms.txt文件浏览网站的模型上下文协议服务器。此服务器可帮助您发现和分析实现llms.txt标准的网站。

特性

资源

  • 检查网站上的llms.txt和llms-full.txt文件
  • 解析并验证llms.txt文件内容
  • 访问合规网站的结构化数据

工具

  • check_website -检查网站是否有llms.txt文件
    • 将域URL作为输入
    • 返回文件位置和验证状态
  • list_websites -列出包含llms.txt文件的已知网站
    • 返回有关合规网站的结构化数据
    • 支持按文件类型过滤(llms.txt/llms full.txt)

发展

安装依赖项:

pnpm install

构建服务器:

pnpm run build

对于自动重建的开发:

pnpm run watch

安装

通过Smithery安装

通过以下方式自动安装Claude Desktop的mcp llms txt资源管理器 史密瑟里:

npx -y @smithery/cli install @thedaviddias/mcp-llms-txt-explorer --client claude

手动安装

要使用此服务器,请执行以下操作:

# Clone the repository
git clone https://github.com/thedaviddias/mcp-llms-txt-explorer.git
cd mcp-llms-txt-explorer

# Install dependencies
pnpm install

# Build the server
pnpm run build

使用Claude Desktop进行配置

要与Claude Desktop一起使用,请添加服务器配置:

在MacOS上: ~/Library/Application Support/Claude/claude_desktop_config.json 在Windows上: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "llms-txt-explorer": {
      "command": "node",
      "args": ["/path/to/llms-txt-explorer/build/index.js"]
    }
  }
}

对于npx用法,您可以使用:

{
  "mcpServers": {
    "llms-txt-explorer": {
      "command": "npx",
      "args": ["-y", "@thedaviddias/mcp-llms-txt-explorer"]
    }
  }
}

调试

由于MCP服务器通过stdio进行通信,调试可能具有挑战性。我们建议使用 MCP检查员,可作为包脚本使用:

pnpm run inspector

检查器将提供一个URL,用于访问浏览器中的调试工具。

许可证

此项目在MIT许可证下获得许可——有关详细信息,请参阅许可证文件。