io.github.labelgrid/labelgrid-mcp
Official LabelGrid MCP server — manage your music catalog, releases, analytics and distribution.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
@labelgrid/mcpclaude mcp add labelgrid-mcp -e 'LABELGRID_API_TOKEN=<your labelgrid_api_token>' -e 'LABELGRID_API_URL=<LABELGRID_API_URL>' -e 'LABELGRID_ENABLE_WRITES=<LABELGRID_ENABLE_WRITES>' -e 'LABELGRID_ENABLE_FULL_WRITES=<LABELGRID_ENABLE_FULL_WRITES>' -e 'LABELGRID_FULL_WRITES_ACK=<LABELGRID_FULL_WRITES_ACK>' -e 'LABELGRID_TOOLSETS=<LABELGRID_TOOLSETS>' -e 'LABELGRID_READ_ONLY=<LABELGRID_READ_ONLY>' -- npx -y @labelgrid/mcp@0.4.0
{
"mcpServers": {
"labelgrid-mcp": {
"command": "npx",
"args": [
"-y",
"@labelgrid/mcp@0.4.0"
],
"env": {
"LABELGRID_API_TOKEN": "<your labelgrid_api_token>",
"LABELGRID_API_URL": "<LABELGRID_API_URL>",
"LABELGRID_ENABLE_WRITES": "<LABELGRID_ENABLE_WRITES>",
"LABELGRID_ENABLE_FULL_WRITES": "<LABELGRID_ENABLE_FULL_WRITES>",
"LABELGRID_FULL_WRITES_ACK": "<LABELGRID_FULL_WRITES_ACK>",
"LABELGRID_TOOLSETS": "<LABELGRID_TOOLSETS>",
"LABELGRID_READ_ONLY": "<LABELGRID_READ_ONLY>"
}
}
}
}
متغيرات البيئة
LABELGRID_API_TOKENسري Your LabelGrid API token. Create one in your dashboard under Profile → API Tokens. Without it the server starts in setup mode and walks you through creating one.LABELGRID_API_URLOverride the API base URL. Defaults to the production API.LABELGRID_ENABLE_WRITESEnable safe writes (create/update drafts, labels, artists, and similar). Enabled by default; set to false for read-only.LABELGRID_ENABLE_FULL_WRITESEnable full writes (distribution, takedowns, immutable uploads). Disabled by default; also requires LABELGRID_FULL_WRITES_ACK.LABELGRID_FULL_WRITES_ACKMust equal the exact acknowledgment sentence (see the README safety section) to arm full writes.LABELGRID_TOOLSETSComma-separated subset of toolsets to expose (account, reference, catalog, releases, insights, finance, webhooks, distribution; pre-0.3.0 names are accepted as aliases). Defaults to all except webhooks, which must be named explicitly to enable.LABELGRID_READ_ONLYForce reads only; overrides both write flags. Defaults to false.
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
المحتويات
LabelGrid MCP — workspace
The official LabelGrid tooling for the LabelGrid public API, organised as an npm workspace.
Looking for the MCP server docs? They live in
packages/mcp/README.md — installation for Claude Desktop / Cursor /
any MCP client, the full tool reference, safety gating, and configuration.
Packages
| Package | What it is |
|---|---|
@labelgrid/mcp | The MCP server — 30 consolidated tools over the LabelGrid public API. Published to npm; also ships as the labelgrid.mcpb one-click bundle for Claude Desktop. |
@labelgrid/cli | The labelgrid command-line tool — the same API surface for terminals and scripts: catalog, releases, files, analytics, royalties, webhooks, and distribution, with --json output for pipelines. |
@labelgrid/core | The shared API client: HTTP transport with structured errors, presigned-URL uploads, content-type allowlists, the catalog-entity registry, and redacting logging. Used by every LabelGrid tool built on the public API. |
Command-line tool
Full docs (auth setup, every command group, scripting, safety model) live in
packages/cli/README.md. Quickstart:
npm install -g @labelgrid/cli # Node 20+; installs the `labelgrid` command
export LABELGRID_API_TOKEN=... # or run `labelgrid auth login`
labelgrid auth whoami # verify the token
labelgrid catalog search --type release --json | jq '.data[].id'
Agent skill
skills/labelgrid-release/SKILL.md is an agent
skill for the full release lifecycle — draft a release and its tracks, upload audio and
artwork, validate, review, distribute, and track delivery — with the exact MCP tool and
CLI command for each step and guidance on which vehicle fits. Point an agent at the file,
or drop it into your assistant's skills directory, to teach it the end-to-end LabelGrid
release flow.
Layout & build arrangement
- The root
package.jsonis a private workspaces manifest; its scripts fan out to the packages (npm run buildbuilds@labelgrid/corefirst, then@labelgrid/mcpand@labelgrid/cli;npm testruns each package's suite). Contributors work from the repo root:packages/coreis the shared client,packages/mcpthe MCP server,packages/clithe command-line tool — the two products are thin adapters over core. - Each package has its own
tsconfig.jsonextending the sharedtsconfig.base.json(no TypeScript project references — the explicit root build chain keeps ordering correct and simple).@labelgrid/mcpimports@labelgrid/corethrough the workspace link and compiles against its built declarations. - Unit tests run per package via each package's
vitest.config.ts. The MCP package aliases@labelgrid/coreto the sibling package's TypeScript source, so running tests never requires a prior core build. - Repo-wide checks live in
scripts/and run from the root:npm run lint,npm run leak-guard,npm run check-coverage,npm run gen-docs,npm run measure-tokens.
Development
npm ci # install the whole workspace
npm run build # build core, then mcp and cli
npm test # unit suites for every package
npm run lint # biome over the repo
The MCP server binary after a build: node packages/mcp/dist/index.js (or npm start).
The CLI binary after a build: node packages/cli/dist/index.js.
License
الأسئلة الشائعة
ما هو io.github.labelgrid/labelgrid-mcp؟
Official LabelGrid MCP server — manage your music catalog, releases, analytics and distribution.
كيف أثبّت io.github.labelgrid/labelgrid-mcp؟
يعمل على جهازك. في Claude Code: claude mcp add labelgrid-mcp -e 'LABELGRID_API_TOKEN=<your labelgrid_api_token>' -e 'LABELGRID_API_URL=<LABELGRID_API_URL>' -e 'LABELGRID_ENABLE_WRITES=<LABELGRID_ENABLE_WRITES>' -e 'LABELGRID_ENABLE_FULL_WRITES=<LABELGRID_ENABLE_FULL_WRITES>' -e 'LABELGRID_FULL_WRITES_ACK=<LABELGRID_FULL_WRITES_ACK>' -e 'LABELGRID_TOOLSETS=<LABELGRID_TOOLSETS>' -e 'LABELGRID_READ_ONLY=<LABELGRID_READ_ONLY>' -- npx -y @labelgrid/mcp@0.4.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج io.github.labelgrid/labelgrid-mcp إلى مفتاح API؟
نعم. يتطلب LABELGRID_API_TOKEN، وتضبطها في إعداداته.
هل io.github.labelgrid/labelgrid-mcp مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون io.github.labelgrid/labelgrid-mcp؟
ينشره labelgrid. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.