npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mexl/backstage-plugin-catalog-backend-module-mcp

v1.0.8

Published

Backstage catalog backend module for MCP (Model Context Protocol) entities

Readme

NPM Version License


Features

  • Comprehensive support for MCP (Model Context Protocol) entities as a native kind in Backstage
  • Configuration validation for MCP entities
  • Automatic modeling of relationships (dependencies, ownership, API provision)
  • Multi-transport: stdio, SSE, WebSocket, HTTP
  • Multiple runtimes supported: Node.js, Python, Go, C#, Rust, Java
  • Automatic search integration in Backstage
  • Real-world, production-ready example YAMLs included

New entity type in backstage

Getting Started

1. Install the Backend Plugin

yarn --cwd packages/backend add @mexl/backstage-plugin-catalog-backend-module-mcp

2. Register the MCP Backend Module

In your packages/backend/src/index.ts:

import { createBackend } from '@backstage/backend-defaults';

const backend = createBackend();

backend.add(import('@backstage/plugin-app-backend'));
backend.add(import('@backstage/plugin-proxy-backend'));
backend.add(import('@backstage/plugin-scaffolder-backend'));
backend.add(import('@backstage/plugin-techdocs-backend'));

// Add MCP catalog module
backend.add(import('@mexl/backstage-plugin-catalog-backend-module-mcp'));

backend.start();

Note: Requires Backstage version 1.0.0 or higher.

3. Configure MCP Entity Support

In app-config.yaml, add MCP to your allowed kinds and catalog locations:

catalog:
  rules:
    - allow: [Component, System, API, Resource, Location, MCP]  # Add MCP here
  locations:
    - type: file
      target: ../../catalog-info/mcp-entities.yaml
      rules:
        - allow: [MCP]

Note: This backend plugin provides the MCP entity support and catalog integration. To visualize MCP entities with rich UI components, you'll also need to install the frontend plugin.

Test it

Define Your First MCP Entity

Create catalog-info/mcp-entities.yaml:

apiVersion: backstage.io/v1alpha1
kind: MCP
metadata:
  name: my-first-mcp
  description: "My first MCP server for file operations"
spec:
  transport: stdio
  runtime: node
  type: file-processor
  lifecycle: experimental
  owner: my-team
  capabilities:
    tools: ["read_file", "write_file", "list_files"]
  configuration:
    command: "npx"
    args: ["-y", "@my-org/file-mcp-server"]
    timeout: 30000

Install Frontend Plugin for Visualization

Important: While this backend plugin enables MCP entities in your catalog, you'll need the frontend plugin to visualize them with enhanced UI cards:

yarn --cwd packages/app add @mexl/backstage-plugin-mcp-frontend

See the frontend plugin documentation for complete setup instructions.

Restart Backstage

yarn dev

Verify Installation

  • Visit your Backstage instance, open Catalog
  • Filter by Kind = MCP
  • You should see your MCP entity listed
  • If you've installed the frontend plugin, clicking on an MCP entity will show rich UI cards with capabilities, configuration, and interactive features

Example: MCP Entity Schema

MCP entities use this schema:

apiVersion: backstage.io/v1alpha1
kind: MCP
metadata:
  name: my-mcp-server
  description: "Description of your MCP server"
spec:
  transport: stdio | sse | websocket | http
  runtime: node | python | go | csharp | rust | java
  type: data-connector | tool-provider | workflow-automation | api-integration | file-processor
  lifecycle: experimental | production | deprecated
  owner: team-name
  system: system-name
  capabilities:
    tools: ["tool1", "tool2"]
    resources: ["resource1", "resource2"]
    prompts: ["prompt1", "prompt2"]
  configuration:
    command: "npx"
    args: ["-y", "@my/mcp-server"]
    url: "https://my-server.com/mcp"
    timeout: 30000
    env:
      - name: "API_KEY"
        valueFrom: "secret"
  authentication:
    type: oauth2 | api-key | bearer | basic | none
    provider: "oauth-provider"
    config:
      scopes: ["read", "write"]
  dependsOn: ["api:weather-api", "database"]
  consumedBy: ["component:my-app"]

Example: Example MCP Entity YAMLs

# Basic stdio MCP Server
apiVersion: backstage.io/v1alpha1
kind: MCP
metadata:
  name: simple-file-mcp
  description: "Simple file operations MCP server"
spec:
  transport: stdio
  runtime: node
  type: file-processor
  lifecycle: production
  owner: platform-team
  capabilities:
    tools: ["read_file", "write_file", "list_files"]
  configuration:
    command: "npx"
    args: ["-y", "@my-org/file-mcp"]
    timeout: 30000
# Remote HTTP MCP Server
apiVersion: backstage.io/v1alpha1
kind: MCP
metadata:
  name: api-integration-mcp
  description: "API integration MCP server"
spec:
  transport: http
  runtime: python
  type: api-integration
  lifecycle: production
  owner: integration-team
  capabilities:
    tools: ["call_api", "transform_data"]
    resources: ["api_schemas", "response_cache"]
  configuration:
    url: "https://api-mcp.company.com/v1"
    timeout: 45000
  authentication:
    type: oauth2
    provider: "company-sso"
  dependsOn: ["api:external-service"]

See the examples/ directory for more sample configurations.


Complete Setup

For a complete MCP implementation in Backstage, you'll need:

  1. This backend plugin - Provides MCP entity support and catalog integration
  2. Frontend plugin - Adds rich UI cards and visualization for MCP entities

Both plugins work together to provide a comprehensive MCP experience in your Backstage instance.

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Ensure all tests pass
  5. Submit a pull request

License

Apache License 2.0

Related Links