Skip to main content
Glama

backstage-mcp

CI License: MIT Node.js 20+

Bring your Backstage developer portal to AI β€” two ways:

  • πŸ€– Backstage Assistant plugins β€” an in-portal AI chat widget (frontend + backend Backstage plugins) with multi-provider LLM support, a UI model picker, and the full catalog / scaffolder / TechDocs toolset.

  • πŸ”Œ Standalone MCP server β€” a single ~550 KB file exposing the same Backstage tools to external MCP clients (Claude, Cursor, VS Code, Windsurf) with no changes to your Backstage instance.


πŸ€– Backstage Assistant plugins

An AI assistant embedded directly in your Backstage UI.

Package

Role

@oopsmyops/backstage-plugin-assistant

Frontend

Floating chat widget + model picker

@oopsmyops/backstage-plugin-assistant-backend

Backend

LLM orchestration + Backstage tools

Backstage Assistant chat widget

Highlights

  • Native Amazon Bedrock and Azure AI Foundry, plus any OpenAI-compatible API (no proxy), with an ordered fallback chain β€” all via the Vercel AI SDK.

  • Pick the model from the UI; the choice is remembered per browser.

  • Streaming responses, structured result cards, internal entity links, and guided scaffolder runs with an OAuth popup for VCS tokens.

Install the plugins

Published to npmjs.org as public packages β€” no token or registry config needed to install.

yarn --cwd packages/app add @oopsmyops/backstage-plugin-assistant
yarn --cwd packages/backend add @oopsmyops/backstage-plugin-assistant-backend
// packages/backend/src/index.ts
backend.add(import('@oopsmyops/backstage-plugin-assistant-backend'));

// packages/app/src/App.tsx β€” new frontend system
import assistantPlugin from '@oopsmyops/backstage-plugin-assistant';
// add `assistantPlugin` to createApp({ features: [...] })

Configure models

assistant:
  llm:
    fallback: [groq-llama]          # tried, in order, if the selected model fails
    models:
      - id: claude-bedrock
        label: Claude Sonnet (Bedrock)
        provider: bedrock
        model: anthropic.claude-sonnet-4-6
        region: us-east-1
        apiKey: ${AWS_BEARER_TOKEN_BEDROCK}   # optional; omit to use the AWS credential chain
        default: true
      - id: gpt-azure
        label: GPT-5.1 (Azure AI Foundry)
        provider: azure
        model: gpt-5.1                         # Azure deployment name
        resourceName: my-foundry-resource
        apiKey: ${AZURE_OPENAI_API_KEY}
      - id: groq-llama
        label: Llama 3.3 70B (Groq)
        provider: openai-compatible
        model: llama-3.3-70b-versatile
        baseUrl: https://api.groq.com/openai/v1
        apiKey: ${GROQ_API_KEY}

πŸ“– Full documentation: frontend plugin README Β· backend plugin README


Related MCP server: Foundry Agents MCP Server

πŸ”Œ Standalone MCP server

A single-file MCP server exposing 11 Backstage tools (catalog search, entity details, API specs, scaffolder templates + tasks, TechDocs) to any MCP client. No Backstage install required β€” it connects through Backstage's REST APIs.

# Download the latest binary and run it
curl -LO https://github.com/oopsmyops/backstage-mcp/releases/latest/download/backstage-mcp.mjs
BACKSTAGE_BASE_URL=https://your-backstage.example.com \
BACKSTAGE_TOKEN=your-token \
node backstage-mcp.mjs

Build from source instead: npm install && npm run build β†’ dist/backstage-mcp.mjs. Need a token? Use a static service-account token (recommended) or a guest token.

Connect an MCP client (Claude Desktop, Cursor, VS Code, Windsurf):

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

For remote/shared use, run with MCP_TRANSPORT=http and point clients at http://localhost:3000/mcp (health: /health).

Environment variables

Variable

Required

Default

Description

BACKSTAGE_BASE_URL

yes

β€”

Base URL of your Backstage instance

BACKSTAGE_TOKEN

yes

β€”

Bearer token for authentication

MCP_TRANSPORT

no

stdio

stdio or http

PORT

no

3000

HTTP port (when MCP_TRANSPORT=http)

HOST

no

127.0.0.1

HTTP host (when MCP_TRANSPORT=http)

CACHE_TTL_SECONDS

no

60

Entity cache TTL in seconds (0 = disabled)

REQUEST_TIMEOUT_MS

no

10000

Backstage API request timeout


Contributing

See CONTRIBUTING.md.

License

MIT

Available Tools

11 tools
check_connectionA

Verify connectivity to Backstage and validate the configured token. Returns server info, token identity (if available), and a summary of accessible resources. Run this first to confirm your setup is working.

Inputs: no named parameters.

get_api_specA

Retrieve the raw API specification (OpenAPI YAML/JSON, AsyncAPI, GraphQL schema, etc.) for a specific API entity. The spec content can be used to understand available endpoints, schemas, and authentication requirements for writing integration code.

Inputs: entityRef (required).

get_entityA

Get full details for a Backstage entity including metadata, spec, annotations, and resolved relations (APIs consumed/provided, dependencies, system membership, ownership). Use search_catalog first to find the entityRef.

Inputs: entityRef (required), includeRelations (required).

get_task_statusA

Get the execution status and progress of a Backstage scaffolder task. Poll this after run_template to monitor progress. Status will be 'processing', 'completed', 'failed', or 'cancelled'.

Inputs: taskId (required), includeLogs (required).

get_techdocsA

Retrieve the TechDocs documentation for a Backstage entity. Triggers a render sync if needed, then returns the documentation as plain text. The entity must have a 'backstage.io/techdocs-ref' annotation configured.

Inputs: entityRef (required), forceSync (required).

get_templateA

Get the full specification for a Backstage scaffolder template, including the parameters JSON Schema and lookupHints. The lookupHints array tells you which tools to call (in parallel) to fetch selectable options (groups, APIs, components) BEFORE asking the user for input. Always present fetched options as numbered lists so the user can pick rather than type. Use this BEFORE run_template.

Inputs: entityRef (required).

list_api_specsA

List API entities in the Backstage catalog, optimized for integration discovery. Returns name, type (openapi/asyncapi/graphql/grpc), owner, and description. Use get_api_spec to retrieve the full specification.

Inputs: limit (required), type, owner.

list_tasksA

List scaffolder tasks (template executions). Returns task IDs, status, template used, and who created them. Optionally filter by the user who triggered the task.

Inputs: createdBy.

list_templatesA

List available Backstage scaffolder templates for creating new services, libraries, repositories, or other resources. Returns names, descriptions, and tags. Use get_template to see the full parameter schema for a specific template.

Inputs: limit (required), tags.

run_templateA

Execute a Backstage scaffolder template with the provided parameter values. Validates inputs against the template schema before submitting. Returns a taskId for tracking progress with get_task_status. Always call get_template first to understand required parameters.

Inputs: values (required), templateRef (required), createdBy.

search_catalogA

Search the Backstage software catalog for components, APIs, systems, groups, users, and other entities. Returns a paginated list with entityRefs for follow-up calls. Use get_entity for full details on a specific result.

Inputs: limit (required), kind, tags, owner, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 11 tools

    Disambiguation4/5

    Each tool targets a distinct resource+action (catalog search vs. entity fetch vs. API spec listing vs. template lifecycle vs. task tracking vs. docs). The only mild overlaps are search_catalog vs. list_api_specs and get_entity vs. get_api_spec, but descriptions explicitly cross-reference each other and state when to use which, so an agent can choose correctly.

    Naming Consistency5/5

    All 11 tools follow a uniform snake_case verb_noun pattern (check_connection, search_catalog, get_entity, list_api_specs, get_api_spec, list_templates, get_template, run_template, list_tasks, get_task_status, get_techdocs). Verbs are used consistently for the same semantic action (list_* for collections, get_* for single retrieval, run_* for execution).

    Tool Count5/5

    Eleven tools is well within the ideal range and each one earns its place across three coherent sub-domains: catalog exploration, scaffolder templates/execution, and task monitoring, plus a setup check and docs retrieval. No obvious redundancy or filler.

    Completeness4/5

    The surface covers the core Backstage workflows end to end: connectivity check, catalog discovery, entity/API spec retrieval, template inspection, execution, task polling, and TechDocs. Minor gaps exist β€” no task log retrieval for diagnosing failed scaffolder runs, and no entity registration/location management β€” but agents can work around these for read-oriented use.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Exposes two MCP tools (discover and execute) that enable agents to query an OpenAPI schema via natural language and execute matched API operations.
      2
      -
    • A
      license
      A
      quality
      D
      maintenance
      Exposes Azure AI Foundry agents, workflows, and AI Search vector-database capabilities as MCP tools, enabling natural language interaction with agents, semantic search, and index management.
      10
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Exposes an existing RAG API as MCP tools, enabling health checks and document-based question answering with source evidence.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables LLM clients to browse and manage VCF Automation projects, catalog items, and deployments through MCP tools, including provisioning, day-2 actions, and deleting infrastructure.
      -