# forage

forage searches for MCP servers, installs approved ones, and exposes their tools to your agent. Use it when a task calls for a tool that is not configured yet.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 19
- Author: isaac-levine
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/isaac-levine/forage
- Updated: 2026-02-21
- HTML: https://affpapa.org/en/nevibecode/mcp/forage

## What it does

forage acts as a gateway to other MCP servers. It searches the Official MCP Registry, Smithery, and npm, provides package details, then launches a selected server as a child process and proxies its tools. The agent can use newly added tools without restarting.

Installing a server requires explicit user approval: each install call must include `confirm: true`. forage keeps state in `~/.forage/` and starts previously installed servers when it launches. The `forage_learn` tool can save usage instructions in agent rule files such as `CLAUDE.md`, `AGENTS.md`, or `.cursor/rules/`. You stay in control of each install; the agent cannot add a server without your approval.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add forage -- npx -y forage-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add forage -- npx -y forage-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "forage": {
            "command": "npx",
            "args": [
                "-y",
                "forage-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "forage": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "forage-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add forage npx -y forage-mcp
```

## When to use it
- search for an MCP server that fits a task
- check package details before installing a server
- make a new server's tools available without restarting
- save tool instructions in agent rule files
- list running servers or remove an installed one

## Example prompts
- Find an MCP server for working with Postgres and show me the package details.
- Install the selected MCP server after I approve it, then make its tools available.
- Save instructions for the installed tool in an agent rule file.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
