agent-discover — Claude Code MCP server: install
Search MCP registries, approve an installation, and add servers during an active session without editing host config or restarting.
claude mcp add agent-discover -- npx -y agent-discoverWhat agent-discover does
agent-discover runs as a local daemon that searches the official MCP Registry along with npm and PyPI. Before anything is installed, it displays the command or URL, package version, provenance details, and required variable names. The action waits for your approval.
Servers can be turned on or off while a session is running. In native mode, their tools remain available to the host’s own tool search; proxy mode routes calls through eight meta tools. Secrets go into the OS keychain, tool definitions are pinned by hashes, and a changed tool set sends the server to quarantine.
Node.js 22 or newer is required. The Claude Code mod needs Claude Code 2.1.289 or newer, while older builds retain the skills and MCP tools.
What it helps with
- search MCP registries for a server by task
- review an install command before it runs
- add a server without restarting the session
- toggle installed servers during a conversation
- quarantine a server after its tools change
Example prompts for the agent
- Find an MCP server that can work with PDF files and show the available install plan.
- Install the selected server only after I approve its command and provenance.
- List the installed servers and enable the one needed for this task.
How to install agent-discover
Platform CLI
claude mcp add agent-discover -- npx -y agent-discoverPlatform CLI
codex mcp add agent-discover -- npx -y agent-discoverConfig file
{
"mcpServers": {
"agent-discover": {
"command": "npx",
"args": [
"-y",
"agent-discover"
]
}
}
}Config file
{
"servers": {
"agent-discover": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agent-discover"
]
}
}
}Platform CLI
gemini mcp add agent-discover npx -y agent-discoverStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about agent-discover
How do I install agent-discover in Claude Code?
Run claude mcp add agent-discover -- npx -y agent-discover. This adds agent-discover as an MCP server for Claude Code.
What does agent-discover do?
It searches the MCP Registry, npm, and PyPI, then installs approved servers and exposes them during the current session. A server whose tools change is placed in quarantine.
Which Claude Code version is required for agent-discover?
The Claude Code mod requires Claude Code 2.1.289 or newer. Older builds still provide the skills and MCP tools.