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

MCP Spark Documentation Server

MCP Server

一个基于MCP协议的Apache Spark文档搜索与检索服务器,为AI助手提供直接访问Spark文档的能力。

工具数

2

提示词数

0

GitHub Stars

0

资源数

0
文档处理开发工具PythonClaudeClaude

安装说明

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

作者 / 组织

martoc

提供方

martoc

最后核验

2026/5/17 20:22

运行时

Python

快速接入

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

命令预览

uv run spark-docs-index index

详细介绍

![License: MIT](https://opensource.org/licenses/MIT) ![Python 3.12](https://www.python.org/downloads/) ![MCP](https://modelcontextprotocol.io/)

MCP Spark文档服务器

MCP(模型上下文协议)服务器,为以下对象提供搜索和检索工具 Apache Spark 文档。该服务器使Claude等AI助手能够直接搜索和阅读Spark文档。

特性

  • 全文搜索 使用SQLite FTS5进行BM25排名和波特词干分析
  • 分段过滤 按文档类别缩小搜索结果范围
  • 稀疏结账 用于从apache/spark中高效克隆仅doc目录
  • Docker支持 用于跨项目的可移植部署
  • STDIO传输 用于无缝MCP客户端集成

快速开始

使用Docker(推荐)

# Build the Docker image (includes pre-indexed documentation)
make docker-build

# Test the server
make docker-run

利用紫外线(地方发展)

# Initialise the environment
make init

# Build the documentation index
make index

# Run the server
make run

配置

克劳德代码/克劳德桌面

添加到您的 .mcp.json 或全局设置:

{
  "mcpServers": {
    "spark-documentation": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "martoc/mcp-spark-documentation:latest"]
    }
  }
}

对于本地构建的Docker镜像:

{
  "mcpServers": {
    "spark-documentation": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp-spark-documentation"]
    }
  }
}

对于没有Docker的本地开发:

{
  "mcpServers": {
    "spark-documentation": {
      "command": "uv",
      "args": ["run", "mcp-spark-documentation"],
      "cwd": "/path/to/mcp-spark-documentation"
    }
  }
}

MCP工具

工具说明
search_documentation通过关键字查询搜索Spark文档,可选部分过滤
read_documentation检索特定文档页面的完整内容

搜索文档

使用带有词干支持的全文搜索搜索Apache Spark文档。

参数类型必填默认说明
querystring-搜索词(支持词干)
sectionstring按节筛选(例如,sql ref、流式传输、mllib)
limitinteger10最大结果(1-50)

常见部分: sql-ref, api, streaming, mllib, graphx, structured-streaming, configuration, tuning

read_文档

检索文档页面的完整内容。

参数类型必填说明
pathstring文档的相对路径(来自搜索结果)

CLI命令

# Build/rebuild the documentation index
uv run spark-docs-index index
uv run spark-docs-index index --rebuild
uv run spark-docs-index index --branch master

# Show index statistics
uv run spark-docs-index stats

发展

make init       # Initialise development environment
make build      # Run full build (lint, typecheck, test)
make test       # Run tests with coverage
make format     # Format code
make lint       # Run linter
make typecheck  # Run type checker

文档

许可证

该项目根据麻省理工学院许可证获得许可-请参阅 许可证 文件以获取详细信息。

目录标签

目录标签

文档处理开发工具PythonClaude文档搜索本地部署全文检索AI集成Spark工具开发者工具

支持客户端

Claude

接入字段

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

stdio

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

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

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

0

权限和风险

stdionone部署方式未说明

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

安装前确认

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

来源信息

继续浏览同类 MCP