Forage MCP Server
Provides AI agents with tools to manage GitHub repositories, issues, pull requests, and more via an installed MCP server.
Enables AI agents to search and interact with Slack channels and messages by installing a Slack MCP server.
Allows AI agents to deploy projects to Vercel by installing and using the Vercel MCP server.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Forage MCP Serversearch for a Postgres MCP server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ฟ Forage
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.
Why?
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:
Agent encounters a task it can't do
โ forage_search("query postgres database")
โ forage_install("@modelcontextprotocol/server-postgres")
โ Tools available IMMEDIATELY (no restart)
โ forage_learn() saves instructions to CLAUDE.md
โ Next session: auto-starts, agent already knows how to use itQuick Start
Claude Code
claude mcp add forage -- npx -y forage-mcpCursor
npx forage-mcp init --client cursorThat's it. Start a new session and Forage is ready.
Tools
Tool | Description |
| Search for MCP servers across the Official MCP Registry, Smithery, and npm |
| Get details on a package โ downloads, README, install command |
| Install and start an MCP server as a proxied subprocess (requires user approval) |
| Write usage instructions to CLAUDE.md / AGENTS.md / .cursor/rules/ |
| List all installed and running tools |
| Remove a tool and clean up rules |
How It Works
Forage is a gateway/proxy MCP server:
You install Forage once โ it's the only MCP server you configure manually
Forage discovers tools โ searches the Official MCP Registry, Smithery, and npm in parallel
Forage installs tools โ starts them as child processes, wraps their capabilities
No restart needed โ emits
list_changednotifications so the agent picks up new tools instantlyKnowledge persists โ
forage_learnwrites to agent rule files, manifest auto-starts tools next session
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Claude Code / Cursor / Codex โ
โ โ
โ "I need to query a Postgres database" โ
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Forage MCP Server โ
โ โ
โ forage_search โโโ Official Registry โ
โ forage_install Smithery โ
โ forage_learn npm โ
โ forage_status โ
โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Postgres MCPโ โ GitHub MCP โ ... โ
โ โ (subprocess)โ โ (subprocess)โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโWhen you install a tool through Forage:
Forage runs
npx -y <package>as a child processConnects to it via
StdioClientTransport(MCP client)Discovers the child server's tools via
listToolsRe-registers each tool on the Forage server with a namespaced name (
foraged__<server>__<tool>)Sends
tools/list_changednotification โ the agent sees new tools immediatelyWhen the agent calls a proxied tool, Forage forwards the call to the child server
Forage stores its state in ~/.forage/:
File | Purpose |
| Installed tools, command/args, auto-start configuration |
| Audit trail of all installs and uninstalls |
| 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.
CLI
Forage also includes a CLI for humans:
forage search "postgres database" # Search registries
forage list # List installed tools
forage init # Set up for Claude Code
forage init --client cursor # Set up for CursorSecurity
Forage cannot install tools without explicit user approval. Everyforage_install call requires confirm: true.
Audit trail โ every install/uninstall is logged with timestamps to
~/.forage/install-log.jsonNo remote backend โ everything runs locally. Registry searches are read-only GET requests to public APIs.
No secrets stored โ environment variables for child servers are passed at install time, not persisted.
Development
git clone https://github.com/isaac-levine/forage.git
cd forage
npm install
npm run buildTest locally with Claude Code:
claude mcp add forage-dev -- node /path/to/forage/dist/server.jsSee CONTRIBUTING.md for more details.
Roadmap
Features
forage updateโ check for newer versions of installed toolsSupport for pip/cargo/brew packages (not just npm)
Smarter search ranking (weight by downloads, stars, description relevance)
Auto-configure environment variables from
.envfilesforage doctorโ diagnose common setup issues
Distribution
Publish to npm
Submit to the Official MCP Registry
Submit to Smithery
Landing page at forage.dev
Community
Demo GIF / video in README
Write launch blog post
Post to r/ClaudeAI, r/LocalLLaMA, Hacker News (Show HN)
Share in MCP Discord / community channels
Write use-case guides (e.g. "Add Postgres to Claude Code in 30 seconds")
Add GitHub Discussions for Q&A and feature requests
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/isaac-levine/forage'
If you have feedback or need assistance with the MCP directory API, please join our Discord server