MCP ExplorerExplorer

Mcp Backstage Example

@evanshortisson a year ago
3 MIT
FreeCommunity
AI Systems
A sample MCP Server and Agent that uses it to pull data from a Backstage instanace

Overview

What is Mcp Backstage Example

mcp-backstage-example is a sample MCP Server and Agent designed to pull data from a Backstage instance using the Model Context Protocol (MCP). It demonstrates how LLMs can communicate with Backstage through a structured protocol.

Use cases

Use cases include automating data retrieval from Backstage for LLMs, creating interactive applications that leverage Backstage data, and developing custom agents that can communicate with Backstage instances.

How to use

To use mcp-backstage-example, configure your Backstage instance for static token-based access, set up the MCP server by installing dependencies and configuring environment variables, and then run both the MCP server and the Agent in separate terminals.

Key features

Key features include the ability to enable communication between LLMs and Backstage, support for token-based authentication, and a sample Agent built with the Bee Agent Framework to demonstrate interaction with the MCP server.

Where to use

mcp-backstage-example can be used in software development environments, particularly in projects that involve integrating AI models with Backstage for enhanced data management and retrieval.

Content

Bee Agent & Model Context Protocol with Backstage

This repository demonstrates how to create a Model Context Protocol (MCP)
server that provides tools that LLMs can use to communicate with a Backstage
instance. A sample Agent, built using the Bee Agent Framework,
is included to demonstrate how to interact with the MCP server.

Run the Demo

Configure Backstage

Enable static, token-based, access to Backstage. This allows a client to
interact with the HTTP API using the token in an authorization header.

appConfig:
  backend:
    auth:
      externalAccess:
      - type: static
        options:
        token: 'notasecuretoken'
        subject: mcp

Run the MCP Server

Install dependencies and prepare environment variables:

cd server
npm i
cp .env.template .env

Edit the .env file to with valid values, then start the server:


# Load variables
source .env

# Build and run the server
npm run build && npm start 

The MCP server will start listening on http://localhost:8080

Run the Agent

In another terminal, install dependencies and set environment variables:

cd agent
cp .env.template .env
npm i

Run the agent:

npm run build && npm start

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers