# Microservices MCP [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/microservices-sh/mcp  
**GitHub Stars:** 1  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/microservices-sh-mcp

## Description
MCP server for microservices.sh: inspect verified Cloudflare-native modules/templates, generate app plans/projects, run checks, and trigger confirmation-gated preview deploys. Install via npx -y @microservices-sh/mcp.

## Tools
Capabilities this server exposes over MCP:

- **list_templates** — List available microservices.sh app templates, including template ids and summaries. Use this before inspect_template, compose_app, generate_project, or run_checks when choosing a foundation for a new Cloudflare app.
- **inspect_template** — Inspect one app template contract, including supported modules, default configuration, runtime metadata, and generation behavior. Use this before composing or generating a project from a specific template id.
- **list_modules** — List available verified microservices.sh modules with ids, categories, summaries, versions, and maturity status. Use this to discover production building blocks before inspect_module, compose_app, or plan_add_module.
- **inspect_module** — Inspect one module contract in detail, including permissions, hooks, events, resources, storage needs, and customization points. Use this before editing or adding a module so the agent understands the module boundaries.
- **list_module_docs** — List LLM-readable documentation pages available for module implementation guidance. Use this to discover local docs before get_module_doc or before changing generated source.
- **get_module_doc** — Return an LLM-readable documentation page for a module, including rules, implementation notes, and agent guidance. Use this before coding against a module contract.
- **compose_app** — Compose a template and selected modules into a checked app contract and lockfile plan without writing files. Use this to preview the exact app composition before generate_project or deployment planning.
- **validate_config** — Validate a template, module list, and configuration object before generation or deployment. Use this to catch unsupported modules, missing settings, and invalid config before side effects.
- **generate_project** — Generate project source files in memory for agent inspection. This tool does not write files; use it to review planned source, docs, migrations, and config before creating or editing a local project.
- **run_checks** — Run local contract and readiness checks for a template/module composition. Use this before deployment planning to verify module compatibility, generated artifacts, and operational guardrails.
- **plan_add_module** — Plan an approval-gated module addition against an optional existing microservices.lock.json. This tool reports intended lockfile changes and required review gates without writing files.
- **check_updates** — Check locked module versions against the bundled registry snapshot. Use this to identify available module updates before plan_module_upgrade.
- **plan_module_upgrade** — Plan a module version change and report approval gates, compatibility notes, and lockfile impact. Use this before applying a module upgrade.
- **get_secrets_status** — Report required secret names and configured/missing status for a template/module composition without exposing secret values. Use this before deployment planning or remote preview deploys.
- **create_preview_plan** — Create a local preview-deployment readiness plan without mutating remote state. Use this before deploy_preview to review resources, checks, errors, warnings, and required approval steps.
- **deploy_preview** — Prepare a remote preview deployment through the microservices.sh control plane. This is a mutating tool and requires confirm: preview; call create_preview_plan first and only proceed after human review.
- **get_deployment_status** — Read a remote preview deployment status from the microservices.sh control plane. Use this after deploy_preview to poll status, inspect errors, or retrieve deployment metadata.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "microservices-mcp": {
    "command": "npx",
    "args": ["-y","@microservices-sh/mcp"],
    "env": {
      "MICROSERVICES_API_URL": "",
      "MICROSERVICES_API_KEY": "",
      "MICROSERVICES_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `MICROSERVICES_API_URL`, `MICROSERVICES_API_KEY`, `MICROSERVICES_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Microservices MCP does

Microservices MCP gives coding agents a structured way to plan and build Cloudflare-native applications from the microservices.sh catalog. It exposes verified app templates and reusable modules, including building blocks for capabilities such as authentication, booking, customer records, payments, files, and audit logs.

The server supports the workflow from discovery through preview deployment. An agent can identify a suitable template, examine its contract, discover compatible modules, inspect module boundaries, validate configuration, compose an application plan, generate source in memory, and run readiness checks. It can also report required secrets without returning their values, identify module updates, and prepare module addition or upgrade plans.

Remote preview deployment is separated from local planning. The deployment tool prepares a preview through the microservices.sh control plane and requires an explicit `confirm: "preview"` value. Deployment status can then be queried through the control plane.

## How it works

The package is a standalone stdio MCP server. It includes a small snapshot of the microservices.sh SDK and module contracts, allowing discovery and planning tools to work against the bundled registry data. Generated project output is held in memory for agent review; `generate_project` does not write files to the local filesystem.

A typical flow starts with `list_templates` and `list_modules`. The agent can then use `inspect_template` and `inspect_module` to understand supported modules, configuration, permissions, hooks, events, resources, storage requirements, and customization points. Module documentation can be discovered with `list_module_docs` and retrieved with `get_module_doc` before changing generated source.

`compose_app` produces a checked composition and lockfile plan without writing files. `validate_config`, `run_checks`, and `get_secrets_status` help identify configuration problems, compatibility issues, generated-artifact concerns, and missing secret names before deployment planning. `create_preview_plan` provides a non-mutating deployment readiness review; `deploy_preview` is the mutating step.

## Setup and configuration

Install the package as a development dependency with pnpm, or run it directly with `pnpm dlx @microservices-sh/mcp`. The package can also be started with `npx -y @microservices-sh/mcp`.

A client configuration uses the server command `microservices-mcp`. Remote control-plane access can be configured with `MICROSERVICES_API_URL`, which defaults to `https://api.microservices.sh`, and `MICROSERVICES_API_KEY`. `MICROSERVICES_TOKEN` is available as a fallback bearer token. Local development can instead launch the built `dist/index.js` file with Node after running `pnpm build`.

## Tools and capabilities

- Discover templates, modules, and module documentation.
- Inspect template and module contracts before composing an application.
- Compose applications into a checked contract and lockfile plan.
- Validate configuration and generate source files in memory for review.
- Run contract, compatibility, artifact, and readiness checks.
- Plan module additions and version upgrades with approval gates.
- Check locked versions against the bundled registry snapshot.
- Report required or missing secret names without exposing secret values.
- Create non-mutating preview deployment plans.
- Trigger confirmation-gated preview deployments and read deployment status.

The planning tools are read-only or local in effect. `deploy_preview` is the remote mutating operation and should follow `create_preview_plan` and human review.

## Limitations and notes

Generated files are returned for inspection rather than written by the server. Remote deployment tools require access to the microservices.sh control plane and a bearer credential. The server uses its bundled SDK and module-contract snapshot for planning and registry checks. Secret values are not returned by MCP tools.

_Full upstream README: https://allmcps.com/mcp/microservices-sh-mcp/readme_

