apm mcp
Discover, inspect, and install MCP servers from the public MCP registry (or 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/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/mcpForwarded install options (see apm install --help for the full
list):
| Flag | Description |
|---|---|
--transport [stdio|http|sse|streamable-http] |
Transport type. |
--url URL |
Server URL for remote transports. |
--env KEY=VALUE |
Environment variable. Repeatable. |
--header KEY=VALUE |
HTTP header. Repeatable. |
--registry URL |
Custom registry URL for this install; persisted on the dependency in apm.yml. |
--mcp-version VER |
Pin the registry entry to a specific version. |
--dev |
Add to devDependencies. |
--dry-run |
Resolve and print without writing apm.yml. |
--force |
Overwrite an existing entry. |
-g, --global |
Install through ~/.apm/apm.yml into global-capable runtimes. |
--no-policy |
Skip policy checks. |
--verbose, -v |
Verbose output. |
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 public default 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.
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/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.