Registry
The MCP server registry is a public directory of MCP servers. mcp can search it and add servers directly from it.
Searching
mcp search filesystem[
{
"name": "filesystem",
"description": "MCP server for file system operations",
"repository": "https://github.com/anthropics/mcp-servers",
"install": ["npx @anthropic/fs-mcp-server"]
}
]Search with multiple words:
mcp search "database sql"Results include:
name — Server identifier (used with
mcp add)description — What the server does
repository — Source code link
install — How to install/run (runtime + package)
Adding from registry
What happens:
Searches the registry for a server named
filesystemReads the server metadata (command, args, env vars)
Generates a config entry in
~/.config/mcp/servers.jsonPrints which environment variables you need to set
What gets generated
For a package-based server (most common), the config looks like:
For a remote server with HTTP transport:
The registry entry determines which type is used. Packages (stdio) take priority over remotes (HTTP).
Already exists?
If you try to add a server that's already in your config:
Remove it first if you want to re-add:
If you only want to pull fresh metadata from the registry (new package version, new env vars, updated args), use
mcp update <name>instead — it preserves your customizations (filled env values, headers, idle_timeout, etc.). Seemcp update.
Manual HTTP servers
For servers not in the registry, add them manually:
This creates a minimal HTTP entry:
Last updated
Was this helpful?