The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Forage listing page.
Self-improving tool discovery for AI agents.
Install one MCP server. Your agent finds the rest.
npm · GitHub · Contributing
Forage is an MCP server that lets AI agents discover, install, and learn to use new tools — automatically. When an agent hits a wall, it forages for the right tool, installs it, and teaches itself how to use it. No restarts. No manual config. The agent gets permanently smarter.
AI coding agents are limited to whatever tools they're configured with at session start. Need to query a database? Deploy to Vercel? Search Slack? The agent apologizes and you manually install the right MCP server.
Forage closes that loop:
Claude Code
Cursor
That's it. Start a new session and Forage is ready.
| Tool | Description |
|---|---|
forage_search | Search for MCP servers across the Official MCP Registry, Smithery, and npm |
forage_evaluate | Get details on a package — downloads, README, install command |
forage_install | Install and start an MCP server as a proxied subprocess (requires user approval) |
forage_learn | Write usage instructions to CLAUDE.md / AGENTS.md / .cursor/rules/ |
forage_status | List all installed and running tools |
forage_uninstall | Remove a tool and clean up rules |
Forage is a gateway/proxy MCP server:
list_changed notifications so the agent picks up new tools instantlyforage_learn writes to agent rule files, manifest auto-starts tools next sessionWhen you install a tool through Forage:
npx -y <package> as a child processStdioClientTransport (MCP client)listToolsforaged__<server>__<tool>)tools/list_changed notification — the agent sees new tools immediatelyForage stores its state in ~/.forage/:
| File | Purpose |
|---|---|
manifest.json | Installed tools, command/args, auto-start configuration |
install-log.json | Audit trail of all installs and uninstalls |
cache/ | Cached registry search results |
On startup, Forage reads the manifest and auto-starts all previously installed servers. Your agent picks up right where it left off.
Forage also includes a CLI for humans:
[!IMPORTANT] Forage cannot install tools without explicit user approval. Every
forage_installcall requiresconfirm: true.
~/.forage/install-log.jsonTest locally with Claude Code:
See CONTRIBUTING.md for more details.
forage update — check for newer versions of installed tools.env filesforage doctor — diagnose common setup issues