Skip to main content

Minecraft Wiki 文档 MCP 服务器

Project description

Minecraft Document MCP

Python FastMCP License

一个基于 FastMCP 框架的 Minecraft 文档 MCP 服务器,为 AI 助手提供中文 Minecraft Wiki 文档查询功能。

功能特性

  • Wiki 在线查询 - 从中文 Minecraft Wiki 获取词条内容
  • 分类浏览 - 获取 Wiki 首页主要分类列表
  • 简介/完整内容 - 支持获取词条简介或完整内容
  • Markdown 输出 - 所有查询结果以 Markdown 格式返回
  • MCP 协议支持 - 兼容 Model Context Protocol,可集成到 Claude Desktop 等客户端

MCP 工具

工具名称 功能描述
search_wiki_intro 从 Wiki 搜索词条简介
search_wiki_full 从 Wiki 搜索词条完整内容
get_wiki_categories 获取 Wiki 首页主要分类列表

安装

环境要求

  • Python 3.12+
  • uv 包管理器(推荐)

使用 uv 安装

# 克隆仓库
git clone https://github.com/PYmili/minecraft-document-mcp.git
cd minecraft-document-common

# 安装依赖
uv sync

使用 pip 安装

# 克隆仓库
git clone https://github.com/PYmili/minecraft-document-mcp.git
cd minecraft-document-common

# 创建虚拟环境
python -m venv .venv
source .venv/bin/activate  # Linux/macOS
# .venv\Scripts\activate   # Windows

# 安装依赖
pip install beautifulsoup4 dataclasses-json fastmcp==3.1.1 lxml markdownify requests

使用方法

启动服务器

# 推荐:使用 fastmcp 运行
fastmcp run server.py

# 开发模式(支持热重载)
fastmcp dev server.py

# 或使用安装后的命令行工具
uv pip install -e .
minecraft-doc-common

配置 Claude Desktop

在 Claude Desktop 配置文件中添加:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "minecraft-document": {
      "command": "python",
      "args": ["/path/to/minecraft-document-common/server.py"]
    }
  }
}

项目结构

minecraft-document-mcp/
├── server.py                    # MCP 服务器入口(fastmcp 运行)
├── pyproject.toml               # 项目配置
└── src/
    └── mcp/
        ├── cli.py               # 命令行入口
        └── api/
            ├── WikiApi.py       # Wiki API 请求工具
            └── WikiItems.py     # 数据项定义

依赖

许可证

MIT License

相关链接

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minecraft_document_mcp-0.1.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minecraft_document_mcp-0.1.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file minecraft_document_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: minecraft_document_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for minecraft_document_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 04d55844ed7d0afa71389c7fe8b1cbb6340d6fe42ffd526fa5f3908ecfd8009a
MD5 29e33a765c2682409ffad1b9c6d2e080
BLAKE2b-256 498fe00f1f2d69e08f46f8d39d4697d760e6d52643e4a6705b9eb74984cf3dd5

See more details on using hashes here.

File details

Details for the file minecraft_document_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: minecraft_document_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for minecraft_document_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 886f6c3917655c92ccf9b266f6c6e4085c9d07d1a9b287983ff271851a789441
MD5 a88601b02390b915d5a3b2f7913d3f45
BLAKE2b-256 cf3aaea88b25e5de372f7e637c7ddfdf47568bb7dd3752abdabc19d6caa588c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page