Pumpkin API MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pumpkin API MCP Server Search the Pumpkin API for the PlayerJoinEvent and show its documentation."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Pumpkin API MCP Server
An MCP (Model Context Protocol) server designed to help LLMs (like Claude, Cursor, Windsurf) understand, navigate, and develop plugins for the Pumpkin Minecraft Server.
This MCP server provides intelligent tools to search the Pumpkin Plugin API, read WebAssembly Interface Types (WIT) definitions, and even scaffold new Wasm plugins instantly.
π Features
Read API & WIT Files: Safely explore the
crates/pumpkin-plugin-apiandcrates/pumpkin-plugin-witdirectories.Smart Search: Regex-enabled search across the entire API and WIT codebase.
Code Block Extraction: Extract specific line ranges to prevent LLM context bloat.
Auto-Documentation Extraction: Instantly extract doc comments (
///) and public signatures from Rust/WIT files to get a quick overview of any module.Plugin Scaffolding: Generate a fully configured
wasm32-wasip1boilerplate project with a single command.
Related MCP server: MCP Docs Server
π οΈ Setup
Clone the repository (if you haven't already): Ensure you have pulled the submodules, as the WIT definitions are stored in one.
git clone --recurse-submodules https://github.com/YOUR_USERNAME/Pumpkin-MCP.git cd Pumpkin-MCPInstall Dependencies: Make sure you have Node.js installed.
npm installBuild the Server: Compile the TypeScript code to JavaScript.
npm run build
π How to Use in LLM Clients
To use this MCP server, you need to configure your LLM client to point to the built dist/index.js file.
Cursor
Go to Settings > Features > MCP.
Click + Add new MCP server.
Set the type to
command.Set the name to
pumpkin-api.Set the command to:
node /absolute/path/to/Pumpkin-MCP/dist/index.js(Make sure to replace
/absolute/path/to/with the actual path to this repository on your computer).
Claude Desktop
Edit your claude_desktop_config.json file to include:
{
"mcpServers": {
"pumpkin-api-mcp": {
"command": "node",
"args": [
"/absolute/path/to/Pumpkin-MCP/dist/index.js"
]
}
}
}π€ Available Tools for LLMs
Once configured, your LLM will automatically have access to these tools:
list_api_files: Lists all files in the API and WIT directories.read_api_file: Reads the full content of an API or WIT file.search_api_code: Searches for keywords, structs, or traits using Regex.read_code_block: Extracts specific line ranges from a file.get_module_docs: Extracts only the documentation comments and public exports from a file.scaffold_plugin: Generates a standard Pumpkin plugin boilerplate configured for WebAssembly.
π Keeping the API Updated
This repository includes a GitHub Actions workflow (.github/workflows/sync.yml) that runs daily. It automatically syncs the crates/pumpkin-plugin-api and crates/pumpkin-plugin-wit folders directly from the upstream Pumpkin repository to ensure your LLM always has the latest context.
Available Tools
6 toolsget_module_docsB
Extracts documentation comments (///) and the signatures immediately following them from a Rust or WIT file
Inputs: filePath (required).
list_api_filesB
Lists all files and directories in the Pumpkin Plugin API and WIT interface
Inputs: subdirectory.
read_api_fileC
Reads the content of a specific file in the Pumpkin Plugin API or WIT interface
Inputs: filePath (required).
read_code_blockC
Reads a specific range of lines from a file in the Pumpkin API or WIT interface
Inputs: endLine (required), filePath (required), startLine (required).
scaffold_pluginC
Generates a standard boilerplate project for a Pumpkin plugin, configured for wasm32-wasip1.
Inputs: pluginName (required), destinationDir (required).
search_api_codeB
Searches for a string or regex pattern in the Pumpkin Plugin API and WIT codebase
Inputs: query (required), isRegex.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 6 tools
Most tools have distinct purposes, but read_api_file (full file) and read_code_block (line range) overlap in function, and get_module_docs also reads file content albeit for a specific extraction. Descriptions help clarify boundaries, but an agent could still confuse these read-oriented tools.
All tools use snake_case with a verb_noun pattern, which is consistent. However, the first three tools include an 'api' prefix (list_api_files, read_api_file, search_api_code) while the remaining three do not, creating a minor inconsistency in naming convention.
Six tools is well-scoped for an API exploration and plugin scaffolding server. Each tool covers a distinct operation without redundancy, and the set feels complete without being bloated.
The tool surface covers reading, searching, extracting documentation, and scaffolding a plugin, which are core workflows. Minor gaps exist, such as no tool to validate or build a scaffolded plugin, but these are outside the primary API exploration focus.
Related MCP Connectors
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Securely search and manage workspace context files for AI agents and teams.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Tailor Platform for AI assistants: search, list and read the platform documentation.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides LLM-optimized filesystem access with intelligent file pagination for large files, lightning-fast ripgrep-powered code search with regex support, and security sandboxing to safely explore and search codebases.710 npm1MIT
- AlicenseNot gradedqualityDmaintenanceProvides direct access to local documentation files through simple search and overview tools, enabling LLMs to query project-specific markdown documentation without requiring vector databases or RAG pipelines.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to explore, search, and read codebase repositories and API specifications efficiently, with support for file searching, content search via ripgrep, and reading API specs.19 npmISC
- FlicenseNot gradedqualityDmaintenanceEnables AI models to fetch GitHub repository information, read file contents, and search local documentation.-