Minecraft Plugin Documentation MCP Server
Minecraft 插件文档 MCP 服务器
一个 MCP (Model Context Protocol) 服务器,旨在帮助 Minecraft Java 插件开发者查看常用依赖项的最新文档和版本。
功能特性
依赖项文档查询 - 获取主流 Minecraft 插件依赖项的维基、Javadoc 和 GitHub 链接
项目扫描 - 扫描 Gradle 和 Maven 项目以提取所有依赖项
版本检查 - 从 Maven Central、JitPack、Paper 仓库等处检查最新版本
完整项目分析 - 对插件工作区进行全面分析并提供建议
API 参考 - 针对复杂插件(如 EdTools、SkinsRestorer 等)提供详细的子 API 文档
Related MCP server: MCP Discord
支持的依赖项
依赖项 | 仓库 | 描述 |
Paper API | Paper | Paper Minecraft 服务器 API |
Spigot API | Spigot | Spigot Minecraft 服务器 API |
Bukkit | Spigot | Bukkit API |
LuckPerms | Maven Central | 权限插件 API |
Vault | JitPack | 经济/权限/聊天 API |
HikariCP | Maven Central | JDBC 连接池 |
Item-NBT-API | CodeMC | 无需 NMS 的 NBT 操作 |
PacketEvents | Maven Central | 数据包操作库 |
DecentHolograms | JitPack | 全息图插件 API |
CoreProtect | Maven Central | 方块记录 API |
mc-MenuAPI | JitPack | GUI/菜单 API |
PlaceholderAPI | 自定义 | 占位符系统 |
WorldEdit | 自定义 | 世界编辑 API |
WorldGuard | 自定义 | 区域保护 API |
SkinsRestorer | CodeMC | 皮肤管理 API |
EdTools API | 手动 (JAR) | 自定义附魔、区域、货币等 |
快速入门 - 在项目中使用
选项 1:全局安装(推荐)
全局安装一次 MCP,然后在任何项目中使用:
# Clone and setup (one time only)
git clone https://github.com/ValentinTarnovsky/MCP-MCP.git
cd MCP-MCP
npm install
npm run build
npm link然后在任何项目中,将此内容添加到你的 MCP 配置中:
Claude Code (.claude/mcp.json):
{
"mcpServers": {
"minecraft-plugin-docs": {
"command": "npx",
"args": ["minecraft-plugin-docs-mcp"]
}
}
}Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"minecraft-plugin-docs": {
"command": "npx",
"args": ["minecraft-plugin-docs-mcp"]
}
}
}选项 2:直接路径
如果你不想使用 npm link:
{
"mcpServers": {
"minecraft-plugin-docs": {
"command": "node",
"args": ["C:\\path\\to\\MCP-MCP\\dist\\index.js"]
}
}
}使用示例
配置完成后,你可以向 Claude 询问如下内容:
获取依赖项文档
"Get documentation for paper-api"
"Look up luckperms docs"
"What's the Maven coordinate for hikaricp?"
"Show me EdTools API reference"
"How do I use SkinsRestorer API?"扫描你的项目
"Scan dependencies in my project"
"What dependencies does this plugin use?"检查更新
"Check for updates in this project"
"What's the latest version of paper-api?"
"Are my dependencies up to date?"完整分析
"Analyze my plugin workspace"
"Full dependency report"工具参考
get_dependency_docs
获取特定依赖项的文档。
参数 | 必需 | 描述 |
| 是 | 依赖项名称(例如 "paper-api", "edtools") |
| 否 | 是否获取最新版本(默认:true) |
返回: 维基 URL、Javadoc、GitHub、Maven 坐标、快速入门代码片段以及可用的 API 参考。
scan_project_dependencies
扫描项目目录以获取所有依赖项。
参数 | 必需 | 描述 |
| 是 | 项目目录路径 |
check_latest_versions
检查依赖项的最新版本。
参数 | 必需 | 描述 |
| 否 | 扫描当前版本的路径 |
| 否 | 要检查的特定依赖项列表 |
| 否 | 检查所有已知依赖项 |
analyze_plugin_project
包含建议的全面项目分析。
参数 | 必需 | 描述 |
| 否 | 要分析的路径 |
| 否 | 是否检查更新(默认:true) |
添加自定义依赖项
编辑 src/registry/dependencies.ts:
标准 Maven 依赖项
'my-plugin-api': {
name: 'My Plugin API',
description: 'Description here',
documentation: {
wiki: 'https://...',
javadocs: 'https://...',
github: 'https://github.com/...',
},
maven: {
groupId: 'com.example',
artifactId: 'my-plugin-api',
repository: 'maven-central', // or 'jitpack', 'paper', 'codemc', 'custom'
repositoryUrl: 'https://...', // required for 'custom' repos
},
aliases: ['myplugin', 'my-plugin'],
},手动 JAR 依赖项(无 Maven 仓库)
'local-plugin-api': {
name: 'Local Plugin API',
description: 'A plugin that distributes JAR manually',
documentation: {
wiki: 'https://...',
github: 'https://...',
downloadUrl: 'https://download-link...', // Where to get the JAR
},
maven: {
groupId: 'com.example',
artifactId: 'LocalPlugin-API',
repository: 'manual', // Special type for local JARs
},
aliases: ['localplugin'],
// Optional: Document sub-APIs
apiReference: {
mainClass: 'LocalPluginAPI',
importPackage: 'com.example.api',
subApis: [
{
name: 'FeatureAPI',
getter: 'getFeatureAPI()',
description: 'Manage features',
methods: ['doSomething()', 'getSomething() -> String'],
},
],
},
},添加后,重新构建:npm run build
开发
项目结构
MCP-MCP/
├── src/
│ ├── index.ts # Main server entry point
│ ├── registry/
│ │ └── dependencies.ts # Dependency information registry
│ ├── parsers/
│ │ ├── gradle.ts # Gradle build file parser
│ │ └── maven.ts # Maven POM parser
│ ├── tools/
│ │ ├── getDependencyDocs.ts
│ │ ├── scanProjectDependencies.ts
│ │ ├── checkLatestVersions.ts
│ │ └── analyzePluginProject.ts
│ └── utils/
│ ├── cache.ts # Caching utilities
│ └── versionFetcher.ts # Version fetching from repos
├── dist/ # Compiled output
├── package.json
├── tsconfig.json
└── README.md命令
npm install # Install dependencies
npm run build # Compile TypeScript
npm run dev # Watch mode for development
npm run clean # Remove dist/
npm link # Make available globally via npx测试
# Run the server manually
node dist/index.js
# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js故障排除
服务器无法启动
确保已安装 Node.js 18+:
node --version检查构建是否完成:
npm run build验证
dist/index.js是否存在
找不到依赖项
检查依赖项名称的拼写
尝试使用别名(例如 "paper" 而不是 "paper-api")
使用 Maven 坐标(例如 "io.papermc.paper:paper-api")
找不到 npx 命令
在 MCP-MCP 目录中运行
npm link使用
npm list -g minecraft-plugin-docs-mcp进行验证
许可证
MIT
贡献
Fork 本仓库
创建功能分支
添加你的更改
提交 Pull Request
致谢
Model Context Protocol - MCP 规范
PaperMC - Paper Minecraft 服务器
SpigotMC - Spigot Minecraft 服务器
Available Tools
4 toolsanalyze_plugin_projectB
Perform a comprehensive analysis of a Minecraft plugin project or workspace. Scans all subprojects, extracts dependencies, checks for updates, and provides recommendations.
Inputs: project_path, check_versions.
check_latest_versionsA
Check for the latest versions of Minecraft plugin dependencies. Can check all known dependencies or compare against project's current versions.
Inputs: project_path, dependencies, check_all.
get_dependency_docsA
Get documentation URLs, Maven coordinates, and latest version for a Minecraft plugin dependency. Returns wiki, javadocs, GitHub links, and quick-start code snippets.
Inputs: dependency (required), fetch_version.
scan_project_dependenciesA
Scan a Minecraft plugin project directory and extract all dependencies from build.gradle, build.gradle.kts, and pom.xml files. Returns a structured list of dependencies with version info.
Inputs: project_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools have mostly distinct purposes with clear boundaries: analyze_plugin_project focuses on comprehensive project analysis, check_latest_versions handles version checking, get_dependency_docs retrieves documentation, and scan_project_dependencies extracts dependency lists. However, analyze_plugin_project and scan_project_dependencies have some overlap in scanning dependencies, which could cause minor confusion.
All tool names follow a consistent verb_noun pattern with snake_case throughout: analyze_plugin_project, check_latest_versions, get_dependency_docs, and scan_project_dependencies. The naming is predictable and readable without any deviations or mixed conventions.
With 4 tools, the count is reasonable for a server focused on Minecraft plugin documentation and dependency management. It covers key areas like analysis, version checking, documentation retrieval, and dependency scanning, though it might feel slightly thin for broader plugin development workflows.
The tool set covers core aspects of dependency management and documentation for Minecraft plugins, but there are notable gaps. It lacks tools for creating or updating dependencies, managing plugin configurations, or integrating with development environments, which could limit agent workflows in more complex scenarios.
Related MCP Connectors
Official Duck Framework MCP server for AI-assisted development and project scaffolding.
MCP server for developer documentation, generated by doc2mcp.
MCP Apps that show UI in your chat. Every tool in one server.
MCP registry & directory: search, find & install 31k+ MCP servers & tools. Catalog and marketplace.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server designed for developers to build and manage Minestom-based Minecraft servers by inspecting project environments, build configurations, and API documentation. It enables users to plan features, review design patterns, and discover libraries within the Minestom ecosystem.94 npm5Apache 2.0
- AlicenseNot gradedqualityCmaintenanceThe most complete open-source MCP server for Discord — 80+ tools, dual-mode: integrated (plugin) or standalone36 npm15MIT
- AlicenseNot gradedqualityCmaintenanceDependency Updater AI - MCP server providing AI-powered tools and automation by MEOK AI Labs7 npm32 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for EndstoneMC development, enabling module information queries, code search, plugin template generation, event handling guidance, and development tutorials through natural language.2MIT