apm mcp
Discover, inspect, and install MCP servers from an MCP registry: the curated GitHub MCP Registry by default, or another registry such as an enterprise mirror.
Synopsis
Section titled “Synopsis”apm mcp list [--limit N] [--verbose]apm mcp search QUERY [--limit N] [--verbose]apm mcp show SERVER_NAME [--verbose]apm mcp install NAME [-- runtime args...]Description
Section titled “Description”apm mcp groups read-only registry queries (list, search, show)
plus a thin install alias.
The canonical install path for MCP servers is
apm install --mcp NAME. It
edits apm.yml, resolves the registry entry, and writes the resulting
mcpServers block to your project. With -g or --global, it creates or
updates $APM_HOME/apm.yml (default ~/.apm/apm.yml) and writes only to
global-capable runtime configurations. apm mcp install is a forwarder that
calls the same code path — use whichever spelling you prefer.
For an end-to-end consumer walkthrough (declaring an MCP server in
apm.yml, configuring transport and credentials, deploying to a
runtime), see
Install MCP servers.
Subcommands
Section titled “Subcommands”apm mcp list
Section titled “apm mcp list”List servers published to the registry.
apm mcp list # first 20 entriesapm mcp list --limit 50| Flag | Description |
|---|---|
--limit N | Number of results to show. Default: 20. |
--verbose, -v | Show detailed diagnostic output. |
apm mcp search
Section titled “apm mcp search”Substring search across registry entries.
apm mcp search githubapm mcp search fetch --limit 5| Flag | Description |
|---|---|
--limit N | Number of results to show. Default: 10. |
--verbose, -v | Show detailed diagnostic output. |
apm mcp show
Section titled “apm mcp show”Print full metadata for a single server: version, repository, deployment type (remote endpoint and/or local package), and the steps to add it to a project.
apm mcp show io.github.modelcontextprotocol/server-fetch| Flag | Description |
|---|---|
--verbose, -v | Show detailed diagnostic output. |
Exit code 1 if the server name is not present in the registry.
apm mcp install
Section titled “apm mcp install”Alias for apm install --mcp NAME.
All flags and the post--- runtime command are forwarded verbatim.
apm mcp install fetch -- npx -y @modelcontextprotocol/server-fetchapm mcp install api --transport http --url https://example.com/mcpapm mcp install --help lists these forwarded install options under
“Forwarded install options”. Their help text, accepted values, and shell
completion come from apm install itself, so they always match
apm install:
--transport, --url, --env, --header, -t/--target, --registry,
--mcp-version, -g/--global, --trust-transitive-mcp, --dev,
--dry-run, --force, -v/--verbose, --no-policy.
Other apm install options are passed through unchanged. With -g, the
server is recorded in $APM_HOME/apm.yml (default ~/.apm/apm.yml);
APM_HOME does not redirect runtime configuration.
Environment variables
Section titled “Environment variables”| Variable | Effect |
|---|---|
MCP_REGISTRY_URL | Override the registry endpoint used by list, search, show, and install. Read-only commands print Registry: <url> (from MCP_REGISTRY_URL); installs print Using MCP registry: <url> (from MCP_REGISTRY_URL). Unset: the default GitHub MCP Registry is used silently. |
Network failures against an overridden registry name the setting that supplied
the URL so misconfigurations are easy to spot in CI logs. Direct
apm install --mcp lookup also fails closed before writing user state.
See apm config for the canonical resolution
order. The same chain resolves dependencies.mcp; a per-dependency
registry: URL overrides it for that entry only. To compare curated and open
registries, see Choosing an MCP registry.
Whenever a non-default endpoint is in effect, apm install names it once with
Using MCP registry: <url> (<source>) before the lookup.
Environment-selected and per-dependency http:// endpoints require
MCP_REGISTRY_ALLOW_HTTP=1 when used. A persisted mcp-registry-url and an
explicit --registry http://... flag are deliberate opt-ins.
Examples
Section titled “Examples”Discover and inspect:
apm mcp search githubapm mcp show io.github.github/github-mcp-serverInstall a stdio server with a runtime command:
apm mcp install fetch -- npx -y @modelcontextprotocol/server-fetchInstall the same server at user scope:
apm mcp install fetch -g --target claude -- npx -y @modelcontextprotocol/server-fetchThis creates or updates $APM_HOME/apm.yml (default ~/.apm/apm.yml) and the
selected runtime’s user configuration.
Install a remote HTTP server:
apm mcp install api --transport http --url https://example.com/mcp \ --header "Authorization=Bearer $TOKEN"Point at an enterprise registry mirror (session only):
export MCP_REGISTRY_URL=https://mcp.internal.example.comapm mcp listPoint at an enterprise registry mirror (persistent across sessions):
apm config set mcp-registry-url https://mcp.internal.example.comapm mcp list# Remove the persisted URL:apm config unset mcp-registry-urlThe registry must implement the MCP Registry v0.1 spec (apm calls /v0.1/servers/...). Registries serving only the legacy /v0/ paths will return 404.
Related
Section titled “Related”apm install— canonical MCP install path.- Install MCP servers — consumer guide covering
apm.yml, transports, and runtime deployment.
Copyright (c) Microsoft Corporation. General documentation: CC-BY-4.0. Software, code examples and OpenAPM: Apache-2.0. See scope and exclusions.