JAI Pastebin Publisher
Uploads JustMC module JSON content to Pastebin, with configurable paste title, privacy, and expiration, and returns a raw Pastebin URL plus a /module load-url command for importing the module in-game.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
JAI Pastebin Publisher
English | Русский
A tiny, dependency-free MCP server that takes a JustMC (Creative+) module JSON produced with the @JAI skill, uploads it to Pastebin, and returns a raw URL that can be imported in-game. Please note that this is vibecoded and compatibility has only been tested only for OpenCode so far.
Zero dependencies — pure Python standard library (Python 3.8+).
Transport — stdio JSON-RPC 2.0 (Model Context Protocol).
Privacy first — the Pastebin API key is read from the environment or a git-ignored file, never hard-coded.
Tools
Tool | Purpose |
| Upload a module to Pastebin and return |
| Validate module JSON without uploading. |
| List modules cached locally in |
| Server state: modules folder, key availability, Pastebin API endpoint. |
publish_module parameters
content(required) — module JSON as text;name— paste title / file name (defaults to the moduleid/name);api_dev_key— Pastebin key (optional if set via env or file);privacy—0public,1unlisted (default),2private;expire—N(never, default),10M,1H,1D,1W,2W,1M,6M,1Y.
Related MCP server: mcp-serverman
Install
No installation step is needed — just clone the repo:
git clone https://github.com/whit3cat33/JAI-pastebin-mcp.git
cd JAI-pastebin-mcpOr just tell your AI-agent to install the MCP server for you. ;)
Pastebin API key
You need a Pastebin api_dev_key
(get one at https://pastebin.com/doc_api — "Your Unique Developer API Key" in your
account). The key is resolved in this order (first hit wins):
tool argument
api_dev_key;environment variable
JMC_PASTEBIN_KEY;file
pastebin_key.txtnext to the script;file
%USERPROFILE%\.pastebin_api_key(or~/.pastebin_api_key).
Options 2 or 3 are recommended so the key never lands in your code or shell history.
# option 3: file next to the script
cp pastebin_key.example.txt pastebin_key.txt
# then edit pastebin_key.txt and paste your keyRun
python jmc_pastebin_server.pyYou normally don't start it by hand — your MCP client spawns the process from its config. The server logs to stderr; stdout stays clean for the MCP protocol.
Connect to OpenCode
Add the server to opencode.json (or your client's MCP config) under mcp.servers:
{
"mcp": {
"servers": {
"jmc-pastebin-server": {
"type": "local",
"command": ["python", "/absolute/path/to/JAI-pastebin-mcp/jmc_pastebin_server.py"],
"environment": {
"JMC_PASTEBIN_KEY": "<your_api_dev_key>"
}
}
}
}
}environment can be omitted if the key lives in pastebin_key.txt. Restart your
client after editing the config.
Workflow with @JAI
Get a finished module JSON from the @JAI skill.
Call the
publish_moduleMCP tool withcontentset to the JSON text.The tool returns a
raw_urland a ready command:/module load-url https://pastebin.com/raw/AbCdEfGhRun that command in-game on JustMC — the server downloads and imports the module.
Example
See example/welcome.json — on player join, a welcome
message is sent to chat.
Notes
Every module is always saved locally to
modules/<name>.json— even if the Pastebin upload fails (thenstatus: "cached"with anerrorsfield).Pastebin limits paste size (free accounts ~512 KB) and request rate; very large modules may fail to upload.
The
privacy/expiresettings affect how long the link stays reachable.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Audit MCP servers for tool poisoning and shadowing. Scan a remote server by URL or paste its tools.
Remote MCP for JSON repair, hashing, formatting, IDs, dates, units, and other small tools.
Health checks for public MCP servers: status, latency, tools, and uptime.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that wraps the rustypaste API, allowing users to upload text, files, and URLs to a rustypaste instance. It supports features such as single-use links, file expiration, and URL shortening.7-
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to manage MCP server configurations, including listing, enabling, disabling, and version control.10MIT
- AlicenseAqualityDmaintenanceEnables searching the official MCP Registry for servers, inspecting details, and generating install commands directly from within an agent session.4MIT

zynohostingofficial
AlicenseNot gradedqualityBmaintenanceEnables management of ZynoHosting sites, files, and deployments through a local stdio MCP server.816 npmMIT