Model Context Protocol server for the Backstage Software Catalog

Model Context Protocol server for the Backstage Software Catalog

backstage-mcp-server•bycoderrob

A stdio MCP server that exposes Backstage Catalog discovery, validation, and mutation tools through the official Backstage Catalog client.

License: GPL-3.0•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides catalog discovery tools for entity queries, references, ancestry, facets, and source locations.
  • •Offers catalog operations including adding locations, refreshing entities, removing entities or locations, and validating descriptors.
  • •Applies runtime policies such as timeouts, caller scopes, per-principal rate limits, and tagged caching with invalidation.
  • •Uses MCP annotations to distinguish read-only, mutating, idempotent, and destructive tools.

BEST FOR

  • •Querying and discovering Backstage catalog entities through an MCP client.
  • •Validating and maintaining Backstage catalog entities and locations.
  • •Operating against a Backstage deployment with rotating bearer credentials.

ABOUT BACKSTAGE-MCP-SERVER

Model Context Protocol server for the Backstage Software Catalog is cataloged as an MCP server attributed to coderrob. A stdio MCP server that exposes Backstage Catalog discovery, validation, and mutation tools through the official Backstage Catalog client. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: GPL-3.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Model Context Protocol server for the Backstage Software Catalog are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server authenticate to Backstage?

It accepts a bearer token directly or a token file that takes precedence and is reread for every outgoing request.

How does the server communicate with MCP clients?

It runs as a stdio server, waiting for an MCP client on stdin/stdout and exchanging JSON-RPC.

上游原版 README

在 GitHub 查看同一版本原文

README.md · b124c25aa9fe · 采集于 2026-11-13 11:13:28 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Backstage MCP Server

A type-safe Model Context Protocol server for the Backstage Software Catalog, built on the published @coderrob/mcp-kernel runtime.

It exposes 32 Catalog tools over stdio, uses Backstage's official Catalog client, supports rotating bearer credentials, and ships with black-box SDK and MCP Inspector verification.

Runtime architecture from an MCP client through the published MCP Kernel dependency and Backstage integration to the Catalog API.

What you get

CapabilityImplementation
Catalog discoveryEntity queries, references, ancestry, facets, and source locations
Catalog operationsAdd locations, refresh entities, remove entities or locations, and validate descriptors
Type safetyZod schemas infer handler inputs and emit MCP-compatible JSON Schemas
Runtime policiesTimeouts, caller scopes, per-principal rate limits, tagged caching, and invalidation
Safe operationsMCP annotations distinguish read-only, mutating, idempotent, and destructive tools
Production boundaryOfficial Backstage CatalogClient, authenticated fetch, redacted stderr logging
VerificationPer-file coverage, SDK stdio smoke tests, every-tool execution, and MCP Inspector

Quick start

1. Install and build

Requirements:

  • Node.js 24.15 or newer
  • Corepack
  • A reachable Backstage backend and an accepted external-access bearer token
corepack enable
corepack yarn install --immutable
corepack yarn build

The Yarn release comes from the packageManager field in package.json; use corepack yarn so local and CI behavior stay aligned.

2. Configure Backstage

Set the backend root or the complete Catalog plugin URL and choose one credential source:

export BACKSTAGE_BASE_URL=https://backstage.example.com
export BACKSTAGE_TOKEN=your-token

For externally rotated credentials, point to a token file instead:

export BACKSTAGE_BASE_URL=https://backstage.example.com
export BACKSTAGE_TOKEN_FILE=/run/secrets/backstage-token

BACKSTAGE_TOKEN_FILE takes precedence when both variables are present and is reread for every outgoing request. Optional LOG_LEVEL=debug enables diagnostic logging. Logs always go to stderr because stdout carries MCP protocol traffic.

3. Start the stdio server

corepack yarn start

The process waits for an MCP client on stdin/stdout. For a read-only check against a real deployment, use corepack yarn test:live; see live Backstage verification.

Connect an MCP client

After building, configure a stdio client with an absolute path:

{
  "mcpServers": {
    "backstage": {
      "command": "node",
      "args": ["/absolute/path/to/backstage-mcp-server/dist/cli.cjs"],
      "env": {
        "BACKSTAGE_BASE_URL": "https://backstage.example.com",
        "BACKSTAGE_TOKEN": "your-token"
      }
    }
  }
}

After global installation, use backstage-mcp-server as the command. Do not place credentials in committed client configuration; use the client's secret or environment mechanism where available.

Tool catalog

The checked-in tools-manifest.json is generated from the runtime definitions and is the machine-readable source of truth.

CategoryTools
Entity discoveryget_entities, get_entities_by_query, get_entities_by_refs, get_entity_by_ref, get_entity_ancestors, get_entity_facets
Location discoveryget_location_by_entity, get_location_by_ref
Validationvalidate_entity
Catalog mutationadd_location, refresh_entity
Destructive mutationremove_entity_by_uid, remove_location_by_id

get_entities.filter follows Backstage's key-value model: keys in one record are AND conditions, values for one key are OR conditions, and multiple records are OR groups.

{
  "filter": {
    "kind": ["Component", "API"],
    "metadata.namespace": "default"
  }
}

This selects Components or APIs in the default namespace. The Backstage integration guide documents every tool-to-client mapping, cursor behavior, authentication, permissions, and error conversion.

How it works

  1. An MCP client launches the packaged CLI and exchanges JSON-RPC over stdio.
  2. The published MCP Kernel validates and compiles immutable feature definitions.
  3. Zod validates input before middleware, authorization, caching, rate limiting, and timeout policies run.
  4. A Backstage tool calls the typed Catalog contract from its application context.
  5. The adapter delegates HTTP behavior to the official Backstage CatalogClient and injects the bearer token at the fetch boundary.
  6. Results return as MCP text plus structured content; expected failures use stable error codes and safe details.

The published @coderrob/mcp-kernel package owns protocol registration, lifecycle, policies, transports, testing support, and protocol-safe logging. This repository owns only the Backstage application and Catalog integration. See the current architecture overview for the dependency boundary.

MCP Kernel dependency

Generic server authoring, lifecycle, policies, transports, results, testing support, and logging are documented in the @coderrob/mcp-kernel repository. This package re-exports the kernel API for compatibility, but new generic consumers should install and import @coderrob/mcp-kernel directly.

To contribute a Catalog capability, follow Adding a Backstage MCP tool.

Verification

Verification layers from static quality checks through packaged black-box MCP Inspector validation.

Run the normal contributor gate:

corepack yarn lint
corepack yarn typecheck
corepack yarn architecture:check
corepack yarn knip
corepack yarn test
corepack yarn test:shell

For MCP, tool, adapter, or packaging changes, also run:

corepack yarn test:mcp
corepack yarn manifest:check

test:mcp runs contract tests, builds the distribution, launches dist/cli.cjs over stdio with the official SDK client, invokes every registered tool against a deterministic authenticated Catalog stub, and performs an independent MCP Inspector check. It does not bypass the server with direct handler or HTTP calls.

See Repository tooling for the purpose and side effects of every command and MCP end-to-end testing for the exact black-box boundary.

Documentation

Choose a path from the documentation hub:

License

GPL-3.0. See LICENSE.

Curated knowledge and skills

The Backstage knowledge base maintains classified articles, named source citations and schema.org metadata. Repository skills in .agents/skills support catalog lookups, entity maintenance and MCP development.

The 19 contextual lookup tools cover names, System and Domain contents, Groups, ownership, dependencies, APIs, annotations and orphaned entities. See lookup contracts and examples, including pagination, ambiguity and work bounds.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Model Context Protocol server for the Backstage Software Catalog from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/backstage-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools