{
  "markdown": "# @microservices-sh/mcp\n\n[![npm version](https://img.shields.io/npm/v/%40microservices-sh%2Fmcp.svg)](https://www.npmjs.com/package/@microservices-sh/mcp)\n[![Official MCP Registry](https://img.shields.io/badge/MCP%20Registry-sh.microservices%2Fmcp-1f6feb)](https://registry.modelcontextprotocol.io/v0.1/servers?search=sh.microservices/mcp)\n[![mcp MCP server](https://glama.ai/mcp/servers/microservices-sh/mcp/badges/score.svg)](https://glama.ai/mcp/servers/microservices-sh/mcp)\n\nMCP server for AI agents that generate, verify, and deploy Cloudflare-native apps from reusable microservices.sh modules.\n\nThis package is a standalone stdio MCP server. It vendors a small microservices.sh SDK/module-contract snapshot until the public SDK is split out.\n\n## Why Agents Use It\n\n`@microservices-sh/mcp` gives coding agents a typed planning layer for building production-oriented Cloudflare apps. Agents can discover verified templates and modules, inspect module contracts, compose an app plan, validate configuration, generate project files for review, run readiness checks, and prepare approval-gated preview deployments through the microservices.sh control plane.\n\nIt is useful when an agent needs to build apps with common product modules such as auth, booking, customer records, payments, files, and audit logs without inventing each integration from scratch.\n\n## Install\n\n```bash\npnpm add -D @microservices-sh/mcp\n```\n\nOr run it directly after publish:\n\n```bash\npnpm dlx @microservices-sh/mcp\n```\n\nOr install from Glama:\n\n- [`@microservices-sh/mcp` on Glama](https://glama.ai/mcp/servers/microservices-sh/mcp)\n\n## MCP Client Config\n\n```json\n{\n  \"mcpServers\": {\n    \"microservices\": {\n      \"command\": \"microservices-mcp\",\n      \"env\": {\n        \"MICROSERVICES_API_URL\": \"https://api.microservices.sh\",\n        \"MICROSERVICES_API_KEY\": \"favored-secret-manager-reference\"\n      }\n    }\n  }\n}\n```\n\nFor local development inside this repo:\n\n```json\n{\n  \"mcpServers\": {\n    \"microservices-local\": {\n      \"command\": \"node\",\n      \"args\": [\"/absolute/path/to/mcp/dist/index.js\"]\n    }\n  }\n}\n```\n\nBuild the local package first:\n\n```bash\npnpm build\n```\n\nFor agent-oriented one-click install guidance, see [`llms-install.md`](./llms-install.md).\n\n## Tools\n\nRead-only and local planning tools:\n\n- `list_templates`\n- `inspect_template`\n- `list_modules`\n- `inspect_module`\n- `list_module_docs`\n- `get_module_doc`\n- `compose_app`\n- `validate_config`\n- `generate_project`\n- `run_checks`\n- `plan_add_module`\n- `check_updates`\n- `plan_module_upgrade`\n- `get_secrets_status`\n- `create_preview_plan`\n\nRemote control-plane tools:\n\n- `deploy_preview`\n- `get_deployment_status`\n\n`deploy_preview` is mutating and requires `confirm: \"preview\"`. Run `create_preview_plan` first.\n\n## Environment\n\n| Variable | Purpose |\n|----------|---------|\n| `MICROSERVICES_API_URL` | Remote control-plane URL. Defaults to `https://api.microservices.sh`. |\n| `MICROSERVICES_API_KEY` | Bearer token for remote tools. |\n| `MICROSERVICES_TOKEN` | Fallback bearer token. |\n\nSecret values are never returned by the MCP tools.\n\n## Registry Notes\n\nThe package is published to npm, listed in the official MCP Registry, and verified by Glama:\n\n- npm: [`@microservices-sh/mcp`](https://www.npmjs.com/package/@microservices-sh/mcp)\n- MCP Registry: [`sh.microservices/mcp`](https://registry.modelcontextprotocol.io/v0.1/servers?search=sh.microservices/mcp)\n- Glama: [`@microservices-sh/mcp`](https://glama.ai/mcp/servers/microservices-sh/mcp)\n- awesome-mcp-servers: [PR #8249](https://github.com/punkpeye/awesome-mcp-servers/pull/8249)\n- Remote endpoint: `https://api.microservices.sh/mcp`\n\nThe package declares `\"mcpName\": \"sh.microservices/mcp\"` in `package.json`. Docker/OCI packaging should wrap this same stdio server rather than forking behavior.\n",
  "bytes": 3801,
  "sha": "033b0018c103d7c106b025063556005442f81c9d60cf0b02440898c176a5994f",
  "repo_slug": "microservices-sh/mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_sh_microservices_mcp_a81fa755/readme"
}