coolify-mcp CLAUDE.md

coolify-mcp CLAUDE.md is an instructions file for coding agents from jurislm/coolify-mcp. It costs 1,868 tokens per session, scanned A, original, MIT.

A repository instruction file for coding agents working on coolify-mcp, an MCP server for managing Coolify infrastructure through natural-language requests.

In plain words
What is it for?
Use it when developing or maintaining the server, including work involving Coolify servers, applications, databases, deployments, or other listed resources.
Why use it?
It explains the project, its available infrastructure operations, required commands, local startup settings, and coding conventions.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/jurislm/coolify-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/jurislm/coolify-mcp

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for coolify-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jurislm/coolify-mcp/claude-md.svg)](https://agentmods.dev/instructions/jurislm/coolify-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jurislm/coolify-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/jurislm/coolify-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,868 This file is loaded in full into every session.
When invoked 1,868 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01868 $0.01868
Opus 5 $0.00934 $0.00934
Sonnet 5 $0.00374 $0.00374
Haiku 4.5 $0.00187 $0.00187

Measured 4d ago against content hash 60fcd858ff0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coolify-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

MCP (Model Context Protocol) server for Coolify that provides 45 token-optimized tools for AI assistants to manage infrastructure through natural language. Tools cover servers, projects, environments, applications, databases, services, deployments, private keys, storages, scheduled tasks, cloud tokens, smart diagnostics, batch operations, and API control. v2.0.0 reduced token usage by 85% (from ~43,000 to ~6,600 tokens) by consolidating related operations into single tools with action parameters.

Commands

bun install          # Install dependencies
bun run build        # Build TypeScript to dist/
bun run test         # Run all tests
bun run lint         # Run ESLint
bun run format       # Run Prettier

# Run locally
COOLIFY_URL="https://your-coolify.com" COOLIFY_TOKEN="token" node dist/index.js

Architecture

File Structure Pattern

When adding new Coolify API endpoints, follow this order:

  1. src/types/coolify.ts - Add TypeScript interfaces
  2. src/lib/coolify-client.ts - Add API client method with explicit return type
  3. src/lib/mcp-server.ts - Add MCP tool definition
  4. src/tests/mcp-server.test.ts - Add mocked test

Key Files

  • src/index.ts - Entry point, starts MCP server
  • src/lib/coolify-client.ts - HTTP client wrapping Coolify REST API
  • src/lib/mcp-server.ts - MCP tool definitions and handlers
  • src/types/coolify.ts - All Coolify API type definitions
  • docs/openapi-chunks/ - OpenAPI spec chunks for reference

Context-Optimized Responses

List endpoints return summaries (uuid, name, status) not full objects. This reduces response sizes by 90-99%. Use get_* tools for full details of a single resource.

Adding New Endpoints

  1. Verify endpoint exists in docs/openapi-chunks/
  2. Add types to src/types/coolify.ts
  3. Add client method with explicit return type
  4. Add MCP tool to src/lib/mcp-server.ts
  5. Add mocked tests (required for codecov coverage)

Read the full file on GitHub · 170 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 170 lines · 1,868 tokens per session scan A 60fcd858ff0c

Subscribe to this mod's changes

coolify-mcp CLAUDE.md is an instructions file published in the GitHub repository jurislm/coolify-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 1,868 tokens to every session, about $0.0093 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.