MCPHub LabRegistrymicrosoft/apm
microsoft

microsoft/apm

Built by microsoft โ€ข 797 stars

What is microsoft/apm?

Agent Package Manager

How to use microsoft/apm?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add microsoft/apm using the following command: npx @modelcontextprotocol/microsoft-apm 4. Restart the client and verify the new tools are active.
๐Ÿ›ก๏ธ Scoped (Restricted)
npx @modelcontextprotocol/microsoft-apm --scope restricted
๐Ÿ”“ Unrestricted Access
npx @modelcontextprotocol/microsoft-apm

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

microsoft/apm FAQ

Q

Is microsoft/apm safe?

Yes, microsoft/apm follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is microsoft/apm up to date?

microsoft/apm is currently active in the registry with 797 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for microsoft/apm?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub

APM โ€“ Agent Package Manager

An open-source, community-driven dependency manager for AI agents.

Think package.json, requirements.txt, or Cargo.toml โ€” but for AI agent configuration.

GitHub Copilot ยท Claude Code ยท Cursor ยท OpenCode ยท Codex ยท Gemini ยท Windsurf

Documentation ยท Quick Start ยท CLI Reference ยท Roadmap


Portable by manifest. Secure by default. Governed by policy. One file describes every agent's context; one command reproduces it everywhere; one policy controls what an org will allow.

Why APM

AI coding agents need context to be useful โ€” standards, prompts, skills, plugins โ€” but today every developer sets this up manually. Nothing is portable nor reproducible. There's no manifest for it.

APM fixes this. Declare your project's agentic dependencies once in apm.yml, and every developer who clones your repo gets a fully configured agent setup in seconds โ€” with transitive dependency resolution, just like npm or pip. It's also the first tool that lets you author plugins with a real dependency manager and export standard plugin.json packages.

# apm.yml โ€” ships with your project
name: your-project
version: 1.0.0
dependencies:
  apm:
    # Skills from any repository
    - anthropics/skills/skills/frontend-design
    # Plugins
    - github/awesome-copilot/plugins/context-engineering
    # Specific agent primitives from any repository
    - github/awesome-copilot/agents/api-architect.agent.md
    # A full APM package with instructions, skills, prompts, hooks...
    - microsoft/apm-sample-package#v1.0.0
  mcp:
    # MCP servers -- installed into every detected client
    - name: io.github.github/github-mcp-server
      transport: http   # MCP transport name, not URL scheme -- connects over HTTPS
git clone <org/repo> && cd <repo>
apm install    # every agent is configured

Coming from npx skills add? Drop-in:

apm install vercel-labs/agent-skills                            # whole bundle, like npx skills add
apm install vercel-labs/agent-skills --skill deploy-to-vercel   # one skill, persisted to apm.yml

Same install gesture. You also get a manifest, lockfile, and reproducibility.

Zero-config Copilot:

apm compile -t copilot   # writes .github/copilot-instructions.md

One command, no configuration -- VS Code and GitHub Copilot read the file automatically. APM dogfoods this target on its own repository.

The three promises

1. Portable by manifest

One apm.yml describes every primitive your agents need โ€” instructions, skills, prompts, agents, hooks, plugins, MCP servers โ€” and apm install reproduces the exact same setup across every client on every machine. apm.lock.yaml pins the resolved tree the way package-lock.json does for npm.

  • One manifest for everything โ€” declared once, deployed across Copilot, Claude, Cursor, OpenCode, Codex, Gemini, Windsurf
  • Install from anywhere โ€” GitHub, GitLab, Bitbucket, Azure DevOps, GitHub Enterprise, Gitea, Gogs, any git host
  • Transitive dependencies โ€” packages can depend on packages; APM resolves the full tree
  • Author plugins โ€” build Copilot, Claude, and Cursor plugins with dependency management, then export standard plugin.json
  • Marketplaces โ€” install plugins from curated registries in one command, deployed across all targets and locked
  • Pack & distribute โ€” apm pack bundles your configuration as a zipped package or a standalone plugin
  • CI/CD ready โ€” GitHub Action for automated workflows

2. Secure by default

Agent context is executable in effect โ€” a prompt is a program for an LLM. APM treats it that way. Every install scans for hidden Unicode that can hijack agent behavior; the lockfile pins integrity hashes; transitive MCP servers are gated by trust prompts.

  • Content security โ€” apm install blocks compromised packages before agents read them; apm audit runs the same checks on demand
  • Lockfile integrity โ€” apm.lock records resolved sources and content hashes for full provenance
  • Drift detection โ€” apm audit rebuilds your agent context in scratch and diffs it against your working tree to catch hand-edits before they ship
  • MCP trust boundaries โ€” transitive MCP servers require explicit consent

3. Governed by policy

apm-policy.yml lets a security team say "these are the only sources, scopes, and primitives this org will allow" and have every apm install enforce it โ€” with tighten-only inheritance from enterprise to org to repo, a published bypass contract, and audit-mode CI gates.

  • Governance Guide โ€” the canonical enterprise reference: enforcement points, bypass contract, air-gapped story, failure semantics, rollout playbook
  • Policy reference โ€” every check, every field, every default
  • Adoption playbook โ€” staged rollout from warn to block across hundreds of repos
  • GitHub rulesets integration โ€” wire apm audit --ci into branch protection

Get Started

Linux / macOS

curl -sSL https://aka.ms/apm-unix | sh

Windows

irm https://aka.ms/apm-windows | iex

Native release binaries are published for macOS, Linux, and Windows x86_64. apm update reuses the matching platform installer.

<details> <summary>Other install methods</summary>

Linux / macOS

# Homebrew
brew install microsoft/apm/apm
# pip
pip install apm-cli

Windows

# Scoop
scoop bucket add apm https://github.com/microsoft/scoop-apm
scoop install apm
# pip
pip install apm-cli
</details>

Then start adding packages:

apm install microsoft/apm-sample-package#v1.0.0

Or install from a marketplace:

apm marketplace add github/awesome-copilot
apm install azure-cloud-development@awesome-copilot

Or add an MCP server (wired into Copilot, Claude, Cursor, Codex, OpenCode, Gemini, and Windsurf):

apm install --mcp io.github.github/github-mcp-server --transport http   # connects over HTTPS

Codex CLI currently does not support remote MCP servers; the install will skip Codex with a notice. Omit --transport http to use the local Docker variant on Codex (requires GITHUB_PERSONAL_ACCESS_TOKEN).

See the Getting Started guide for the full walkthrough.

Works with agentrc

agentrc analyzes your codebase and generates tailored agent instructions โ€” architecture, conventions, build commands โ€” from real code, not templates.

Use agentrc to author high-quality instructions, then package them with APM to share across your org. The .instructions.md format is shared by both tools โ€” no conversion needed when moving instructions into APM packages.

Community

Created by @danielmeppiel. Maintained by @danielmeppiel and @sergio-sisternes-epam.


Built on open standards: AGENTS.md ยท Agent Skills ยท MCP

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "microsoft-apm": { "command": "npx", "args": ["microsoft-apm"] } } }