Libraries
MCP server

MCP server

@truetick/mcp exposes the TrueTick API as Model Context Protocol tools, so an LLM agent (Claude Desktop and other MCP clients) can manage Minecraft servers in natural language. It's the same per-account, scope-gated API surface — just shaped as callable tools.

Setup

1. Get a scoped key

Create a ttk_ key in Dashboard → API keys (opens in a new tab) with the scopes the agent needs (e.g. servers:read, servers:write, console). See Authentication.

2. Configure your MCP client

Add the server to your client config (Claude Desktop's claude_desktop_config.json shown):

{
  "mcpServers": {
    "truetick": {
      "command": "npx",
      "args": ["-y", "@truetick/mcp"],
      "env": {
        "TRUETICK_API_KEY": "ttk_your_key_here"
      }
    }
  }
}

TRUETICK_API_KEY is required; TRUETICK_API_URL is optional (defaults to https://api.truetick.gg). Restart the client to load the tools.

The MCP server inherits the key's scopes. A read-only key produces a read-only agent — tool calls that need a missing scope fail with a permission error. Scope the key to the least the agent needs.

Tool catalog

Account & wallet

ToolDescription
whoamiShow the account the key is bound to
list_serversList your servers
get_walletWallet balance

Server lifecycle

ToolArgsDescription
create_servername, ramMb, type?, version?, region?, plan?Create a server
get_serverserverIdServer details
start_serverserverIdStart (wake) a server
stop_serverserverIdStop a server
restart_serverserverIdRestart a server
delete_serverserverIdDestructive — delete a server and its data
update_server_versionserverId, type, versionChange core/version (stopped only)
set_server_propertiesserverId, properties, idleTimeoutMinutes?Patch server.properties + idle timeout
set_server_motdserverId, motdSet the MOTD

Console & metrics

ToolArgsDescription
run_commandserverId, commandRun an RCON command
get_server_metricsserverIdLive TPS / MSPT / player metrics
get_recent_logsserver_id, tail?Recent container log lines (snapshot)

Files

ToolArgsDescription
list_filesserverId, pathList a directory
read_fileserverId, pathRead a file
write_fileserverId, path, contentWrite a file (text)
delete_fileserverId, pathDestructive — delete a file

Backups

ToolArgsDescription
create_backupserverIdCreate an on-demand backup
list_backupsserverIdList backups
restore_backupserverId, backupIdDestructive — restore (stopped only, overwrites data)

Mods & templates

ToolArgsDescription
list_modsserverIdList installed mods
add_modserverId, source, projectId, version?Add a mod from Modrinth/CurseForge
remove_modserverId, source, projectIdRemove a mod
list_templatesList server templates
create_server_from_templatetemplateId, name, ramMb?, region?, version?, plan?Create from a template

Example prompts

Once configured, ask your agent things like:

List my Minecraft servers and their states.

Create a 4 GB Paper 1.21.1 server called "test", start it, then show me its TPS.

Add Sodium from Modrinth to my "smp" server.

Take a backup of "smp", then show me the last 50 log lines.

⚠️

Tools marked Destructive (delete_server, delete_file, restore_backup) permanently remove or overwrite data. Review what the agent intends before approving those calls.

Prefer to wire the API into your own agent loop instead of MCP? See Programmatic control for agents and the SDK.