platform-engineering-mcp
A Model Context Protocol (MCP) server for platform engineering teams. The first capability automates Backstage catalog annotation with Snyk security metadata — more tools will follow.
What it does
When Backstage scans your repositories it looks for a catalog-info.yaml file. To surface Snyk security posture alongside a component, that file needs two annotations:
metadata:
annotations:
snyk.io/org-id: "<snyk-org-uuid>"
snyk.io/project-id: "<snyk-project-uuid>"
This MCP server gives Claude (or any MCP client) tools to:
- Discover which Snyk org and project correspond to a repository.
- Annotate the repository's
catalog-info.yaml(creating the file if absent). - Open a pull request with the changes — nothing is ever merged automatically.
Supports Azure DevOps (primary) and GitHub.
Tools
Snyk discovery
| Tool | Description |
|---|---|
snyk_list_orgs |
List all Snyk orgs accessible to your token |
snyk_list_projects |
List projects in a Snyk org, optionally filtered by repo name |
snyk_find_project_for_repo |
Auto-discover the Snyk project matching a repository URL |
SonarQube discovery
| Tool | Description |
|---|---|
sonarqube_search_projects |
Search for SonarQube projects by name/key to find the right project key |
sonarqube_get_project |
Verify a specific SonarQube project key exists |
Grafana discovery
| Tool | Description |
|---|---|
grafana_search_dashboards |
Search dashboards by name or tag |
grafana_list_tags |
List all dashboard tags — use to build grafana/dashboard-selector values |
grafana_get_dashboard |
Fetch a dashboard by UID to get its full URL |
Backstage annotation (opens PRs)
| Tool | Description |
|---|---|
backstage_annotate_repo |
Annotate with explicit Snyk org/project IDs |
backstage_annotate_repo_auto |
One-call: discover Snyk IDs from repo URL then annotate |
backstage_annotate_ado_plugin |
Add Azure DevOps plugin annotations (dev.azure.com/*) |
backstage_annotate_sonarqube |
Add SonarQube annotation (sonarqube.org/project-key) |
backstage_annotate_grafana |
Add Grafana annotations (grafana/dashboard-selector, etc.) |
Quick start
1. Install
pip install -e ".[dev]"
Or with uv:
uv pip install -e ".[dev]"
2. Configure
Copy .env.example to .env and fill in your tokens:
cp .env.example .env
| Variable | Required | Description |
|---|---|---|
SNYK_TOKEN |
✅ | Snyk personal or service-account token |
SNYK_ORG_ID |
optional | Default Snyk org (skips org listing on every call) |
AZURE_DEVOPS_PAT |
✅ for ADO | PAT with Code Read+Write and PR Contribute scopes |
AZURE_DEVOPS_ORG_URL |
✅ for ADO | e.g. https://dev.azure.com/my-org |
GITHUB_TOKEN |
✅ for GitHub | PAT or fine-grained token with repo and pull_requests scopes |
SONARQUBE_URL |
✅ for SonarQube | Base URL of your SonarQube instance, e.g. https://sonarqube.example.com |
SONARQUBE_TOKEN |
✅ for SonarQube | User or service-account token (Project Search permission required) |
GRAFANA_URL |
✅ for Grafana | Base URL of your Grafana instance, e.g. https://grafana.example.com |
GRAFANA_TOKEN |
✅ for Grafana | API key or service account token (Viewer role minimum) |
3. Run the server
platform-engineering-mcp
Or directly:
python -m platform_engineering_mcp.server
4. Connect to Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"platform-engineering": {
"command": "platform-engineering-mcp",
"env": {
"SNYK_TOKEN": "your-snyk-token",
"SNYK_ORG_ID": "optional-default-org-id",
"AZURE_DEVOPS_PAT": "your-ado-pat",
"AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-org",
"GITHUB_TOKEN": "your-github-token",
"SONARQUBE_URL": "https://sonarqube.example.com",
"SONARQUBE_TOKEN": "your-sonarqube-token",
"GRAFANA_URL": "https://grafana.example.com",
"GRAFANA_TOKEN": "your-grafana-token"
}
}
}
}
Usage examples
Auto-annotate a repo with Snyk (one call)
backstage_annotate_repo_auto(
repo="my-project/my-service",
repo_url="https://dev.azure.com/my-org/my-project/_git/my-service",
provider="azure_devops"
)
Add Azure DevOps plugin annotations
backstage_annotate_ado_plugin(
repo="my-project/my-service",
provider="azure_devops",
ado_project="my-project",
ado_repo="my-project/my-service",
ado_build_definition="my-ci-pipeline"
)
Discover and add SonarQube annotation
# 1. Find your project key
sonarqube_search_projects(
sonarqube_url="https://sonarqube.example.com",
sonarqube_token="my-token",
query="my-service"
)
# 2. Annotate
backstage_annotate_sonarqube(
repo="my-project/my-service",
provider="azure_devops",
sonarqube_project_key="my-service_main"
)
Discover and add Grafana annotations
# 1. Find the right tag
grafana_list_tags(grafana_url="https://grafana.example.com", grafana_token="my-token")
# 2. Annotate
backstage_annotate_grafana(
repo="my-project/my-service",
provider="azure_devops",
dashboard_selector="tag:my-service",
overview_dashboard="https://grafana.example.com/d/abc123/my-service-overview",
alert_label_selector="service=my-service"
)
Dry run (inspect changes without pushing)
backstage_annotate_ado_plugin(
repo="my-project/my-service",
provider="azure_devops",
ado_project="my-project",
dry_run=True
)
Development
# Run tests
pytest
# Lint
ruff check src tests
# Format
ruff format src tests
Roadmap
This is the first of many platform engineering tools planned for this MCP server. Upcoming capabilities include:
- Service catalogue bulk scan (report which repos are missing annotations)
- Kubernetes resource annotation helpers
- Golden-path template enforcement checks
- DORA metrics collection hooks
Licence
MIT
Metadata
Release files for platform-engineering-mcp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| platform_engineering_mcp-1.0.0.tar.gz | 22.4 kB | Without provenance | Details for platform_engineering_mcp-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| platform_engineering_mcp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for platform_engineering_mcp-1.0.0-py3-none-any.whl |
Total release size: 48.7 kB
Release files / platform_engineering_mcp-1.0.0.tar.gz
| Download URL | platform_engineering_mcp-1.0.0.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59ea3352f8b22641824ca484d732c7c1f1675f769dc21a5761ade929ba99b7b8
|
|
BLAKE2b-256 checksum How to use checksums |
4bb9849a8b302fcb9321130f7ae85a3124ab53f59ba7c7edd3a179383fc7515f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / platform_engineering_mcp-1.0.0-py3-none-any.whl
| Download URL | platform_engineering_mcp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 26.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3b322d1f93adfecb820af3174fb13a348a15db4934415b26848ed80fff23db5
|
|
BLAKE2b-256 checksum How to use checksums |
72a4cab8ccbda71cc8fdf8c21e662f66b69f16881344574b23de8d2531444a19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for platform-engineering-mcp 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.